Displaying 1 result from an estimated 1 matches for "primt".
Did you mean:
print
2008 Jul 15
4
Iterations
...Sales2007.dat", header=TRUE)
Then I try to organize the data:
sc <- split(x, list(x$Category, x$SubCategory), drop=TRUE)
Then I want to iterate through the data. I was able to get the following to run on the R console:
for(i in 1:length(sc))
{
sum(sc[[i]]$Quantity)
}
But notiing is primted on the console. I find that:
for(i in 1:100)
{
i
}
Also does't output anything? I am probably making a wrong assumption here. Why desn't the loop seem to output anyything?
Thank you.
Kevin