Displaying 1 result from an estimated 1 matches for "nam_xy".
Did you mean:
nam_34
2011 Aug 23
0
How to assign vector value as object name
...0 objects for all 20 animals, by "only"
referring to my vector with variable names with the idea that the actual
values behind make it into the object.
With this piece of code, I was able to extract "xy.1" as name for a data
frame containing the coordinates for animal 1:
nam_xy <- paste("xy.", 1, sep="")
# creates "xy.1"
coord.x <- paste("XCM", 1, sep="")
coord.y <- paste("YCM", 1, sep="")
for (i in 2:20) {
nam_xy[i] <- paste("xy.", i, sep="")
coord.x[i] <...