[R] Descriptive Stats from Data Frame
David Winsemius
dwinsemius at comcast.net
Wed Aug 31 00:08:26 CEST 2011
On Aug 30, 2011, at 5:38 PM, Rich Shepard wrote:
> On Tue, 30 Aug 2011, David Winsemius wrote:
>
>> I think you need to go back and do your input operations again with
>> sep="|"
>
> David,
>
> Yes, that's better. I did not know of the sep option. The new
> results:
>
>> str(chemdata)
> 'data.frame': 14886 obs. of 4 variables:
> $ site_id : Factor w/ 148 levels "BC-0.5","BC-1",..: 104 145 126
> 115 114
> 128 124 2 3 3 ...
> $ sample_date: Factor w/ 1012 levels "1980-03-01","1980-05-01",..:
> 432 410
> 423 405 398 408 401 360 366 407 ...
> $ param : Factor w/ 8 levels "Arsenic","Calcium",..: 1 1 1 1 1
> 1 1 1 1
> 1 ...
> $ quant : num 0.06 0.01 0.01 0.01 0.01 0.01 0.01 0.01 0.01
> 0.01 ...
>
> Now I can work on the commands I need.
That does look more workable. You might consider changing the dates
with:
chemadata$samp_date <- as.Date(as.character(chemdata$sample_date) )
>
> Many thanks,
>
> Rich
>
> ______________________________________________
> R-help at 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
More information about the R-help
mailing list