Displaying 2 results from an estimated 2 matches for "lev_id".
Did you mean:
dev_id
2009 Mar 29
2
select observations from longitudinal data
Suppose I have a long format for a longitudinal data
id time x
1 1 10
1 2 11
1 3 23
1 4 23
2 2 12
2 3 13
2 4 14
3 1 11
3 3 15
3 4 18
3 5 21
4 2 22
4 3 27
4 6 29
I want to select the x values for each ID when time is equal to 3. When that
observation is not observed, then I want to replace it with the obervation
at time equal to 4. otherwise just use NA.
How can I implement this with a quick
2012 Mar 07
4
Subset problem
...nt to collect data from a
user.
When do I take the view, presents the results I want.
The problem arises when can I make the tab. for RES_ID, introduces me to
zero results do not envision noVIEW
val_user='16'
x.sub <- data.frame(subset(Dataset,Dataset$USER==val_user))
View(x.sub)
lev_ID<-levels(x.sub$RES_ID)
res<-table(x.sub$RES_ID)
res
E000- 0
F160- 0
XFRT- 33
XVVR- 0
SWEX- 23
SWRS- 0
just wanted to see the data with values ??greater than 0 in the example only
two results
because when create the graph create empty space
barplot(table(x.sub$RES_ID),width =1,angle=45,i...