On Aug 30, 2011, at 5:30 PM, Rich Shepard wrote:

On Tue, 30 Aug 2011, David Winsemius wrote:

It appears that your original file was delimited by "|" and your used something else, perhaps the default white-space setting?

David,

 Yes, the csv file separator is the pipe.

It is _not_ a csv file. You need to use read.table with sep = "|".


I think you need to go back and do your input operations again with
sep="|"

(Or you could provide str() on the data.frame rather than making us guess.)

str(chemdata)
'data.frame':   14886 obs. of  1 variable:
$ site_id.sample_date.param.quant: Factor w/ 14886 levels
"BC-0.5|1996-04-19|Arsenic|0.01",..: 11579 14219 13298 11982 11909 13371
13082 111 12 23 ...

Thanks,

Rich

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

David Winsemius, MD
West Hartford, CT

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to