powered by
Coerce a data frame to a frab
df_to_frab(from) # S4 method for data.frame as.frab(x)
Returns a frab object or a dataframe.
Frab objects
Robin K. S. Hankin
Coerces a data frame, with columns key and value, to the appropriate frab object. Repeated keys are summed.
key
value
as.frab(data.frame(key=letters[1:5],value=1:5))
Run the code above in your browser using DataLab