Skip to content
Prev 304580 / 398503 Next

apply --> data.frame

Hello,

Yet another alternative.


library(plyr)
dfr <- ldply(strsplit(c("a,1", "b,2", "c,3"), ","), identity)
str(dfr)

#dfr$V2 <- as.numeric(dfr$V2)

So, if the op was about conversion to df, the answer is yes.

Rui Barradas

Em 30-08-2012 18:14, David Winsemius escreveu: