Learn R Programming

frab (version 0.0-6)

dataframe: Coerce a data frame to a frab

Description

Coerce a data frame to a frab

Usage

df_to_frab(from)
# S4 method for data.frame
as.frab(x)

Value

Returns a frab object or a dataframe.

Arguments

x, from

Frab objects

Author

Robin K. S. Hankin

Details

Coerces a data frame, with columns key and value, to the appropriate frab object. Repeated keys are summed.

Examples

Run this code

as.frab(data.frame(key=letters[1:5],value=1:5))

Run the code above in your browser using DataLab