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

Grouping and Chaining data with dplyr #925

Open
JustusKilanowski opened this issue Apr 11, 2024 · 0 comments
Open

Grouping and Chaining data with dplyr #925

JustusKilanowski opened this issue Apr 11, 2024 · 0 comments

Comments

@JustusKilanowski
Copy link

JustusKilanowski commented Apr 11, 2024

Hello everybody,
unfortunately in the swirl course "Grouping and Chaining data with dplyr my script is not accepted. I compared it to the solutions on the internet and it seems to be correct. If my script won't be accepted I can not complete the whole course on coursera. Do you have any idea, why the script is not accepted and what to do?
Here is my script:

Compute four values, in the following order, from

the grouped data:

1. count = n()

2. unique = n_distinct(ip_id)

3. countries = n_distinct(country)

4. avg_bytes = mean(size)

A few thing to be careful of:

1. Separate arguments by commas

2. Make sure you have a closing parenthesis

3. Check your spelling!

4. Store the result in pack_sum (for 'package summary')

You should also take a look at ?n and ?n_distinct, so

that you really understand what is going on.

pack_sum <- summarize(by_package,
count = n(),
unique = n_distinct(ip_id),
countries = n_distinct(country),
avg_bytes = mean(sizes))
Thanks in advance!
Best Regards
Justus Kilanowski

@JustusKilanowski JustusKilanowski changed the title Grouping and Clearing data with dplyr Grouping and Chaining data with dplyr Apr 11, 2024
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