Message-ID: <2FA841CF-E8D3-4BE9-A330-E9837C1290B7@comcast.net>
Date: 2009-04-16T15:18:05Z
From: David Winsemius
Subject: Help- extracting values
In-Reply-To: <097F022D-5B53-4E0A-B771-958A89F2CDDE@comcast.net>
On Apr 16, 2009, at 11:10 AM, David Winsemius wrote:
>
> On Apr 16, 2009, at 10:45 AM, Amit Patel wrote:
>
>>
>> I have csv files imported in r each with 2 columns and many many
>> rows. I have sorted the data in them but want to extract some values.
>>
>> The first column is an ID
>> The second is a p-value ( now sorted in increasing order with NA's
>> last)
>> I want to extract the rows with a p-value of less than 0.05)
>>
>> What commands would help
>> the table is called AnovaSort with column headings MCI & p-value
>
> "p-value" is a rather unlikely R name for a column since it is
> illegal in R. Using a "table" is also unlikely, so let's assume that
> once you have read it into a dataframe, that it's named p_value.
>
> AnovaSort[AnovaSort$p_value < 0.05]
Missed a comma:
novaSort[AnovaSort$p_value < 0.05,]
>
>
> David Winsemius, MD
> Heritage Laboratories
> West Hartford, CT
>
> ______________________________________________
> 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
Heritage Laboratories
West Hartford, CT