Skip to content
Prev 171031 / 398503 Next

Use of ifelse for indicating specific rownumber

why use ifelse? Shouldn't

b2$totalvac<-rep(0,1521)
b2$totalvac[i]<-1

do the trick?

joe1985 schrieb: