47 48 49 50 51 52 53 54
# File 'lib/statsample/crosstab.rb', line 47 def to_matrix f = frequencies rn = rows_names cn = cols_names Matrix.rows(rn.collect{|row| cn.collect{|col| f[[row,col]]} }) end