[R] Descriptive Stats from Data Frame

Rich Shepard rshepard at appl-ecosys.com
Tue Aug 30 23:30:49 CEST 2011


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.

> 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



More information about the R-help mailing list