Displaying 1 result from an estimated 1 matches for "50x5".
Did you mean:
0x5
2008 Mar 06
1
Storing output in an array or matrix
...income quartiles for each state into an array by doing a loop so that
I don't have to do it state by state by hand.
ie, something like
for (i in 1:50) {
quantile(subset(data,state==i)$income) -> r[i,5] }
where the output of quantile will give 5 columns for each state. r would
be a 50x5 matrix where each row represents state i's income quartiles.
thanks
--
View this message in context: http://www.nabble.com/Storing-output-in-an-array-or-matrix-tp15881501p15881501.html
Sent from the R help mailing list archive at Nabble.com.