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