Displaying 1 result from an estimated 1 matches for "notgo".
Did you mean:
nogo
2011 Dec 11
3
how to assign a value?
Hi there,
I hope to modify values in a vector or matrix in the following code:
for (i in 1:9) {
assign(paste("a.", i, sep = ""), 1:i)
get(paste("a.", i, sep = ""))[i] <- i+50
}
I get the following error message:
Error in get(paste("a.", i, sep = ""))[i] <- i + 50 :
target of assignment expands to non-language object