Re: [R] reading from text file that have different rowlength and create a data frame

2011-04-04 Thread jim holtman
try this: > x <- read.table(textConnection(";this is example + ; r help + Var1 Var2 Var3 Var4 Var5 + 0 0.05 0.0112 + 1 0.04 0.0618A + 2 0.05 0.0814 + 3 0.01 0.0615 B + 4

Re: [R] reading from text file that have different rowlength and create a data frame

2011-04-04 Thread jim holtman
?read.table Then look at the 'fill' & 'flush' parameters; this may do the trick On Mon, Apr 4, 2011 at 9:32 AM, Ram H. Sharma wrote: > Hi R-experts > > I have many text files to read and combined them into one into R that are > output from other programs. My textfile have unbalanced number of ro

[R] reading from text file that have different rowlength and create a data frame

2011-04-04 Thread Ram H. Sharma
Hi R-experts I have many text files to read and combined them into one into R that are output from other programs. My textfile have unbalanced number of rows for example: ;this is example ; r help Var1 Var2 Var3 Var4 Var5 0 0.05 0.0112 1 0.04