Search String: Display: Description: Sort:

Results:

References: [ +subject:/^(?:^\s*(re|sv|fwd|fw)[\[\]\d]*[:>-]+\s*)*a\s+simple\s+question\-\-How\s+to\s+select\s+subset\s+of\s+Dataframe\s+in\s+S\-Plus\s*$/: 4 ]

Total 4 documents matching your query.

1. a simple question--How to select subset of Dataframe in S-Plus (score: 1)
Author: "Liu Zhigang" <email.lzg@gmail.com>
Date: Mon, 29 May 2006 17:35:55 +0800
In SAS, I can use " if " to select my wanted observations. For example, I want to select the obs satisfy the condition of x>0 and y<0 (where x and y are variable in a dataset. ) and operate with this
/archives/html/s-news/2006-05/msg00098.html (7,010 bytes)

2. Re: a simple question--How to select subset of Dataframe in S-Plus (score: 1)
Author: "Jonathan Dakin" <jdakin@overwey.demon.co.uk>
Date: Mon, 29 May 2006 12:49:41 +0100
dataset[x > 0 & y <0,] selects all rows of the dataframe which satisfy. Jonathan Dakin --Original Message-- From: s-news-owner@lists.biostat.wustl.edu [mailto:s-news-owner@lists.biostat.wustl.edu] On
/archives/html/s-news/2006-05/msg00099.html (8,467 bytes)

3. Re: a simple question--How to select subset of Dataframe in S-Plus (score: 1)
Author: Sundar Dorai-Raj <sundar.dorai-raj@pdf.com>
Date: Mon, 29 May 2006 06:58:46 -0500
I think you mean: dataset[dataset$x > 0 & dataset$y < 0, ] presuming "x" and "y" are columns in "dataset". --sundar Jonathan Dakin wrote: dataset[x > 0 & y <0,] selects all rows of the dataframe whic
/archives/html/s-news/2006-05/msg00100.html (9,474 bytes)

4. Re: a simple question--How to select subset of Dataframe in S-Plus (score: 1)
Author: "Thompson, David (MNR)" <david.thompson@mnr.gov.on.ca>
Date: Mon, 29 May 2006 09:14:59 -0400
With data.frame named 'df' and columns named 'x' and 'y' use specified conditions. DaveT. ** Silviculture Data Analyst Ontario Forest Research Institute Ontario Ministry of Natural Resources Sault S
/archives/html/s-news/2006-05/msg00102.html (8,342 bytes)


This search system is powered by Namazu