knitr::opts_chunk$set(echo = TRUE)
Issues with factor:
Current result of unConf:
library(dplyr) library(categorical) data("nace_rev2") print(nace_rev2, short = TRUE)
df <- data.frame( id = 1:200, activity = sample(nace_rev2[[4]]$id, 200), some_number = runif(200), stringsAsFactors = FALSE )
print(head(df))
table(cast_level(df$activity, nace_rev2, level = 1, label = FALSE))
df %>% filter(cast_level(activity, level = 1, label = F) == "A") %>% group_by(activity = cast_level(activity, level = 3)) %>% summarise(some_total = sum(some_number))
R CMD check
at https://github.com/uRos2018/categorical ;)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.