Displaying 1 result from an estimated 1 matches for "tp3055417p3055417".
2010 Nov 23
6
the first. from SAS in R
...:
if first.a {
a$d<-1
}else{
a$d<-0
}
This would give me
a b c b
1 1 5 1
1 0 2 0
2 0 2 1
2 0 NA 0
2 9 2 0
3 1 3 1
Is there such a function in R or anything similar?
thx
//Joel
--
View this message in context: http://r.789695.n4.nabble.com/the-first-from-SAS-in-R-tp3055417p3055417.html
Sent from the R help mailing list archive at Nabble.com.