Your assignment of NAs is fine.
When you extract, you have to remember to specify whether you want to
include or exclude those NA values.
Try this:
data1.long[data1.long$time==9 & !is.na(data1.long$time), "time"]
Jean
On Tue, Jan 14, 2014 at 7:22 AM, Chia-Chieh Lin wrote:
> Hi all,
>
>
Hi all,
Â
I have a data set, named âdata1.longâ,
which has 180 subjects with two variables, âtimeâ and âpatientâ. The
âtimeâ
variable takes 9 values, i.e., 1, 2, 3,â¦,9, and the âpatientâ variable
takes
two values, 0 and 1. There are 10 subjects for each combination of âti
2 matches
Mail list logo