dataframe {frab} | R Documentation |
Coerce a data frame to a frab
Description
Coerce a data frame to a frab
Usage
df_to_frab(from)
## S4 method for signature 'data.frame'
as.frab(x)
Arguments
x , from |
Frab objects |
Details
Coerces a data frame, with columns key
and value
, to the
appropriate frab object. Repeated key
s are summed.
Value
Returns a frab object or a dataframe.
Author(s)
Robin K. S. Hankin
Examples
as.frab(data.frame(key=letters[1:5],value=1:5))
[Package frab version 0.0-6 Index]