dataframe function

Coerce a data frame to a frab

Coerce a data frame to a frab

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 keys are summed.

Returns

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))
  • Maintainer: Robin K. S. Hankin
  • License: GPL (>= 2)
  • Last published: 2024-07-24