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

Fix explanation of NA result from separate_rows() function #473

Merged
merged 1 commit into from
Jul 25, 2023

Conversation

maltelueken
Copy link
Contributor

I noticed that the explanation of what the separate_rows() function does in the "Applying pivot_wider() to clean our data" section of the episode "Data Wrangling with tidyr" is not correct. It originally says that there is a column with the name NA after applying separate_rows(). However, what actually happens is that the column items_owned contains NA values. These are replaced with the following command replace_na().

I fixed the explanation of what happens after separate_rows(). Please feel free to comment on/suggest an alternative phrasing.

#462 discusses to replace separate_rows() by separate_longer_delim(). The corrected explanation in this PR still hold for the preferred separate_longer_delim() function.

@github-actions
Copy link

🆗 Pre-flight checks passed 😃

This pull request has been checked and contains no modified workflow files, spoofing, or invalid commits.

It should be safe to Approve and Run the workflows that need maintainer approval.

github-actions bot pushed a commit that referenced this pull request Jul 25, 2023
@juanfung
Copy link
Contributor

@maltelueken great catch thank you!

@juanfung juanfung merged commit e0f54e6 into datacarpentry:main Jul 25, 2023
3 checks passed
github-actions bot pushed a commit that referenced this pull request Jul 25, 2023
Auto-generated via {sandpaper}
Source  : e0f54e6
Branch  : main
Author  : Juan Fung <[email protected]>
Time    : 2023-07-25 18:53:23 +0000
Message : Merge pull request #473 from maltelueken/fix-sep-rows-explanation

Fix explanation of `NA` result from `separate_rows()` function
github-actions bot pushed a commit that referenced this pull request Jul 25, 2023
Auto-generated via {sandpaper}
Source  : 08a8030
Branch  : md-outputs
Author  : GitHub Actions <[email protected]>
Time    : 2023-07-25 18:55:41 +0000
Message : markdown source builds

Auto-generated via {sandpaper}
Source  : e0f54e6
Branch  : main
Author  : Juan Fung <[email protected]>
Time    : 2023-07-25 18:53:23 +0000
Message : Merge pull request #473 from maltelueken/fix-sep-rows-explanation

Fix explanation of `NA` result from `separate_rows()` function
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

Successfully merging this pull request may close these issues.

2 participants