Yong Wang wrote:
> Dear all
> the question is:
> the data is not same length for each variable(the column length
> unequal), how can R read this data? I tried
> read.table(filename,na.strings),not work.
See ?read.table.
read.table() will work if there are seperators beween missing values
(you have to specify 'sep' in that case!).
If the number of separators is unequal for some lines, the argument
'fill' might help. If not, consider to use scan() or readLines() and
postprocess the imported stuff.
Uwe Ligges
> thanks
> best
> yong
>
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://www.stat.math.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide!
http://www.R-project.org/posting-guide.html