Skip to content
New issue

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

labels dropped when writing to CSV with readr #2

Open
lecy opened this issue May 10, 2024 · 0 comments
Open

labels dropped when writing to CSV with readr #2

lecy opened this issue May 10, 2024 · 0 comments

Comments

@lecy
Copy link
Collaborator

lecy commented May 10, 2024

Note that readr drops all of the labels from the dataset before writing to CSV. Use the base write.csv() instead.

# THIS DOESN'T WORK:
readr::write_csv( survey_recode_df, "DATA.csv" )  # drops all labels

# THIS WORKS FINE
write.csv( survey_recode_df, "DATA.csv" )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant