Skip to content
Back to formatted view

Raw Message

Message-ID: <7F060BE1-6395-45AC-B90A-3CC21A0CCC04@comcast.net>
Date: 2011-08-30T21:38:05Z
From: David Winsemius
Subject: Descriptive Stats from Data Frame
In-Reply-To: <alpine.LNX.2.00.1108301429400.13948@salmo.appl-ecosys.com>

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 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