Learn R Programming

radiant.data (version 0.8.1)

table2data: Create data.frame from a table

Description

Create data.frame from a table

Usage

table2data(dat, freq = tail(colnames(dat), 1))

Arguments

dat

Data.frame

freq

Column name with frequency information

Examples

Run this code
# NOT RUN {
data.frame(price = c("$200","$300"), sale = c(10, 2)) %>% table2data

# }

Run the code above in your browser using DataLab