[R] add string to a list
Chris82
rubenbauar at gmx.de
Tue Nov 25 22:37:37 CET 2008
hello R users,
I didn't find a solution for a simple problem I think.
I read 224 lines from a file
input <- readLines(con,n=224)
and now I create a string x <- "\004" which should be line 225 of input.
So I have input and x and want to add x to input, so that it looks like
this:
[1] "string"
[2] "string"
.
.
.
[224] "string"
[225] "\004"
thanks
--
View this message in context: http://www.nabble.com/add-string-to-a-list-tp20690084p20690084.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help
mailing list