stephen sefick wrote:
This is what I would like to do and it works just fine. Is there a way to
shorten this code so I don't have to subset a subset of a subset?
d<-subset(subset(subset(subset(x, River.Mile<=202), River.Mile>3),
Lagrangian=="Yes"), EventType=="Regular")
Stephen
"&" is your
On 7/7/2008 3:19 PM, stephen sefick wrote:
This is what I would like to do and it works just fine. Is there a way to
shorten this code so I don't have to subset a subset of a subset?
d<-subset(subset(subset(subset(x, River.Mile<=202), River.Mile>3),
Lagrangian=="Yes"), EventType=="Regular")
Try this:
d<- subset(x,
River.Mile <= 202 & River.Mile > 3 & Langrangian ==
"Yes" & EventType == "Regular")
On Mon, Jul 7, 2008 at 4:19 PM, stephen sefick <[EMAIL PROTECTED]> wrote:
> This is what I would like to do and it works just fine. Is there a way to
> shorten this code so
This is what I would like to do and it works just fine. Is there a way to
shorten this code so I don't have to subset a subset of a subset?
d<-subset(subset(subset(subset(x, River.Mile<=202), River.Mile>3),
Lagrangian=="Yes"), EventType=="Regular")
Stephen
--
Let's not spend our time and resour
4 matches
Mail list logo