Displaying 1 result from an estimated 1 matches for "r0000710a".
2006 May 22
2
Subset a list
...an subset a list based on some criterion as
subset() is designed for vectors, matrices or dataframes.
For example, I can use the following:
tt <- apply(data, 2, table)
Which returns an object of class list. Here is some sample output from
tt
$R0235940b
0 1 9
2004 1076 15361
$R0000710a
0 9
2 18439
$R0000710b
0 1 9
3333 3941 11167
tt$R0000710a meets my criteria and I would want to be able to easily
find this instead of rolling through the entire output. Is there a way
to subset this list to identify the columns which meet the criteria I
note above...