R - Exctracting a vector of doubles from data.frame
问题 I got this question using read.table() with or without header=T , trying to extract a vector of doubles from the resulting data.frame with as.double(as.character()) (see ?factor ). But that's just how I realized that I don't understand R's logic. So you won't see e.g. read.table in the code below, only the necessary parts. Could you tell me what's the difference between the following options? With header=T equivalent: (a <- data.frame(array(c(0.5,0.5,0.5,0.5), c(1,4)))) as.character(a) # [1]