Create data.frame from a table
Data.frame
Column name with frequency information
data.frame(price = c("$200", "$300"), sale = c(10, 2)) %>% table2data()
#> price
#> 1 $200
#> 1.1 $200
#> 1.2 $200
#> 1.3 $200
#> 1.4 $200
#> 1.5 $200
#> 1.6 $200
#> 1.7 $200
#> 1.8 $200
#> 1.9 $200
#> 2 $300
#> 2.1 $300