Giter Site home page Giter Site logo

the_r_programming_environment's People

Contributors

chrislit avatar detinsley1s avatar geanders avatar rdpeng avatar seankross avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

the_r_programming_environment's Issues

titanic_4 not working

Good day
Further to others that have posted here, I am working on the titanic dataset problem #4 and am having the same issue, where the answer I have (from the titanic_4_corrected file here) is not being marked as Correct.

This is the code I am running:

titanic_4 <- titanic %>% 
    select(Survived, Pclass, Age, Sex) %>%
    filter(!is.na(Age)) %>%
    mutate(agecat = cut(Age, breaks = c(0, 14.99, 50, 150), 
                        include.lowest = TRUE,
    labels = c("Under 15", "15 to 50", "Over 50"))) %>%
    group_by(Pclass, agecat, Sex) %>%
    summarize(N = n(),
        survivors = sum(Survived == 1),
        perc_survived = 100 * survivors / N)

which I realized doesn't have the head(titanic_4) line at the end; however, I'm still not able to get it working and am completely stumped.
Any ideas would be appreciated.
Chris

Cannot install titanic package for Data Manipulation lesson

I get the following error when the titanic package is being downloaded in the coursera sanbox:

Trying to install package ‘titanic’ now...
Warning in install.packages :
URL 'https://rspm-sync.rstudio.com/bin/4.0-focal/e14a28e070ab15d2845f1326b06c5a1e1bae01058c542faae5a76736489fb3f0.tar.gz': status was 'SSL connect error'
Error in download.file(url, destfile, method, mode = "wb", ...) :
cannot open URL 'https://packagemanager.rstudio.com/all/__linux__/focal/291/src/contrib/titanic_0.1.0.tar.gz'
Warning in install.packages :
download of package ‘titanic’ failed

| Could not install package ‘titanic’!
| | 0%Error in seq.default(0, 1, length.out = nrow(e$les)) :
argument 'length.out' must be of length 1

| Leaving swirl now. Type swirl() to resume.

Data_Manipulation - step_4_titanic not working

I'm not able to pass the step 4 of the Data_Manipulation. Using the answer in

  • Data_Manipulation/scripts/step_4_titanic-correct.R

or using skip() doesn't work.

> R.version:
platform       x86_64-pc-linux-gnu
arch           x86_64
os             linux-gnu
system         x86_64, linux-gnu
status
major          3
minor          2.3
year           2015
month          12
day            10
svn rev        69752
language       R
version.string R version 3.2.3 (2015-12-10)
nickname       Wooden Christmas-Tree

The output:


| Try again. Getting it right on the first try is boring anyway!

| Check the example output in the comments of the script I opened for you. Make
| sure the columns in your output are in the same order as shown in the example
| output in the script comments. Try running your code in the console and
| printing out the result to determine whether it's successfully generating the
| desired final data frame before you submit it.

warning messages from top-level task callback 'mini'
Warning messages:
1: Detecting old grouped_df format, replacing `vars` attribute by `groups`
2: Detecting old grouped_df format, replacing `vars` attribute by `groups`

Functional programming: missmatch in map2_chr() example

I think that the assignment:
" Use map2_chr() to apply the paste() function to the sequence of integers from 1 to 26 and all the
letters of the alphabet in lowercase."

And the solution:
"map2_chr(letters, 1:26, paste)"

have the first two arguments inverted

Reading _Tabular_Data not working past 41% completion

problem is with the read_csv(datafile) step. Need to include show_col_types = FALSE in order to proceed to the next step. putting this in as the answer gets an error, and using the skip() will not resolve it because the correct answer is not working either.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.