Displaying 1 result from an estimated 1 matches for "subdata2".
Did you mean:
subdata
2003 Mar 25
2
Help with data.frame subsets
Hello all,
I'm trying to get a subset of a data frame by taking all rows where the 2nd
column is >= Min and <= Max. I can do that by a 2 step process similar to
the following:
subData <- dataFrame[dataFrame[,2] >= Min,]
subData2 <- subData[subData[,2] <= Max,]
Then I try to graph the results where col 2 is the X var and col 3 is the Y
var. Therefore I do the following:
X <- subData2[,2]
Y <- subData2[,3]
HOWEVER, sometimes subData2 is only left with 1 row remaining after the
subsetting operation. If it gets...