I want to subset a data frame by age group.
Only those obs where:
age > 35 and age < 80
My attempts didn't give what I wanted.
It gave me rows below 35 and above 80 for age.
subset(data,age > 35 & age < 80,select = myvar)
I tried &&
, but that didn't work either.
Does this have to be done in two steps?