I am generating a large quantity of product specific tables based on information compiled from several other tables. Because of the quantity of product tables that I will be creating, their names are generated. I am looking to assign vector values by using a string, rather than the specific name of the object. Eventually I will have to reference by a for loop.
product<-list("A", "B", "C")
assign(paste(product[3],"_gen", sep=""), as.data.frame(matrix(nrow=3, ncol=5)))
from this the matrix has been created. I am looking to reference the original string to change specific vectors. I would like to change C_gen[3,2] to a value of 5 using the original paste reference. I've failed different ways using the <- and assign() functions, but probably the best way to show the basis of what I am trying to do is with:
paste(product[3],"_gen", sep="")[3,2]<- 5