Displaying 1 result from an estimated 1 matches for "row_two".
2012 Nov 21
1
lists as matrix cells ?
Dear R experts,
since more or less half a year I am using R.
In many of my computations I construct huge matrices. Often I do so using
'cbind' on named lists:
do.call( 'cbind',
list(
"Column_A"=list("Row_one"=1.0, "Row_two"=2.0, "Row_three"=3.0),
"Column_B"=list("Row_one"=4.0, "Row_two"=5.0, "Row_three"=6.0)
)
)
# Returns:
Column_A Column_B
Row_one 1 4
Row_two 2 5
Row_three 3 6
In some cases I even construct matrices wi...