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

Getting and Cleaning Data/Grouping and Chaining with dplyr : error when I submit script #521

Open
C-P01 opened this issue May 3, 2023 · 0 comments

Comments

@C-P01
Copy link

C-P01 commented May 3, 2023

Hi,
When I follow this course and try to write code in the script following this :

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(size))

I get this error when I submit() :

Error in is_data_pronoun(expr) :
argument "expr" is missing, with no default

But I can't figure out what the problem is.
Anyone can help me ?

Thank you !

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