Sorry I'm a newbie in R.
I have multiple data frames, product.43
, product.98
, product.103
, that contain the sales of each product over the time and have another variable, index
, that contains the codes for each product:
products
43
98
103
If I do one by one it should be something like this:
plot(product.43[,3],product.43[,2],type="o")
plot(product.98[,3],product.98[,2],type="o")
plot(product.103[,3],product.103[,2],type="o")
what I'm trying to do is this:
plot(product.i[,3],artigo_agreg.i[,2],type="o")
So I want to substitute the i
for the product code that is in index
with a for
loop.