  
Hello list,
     i have a very simple question about matrix assignment.

i did like this.
res<-1:30
dim(res)<-c(5,6)

ind<-1:6

now i want to assign the value of this variable ind to first coloumn in matrix res.

like 
res[,1]<-ind

but this code is giving error , Actualy i have a for loop and value of ind variable is changing every time ,,total 6 times,,i want to assign every vlaue of ind (5 times) to each coloumn of res,,please help me in this regards

anil


ANIL KUMAR( METEOROLOGIST)
LRF SECTION 
NATIONAL CLIMATE CENTER 
ADGM(RESEARCH)
INDIA METEOROLOGICAL DEPARTMENT
SHIVIJI NAGAR
PUNE-411005 INDIA
MOBILE +919422023277
anilkumar@imdpune.gov.in

	[[alternative HTML version deleted]]

