We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Related to this issue.
If you have the following data,
ds <- factor(c(rep("Male", times=2), rep("Female", times=4), rep("Gender non-conforming", times=2))) test <- ds[1:4] train <- ds[5:8]
The base c() does not work as expected:
c()
c(test, train) [1] 3 3 1 1 1 1 2 2
but you can list() and unlist()
list()
unlist()
unlist(list(test, train)) [1] Male Male Female Female Female Female [7] Gender non-conforming Gender non-conforming Levels: Female Gender non-conforming Male
That's annoying! I like fct_c() better because then I don't have to type unlist(), but I still have to give a list.
fct_c()
fct_c(list(test, train)) [1] Male Male Female Female Female Female [7] Gender non-conforming Gender non-conforming Levels: Female Gender non-conforming Male
I wish I could just fct_c(test, train).
fct_c(test, train)
The text was updated successfully, but these errors were encountered:
f07aace
No branches or pull requests
Related to this issue.
If you have the following data,
The base
c()
does not work as expected:but you can
list()
andunlist()
That's annoying! I like
fct_c()
better because then I don't have to typeunlist()
, but I still have to give a list.I wish I could just
fct_c(test, train)
.The text was updated successfully, but these errors were encountered: