Displaying 1 result from an estimated 1 matches for "tower4".
Did you mean:
tower
2012 May 18
5
Loop Help
...below, I get the error message "Error in rep(i,
nrow(TOWER.i)) : invalid 'times' argument" but it doesn't make sense to me
since nrow should give an integer value. Any help will be really
appreciated.
TOWERS<-c("TOWER1","TOWER2","TOWER3","TOWER4","TOWER5","TOWER6","TOWER7")
for(i in 1:7){
TOWER.i<-TOWERS[i]
TOWER<-rep(i,nrow(TOWER.i))
TOWER.i<-cbind(TOWER.i[1:2],TOWER, TOWER.i[2:length(TOWER.i)])
}
--
View this message in context: http://r.789695.n4.nabble.com/Loop-Help-tp4630555.html
Sent f...