Hi Peter,
Thanks again for showing me how to do this. This will save me hours of
tedious work, and I can't believe how quickly R reads in and processes my
data. It was taking about 40 minutes when I used Word's mail merge for this.
When I first switched from Excel to R, R was so much faster than
Thank you very much Peter. I'm off until Monday, but now I have an
interesting project to think about over the weekend. It looks pretty simple,
and it sure will beat over 2,000 pages of code to cut and paste.
Thanks again,
Jerry Floren
Minnesota Department of Agriculture
--
View this message in
ntact me off
list.
P
> -Original Message-
> From: r-help-boun...@r-project.org
> [mailto:r-help-boun...@r-project.org] On Behalf Of Jerry Floren
> Sent: Friday, 22 January 2010 9:53 a.m.
> To: r-help@r-project.org
> Subject: Re: [R] Help with subset
>
>
> Thank
Thank you Peter. I am really new to this. The spreadsheet I am working with
has 12,379 rows with the first row consisting of the variable names and
12,378 rows of data. There are seven columns, and the 7th column is the only
one with numerical data ("Results").
I need to match up the variable Re
Tena koe Jerry
I'm not sure exactly what you wish to do, but it would seem you could
create a character vector (myVars) containing all your merge field names
and then use a for() loop. Something like:
for (myV in myVars)
{
x116 <- subset(napt, Analysis_Soil %in% myV)
if (nrow(x116) > 8)
{
Thank you Christos and Jim:
That is precisely what I was after.
On Sat, 3 May 2008 00:01:58 -0400, "Christos Hatzis"
<[EMAIL PROTECTED]> said:
> Try %in%
>
> subset(dat, treatment %in% vec)
>
> > -Original Message-
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED] On Behalf
Justin,
try
subset(dat, treatment %in% vec)
I guess thats what you want.
On Fri, May 2, 2008 at 8:40 PM, <[EMAIL PROTECTED]> wrote:
> Dear list:
>
> I have a problem using the subset function:
>
> dat<- data.frame(treatment=c("A", "B", "A", "C", "C", "D", "A", "D",
> "C", "D"), response=rnorm(
Try %in%
subset(dat, treatment %in% vec)
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of
> [EMAIL PROTECTED]
> Sent: Friday, May 02, 2008 11:41 PM
> To: r-help@r-project.org
> Subject: [R] help with subset
>
> Dear list:
>
> I have a problem us
8 matches
Mail list logo