search for: tableon

Displaying 1 result from an estimated 1 matches for "tableon".

Did you mean: tablen
2000 Mar 31
1
Cutting vectors
I have one factor with say five levels (fact) of different size and a corresponding variable (var). I randomly generate five new levels (nfact ex. 2,2,1,5,4). What I would like to do is to extract the corresponding variable values into a new variable (nvar). I did try the following, why doesn't it work? nvar<-var[fact==nfact[ ]] Patrik Waldmann