Displaying 1 result from an estimated 1 matches for "_present_".
Did you mean:
_presence_
2011 Jan 19
1
expand.grid
...ot;j", "k"))
I would like to have a dataframe with all (unique) combinations of all the
factors present.
In fact, I would like a simple solution for these two cases: given the three
factor columns above, I would like both all _possible_ combinations of the
factor levels, and all _present_ combinations of the factor levels (e.g. if
I would do this for the first 4 rows of dfr, it would contain no
combinations with c3="k"). It would also be nice to be able to choose
whether or not NA''s are included.
I''m convinced that some package holds a readymade solut...