Skip to content

separate convert with stringsAsFactors = FALSE #99

Closed
@kismsu

Description

@kismsu

Hi, I know that you are not a big fan of stringsAsFactors. However

df <- data.frame(x = c("a.b", "a.d", "b.c"))
df %>% 
    separate(x, c("A", "B"), convert = TRUE) %>% 
    str()
'data.frame':   3 obs. of  2 variables:
 $ A: Factor w/ 2 levels "a","b": 1 1 2
 $ B: Factor w/ 3 levels "b","c","d": 1 3 2

Would it be a good idea to send stringsAsFactors = FALSE to separate?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions