Closed meghanshaw closed 2 years ago
Hi,
I keep getting a message that the code I'm submitting for the summarize1 section of the grouping and chaining lesson is incorrect, even after I've checked and pasted the correct answer from the swirl() github post here: https://github.com/swirldev/swirl_courses/blob/master/Getting_and_Cleaning_Data/Grouping_and_Chaining_with_dplyr/scripts/summarize1-correct.R
This is the code I have tried to submit:
pack_sum <- summarize(by_package, count = n(), unique = n_distinct(ip_id), countries = n_distinct(country), avg_bytes = mean(size))
R version 4.0.3 (2020-10-10) Platform: x86_64-apple-darwin17.0 (64-bit) Running under: macOS Catalina 10.15.7
Matrix products: default BLAS: /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib LAPACK: /Library/Frameworks/R.framework/Versions/4.0/Resources/lib/libRlapack.dylib
locale: [1] en_AU.UTF-8/en_AU.UTF-8/en_AU.UTF-8/C/en_AU.UTF-8/en_AU.UTF-8
attached base packages: [1] stats graphics grDevices utils datasets methods base
other attached packages: [1] dplyr_1.0.4 swirl_2.4.5
loaded via a namespace (and not attached): [1] rstudioapi_0.13 knitr_1.31 magrittr_2.0.1 rsthemes_0.2.1.9000 tidyselect_1.1.0 [6] R6_2.5.0 rlang_0.4.10 fansi_0.4.2 stringr_1.4.0 httr_1.4.2 [11] tools_4.0.3 xfun_0.29 utf8_1.1.4 tinytex_0.36 cli_2.3.1 [16] ellipsis_0.3.1 htmltools_0.5.1.1 yaml_2.2.1 digest_0.6.27 assertthat_0.2.1 [21] tibble_3.0.6 lifecycle_1.0.0 crayon_1.4.0 purrr_0.3.4 vctrs_0.3.6 [26] bitops_1.0-6 RCurl_1.98-1.2 testthat_3.0.1 curl_4.3 glue_1.4.2 [31] evaluate_0.14 rmarkdown_2.11 stringi_1.5.3 pillar_1.4.7 compiler_4.0.3 [36] generics_0.1.0 pkgconfig_2.0.3
realised I hadn't saved the code! All fixed
Hi,
I keep getting a message that the code I'm submitting for the summarize1 section of the grouping and chaining lesson is incorrect, even after I've checked and pasted the correct answer from the swirl() github post here: https://github.com/swirldev/swirl_courses/blob/master/Getting_and_Cleaning_Data/Grouping_and_Chaining_with_dplyr/scripts/summarize1-correct.R
This is the code I have tried to submit:
pack_sum <- summarize(by_package, count = n(), unique = n_distinct(ip_id), countries = n_distinct(country), avg_bytes = mean(size))
R version 4.0.3 (2020-10-10) Platform: x86_64-apple-darwin17.0 (64-bit) Running under: macOS Catalina 10.15.7
Matrix products: default BLAS: /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib LAPACK: /Library/Frameworks/R.framework/Versions/4.0/Resources/lib/libRlapack.dylib
locale: [1] en_AU.UTF-8/en_AU.UTF-8/en_AU.UTF-8/C/en_AU.UTF-8/en_AU.UTF-8
attached base packages: [1] stats graphics grDevices utils datasets methods base
other attached packages: [1] dplyr_1.0.4 swirl_2.4.5
loaded via a namespace (and not attached): [1] rstudioapi_0.13 knitr_1.31 magrittr_2.0.1 rsthemes_0.2.1.9000 tidyselect_1.1.0
[6] R6_2.5.0 rlang_0.4.10 fansi_0.4.2 stringr_1.4.0 httr_1.4.2
[11] tools_4.0.3 xfun_0.29 utf8_1.1.4 tinytex_0.36 cli_2.3.1
[16] ellipsis_0.3.1 htmltools_0.5.1.1 yaml_2.2.1 digest_0.6.27 assertthat_0.2.1
[21] tibble_3.0.6 lifecycle_1.0.0 crayon_1.4.0 purrr_0.3.4 vctrs_0.3.6
[26] bitops_1.0-6 RCurl_1.98-1.2 testthat_3.0.1 curl_4.3 glue_1.4.2
[31] evaluate_0.14 rmarkdown_2.11 stringi_1.5.3 pillar_1.4.7 compiler_4.0.3
[36] generics_0.1.0 pkgconfig_2.0.3