[R] somebody help me about this error message...

Joseph Lee seokhyung83 at gmail.com
Sat Feb 27 06:13:48 CET 2010


I created variables automatically like this way

for(i in 1:5){
	nam <- paste("a",i,sep="")
	assign(nam,1:i)
}

and then, i want to insert a new data into "a2" variable. so, i did next
sentence

paste("a",2,sep="") <- 4

so, i got this error message

Error in get(paste("a", 2, sep = ""))[1] <- 4 : 
  target of assignment expands to non-language object

anyone knows abou this error message and tell me how to solve thie problem,
please......
-- 
View this message in context: http://n4.nabble.com/somebody-help-me-about-this-error-message-tp1571700p1571700.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list