swirldev / swirl_courses

:mortar_board: A collection of interactive courses for the swirl R package.
http://swirlstats.com
Other
4.32k stars 7.24k forks source link

Error in summarise_impl(.data, dots) : attempt to use zero-length variable name while running summarize1.R #409

Closed veonliew closed 6 years ago

veonliew commented 6 years ago

Hi, I am running the script summarize1.R, when I submit it I got the following error: | Sourcing your script...

Error in summarise_impl(.data, dots) : attempt to use zero-length variable name

This is the script: pack_sum <- summarize(by_package, count = n(), unique = n_distinct(ip_id), countries = n_distinct(country), avg_bytes = mean(size))

I have tried to save in the default directory in both RStudio and RGui, but it still gave me the same error. Please advise. Thanks!

veonliew commented 6 years ago

It finally works!