This is the code I used to look at a subset of data:
active<-clinic[
(clinic$Days.since.injury.physio > 20 & clinic$Days.since.injury.physio < 35)
&(clinic$Days.since.injury.F.U.1 > 27 & clinic$Days.since.injury.F.U.1 < 63)
, ]
I'd like to select a group of subjects based on two criteria and then analyze their results. To start I was looking at the descriptive data when I noticed na's that exceeded the entire data set.
Subsetting seemed to result in NA
's. I've looked at several posts including these two below that seem relevant but I don't understand how to apply the answers.
Why does subset cause na's that don't exist in the full data set? (I think the answer from other posts is that there is an na in another variable?)
How do I work around this?
I'd like to be able to get values from the variables that are present rather than ignoring the whole row if there is a missing value.
Thank you.