I want to turn a list of strings into a data frame. however, I get this error:
> read.csv(textConnection(c("id,name,count",
'6289,aa,16',
'6269,bb,8',
'6269,cc,8',
'6269,dd,8',
'6610,ee,4')))
Error in textConnection(c("id,name,count", "6289,aa,16", "6269,bb,8", :
argument 'object' must deparse to a single character string
Calls: read.csv -> read.table -> textConnection
when I remove just one line, it works:
> read.csv(textConnection(c("id,name,count",
'6289,aa,16',
'6269,bb,8',
'6269,cc,8',
'6610,ee,4')))
id name count
1 6289 aa 16
2 6269 bb 8
3 6269 cc 8
4 6610 ee 4
what is going on?!