Closed JustinJDavies closed 6 years ago
Suggestion : test for # of a variable type first before trying to do something with it.
ie wrap :
catvar_valuecount_tbl <- data_tbl %>%
summarise_at(coltype_lst$split$discrete
,function(x) length(unique(x))) %>%
gather('var_name', 'level_count') %>%
arrange(-level_count)
in an if
block
Also manifests in chunk remove_id_variables
Closing this issue as fixed by
https://github.com/DublinLearningGroup/dataexpks/commit/d85d5d836b419fb2141344c99d809ae6c09bd047
Action: When using mtcars as a test dataset, which has no discrete variables, Run the chunk
find_highlevelcount_categorical_variables
of skeleton.RmdExpected : Chunk outputs a comment that there are no discrete variables, and moves on to the next chunk Actual: Throws error "Error: .cols should be a character/numeric vector or a columns object"