, , , .
df[1,] data.frame, , unlist -, , :
> df <- data.frame(a=LETTERS[1:10], b=LETTERS[11:20], c=LETTERS[5:14])
> df[1,]
a b c
1 A K E
> as.character(df[1,])
[1] "1" "1" "1"
> as.character(unlist(df[2,]))
[1] "B" "L" "F"
, data.frame matrix :
m <- as.matrix(df)
> as.character(m[2,])
[1] "B" "L" "F"
data.frame, stringsAsFactors=TRUE , :
clusters <- read.delim("test", sep="\t", fill=TRUE, header=FALSE,
stringsAsFactors=FALSE)
, , , , , data.frame . , stringsAsFactors=FALSE :
df <- data.frame(a=LETTERS[1:10], b=LETTERS[11:20],
c=LETTERS[5:14], stringsAsFactors=FALSE)
> as.character(df[1,])
[1] "A" "K" "E"