Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Alison Presmanes Hill
    @apreshill
    Welcome to CONJ620!
    Alison Presmanes Hill
    @apreshill

    Here is the code I want to run:

    library(ggplot2)
    ggplot(iris, aes(x = sepal.length, y = sepal.width)) + 
                   geom_point()

    Here is the error I get:

    Error in FUN(X[[i]], ...) : object 'sepal.length' not found

    HELP :)

    Grace Lawley
    @gracelawley

    When I run glimpse(iris) I get this:

    Observations: 150
    Variables: 5
    $ Sepal.Length <dbl> 5.1, 4....
    $ Sepal.Width  <dbl> 3.5, 3....
    $ Petal.Length <dbl> 1.4, 1....
    $ Petal.Width  <dbl> 0.2, 0....
    $ Species      <fct> setosa,...

    Variable names are case sensitive in R so sepal.length is not the same as Sepal.Length. The x and y values in your ggplot command need to match the column names of iris exactly.

    WatanabeSmith
    @WatanabeSmith

    I'm having issues making a new column:

    heart %>% mutate(RIDAGEMOS == RIDAGEYR * 12)

    Error in mutate_impl(.data, dots) :
    Evaluation error: object 'RIDAGEMOS' not found.

    It seems like the same issue happens in the iris dataset, so it's not a problem with the heart dataframe

    iris %>% mutate(Sepal.Scaled == Sepal.Length * 12)
    Error in mutate_impl(.data, dots) : 
      Evaluation error: object 'Sepal.Scaled' not found.

    What am I doing wrong?

    Alison Presmanes Hill
    @apreshill
    @WatanbeSmith I can help! Looks like you are using == instead of =; the former is used to evaluate a comparison (https://apreshill.github.io/ohsu-basic-stats/slides/cm012.html#31). For mutate, please review the slides (https://apreshill.github.io/ohsu-basic-stats/slides/cm012.html#32). Also note that to make your mutate stick, you'll want to save it to your data frame (https://apreshill.github.io/ohsu-basic-stats/slides/cm012.html#39)
    heart_bp <- heart_bp %>% 
         mutate(bp_ratio = BPXDI1 / BPXDI2)
    iris <- iris %>% 
         mutate(Sepal.Scaled = Sepal.Length * 12)
    Anjanibhargavi Ragothaman
    @anjaniragothaman
    Can you provide few examples/suggestions that you found good/useful the "Report your process" section?
    Alison Presmanes Hill
    @apreshill
    Hi @anjaniragothaman, see the first section of my own blog post for an example: https://alison.rbind.io/post/up-and-running-with-blogdown/
    hari hara sudhan
    @hsudhan91_twitter
    Hi I have r 3.5.1 installed yet not able to install reprohealth package
    it says reprohealth is not available for this version
    Matt Hagen
    @mwhpdx

    Hi Hari, you should run the following code (in your console, not in a markdown doc!):
    install.packages("remotes")

    library(remotes)

    install_github("apreshill/reprohealth")

    Once you've run this once in R, reprohealth should be installed and and you'll be able to call it with library(reprohealth)

    hari hara sudhan
    @hsudhan91_twitter
    Thanks @mwhpdx that worked.
    nbthelan
    @nbthelan
    Screen Shot 2018-07-17 at 1.53.24 PM.png
    Hi there, I've been able to knit my assignment all the way up until this point and it says the above error when I'm trying to knit
    Matt Hagen
    @mwhpdx
    Hi, @nbthelan I can't quite tell what the problem is without seeing the rest of your code. If you can get to class a few minutes early I'll be in the room and can help you out.
    nbthelan
    @nbthelan
    I'm here now, I was hoping someone would come early. Thank you so much!
    Anjanibhargavi Ragothaman
    @anjaniragothaman
    @apreshill , @mwhpdx , @gracelawley and Kevin - If we hover over the username in datacamp course, it will show the profile name - that would be most reliable to see that we are submitting our own completion status screenshots.
    Anjani_DC_tidyverse_chap1_2.png
    hari hara sudhan
    @hsudhan91_twitter
    Is there a submission link for datacamp courses to be completed on 24th july. I don't see one in sakai as of now
    Anjanibhargavi Ragothaman
    @anjaniragothaman
    @apreshill , You mentioned in Tuesday's class that you would update the readings to do for tomorrow's class, regarding 538 dataset
    Nathan McMahon
    @nathanpmcmahon_gitlab
    Screen Shot 2018-08-09 at 1.39.09 PM.png
    Screen Shot 2018-08-09 at 1.39.09 PM.png
    I am getting this error when attempting to knit. It runs without error and I was knitting before without issue. I am not sure how to resolve this issue so I am able to knit and submit my assignment
    goodman-jim
    @goodman-jim
    image.png
    Can Dr. Hill or a TA please clarify the following text at the end of lab12? It seems like there is missing code in the existing assignment.
    goodman-jim
    @goodman-jim
    Moreover, besides answering the questions posed, it's unclear what we're being asked to do in section 2.3. Any clarification would be most appreciated.
    Alison Presmanes Hill
    @apreshill
    Woops- sorry for the trailing train of thought there, I updated.
    Anjanibhargavi Ragothaman
    @anjaniragothaman
    Screen Shot 2018-08-12 at 2.55.40 PM.png
    I don't see get_ci() command in the infer package.
    Alison Presmanes Hill
    @apreshill
    Did you try ?get_ci? http://infer.netlify.com/reference/get_ci.html Try running sessionInfo() to see if you need to update the package.
    Anjanibhargavi Ragothaman
    @anjaniragothaman
    Thank you! I had 0.1 version updated it to 0.3.1
    tbates0
    @tbates0

    I am now all of a sudden having the glue collapse error. I changed nothing between class and opening the assignment to finish it up tonight, so I am not sure what happened. I have so far, installed and updated glue, updated all other packages, reloaded my project, restarted rstudio, and my computer. My error gives a little more info than what I was seeing in class, and is failing during the gather contained in Alison's sneetches_tidy generation code. It says:

    Error: TRUE must evaluate to column positions or names, not a logical vector
    In addition: Warning message:
    'glue::collapse' is deprecated.
    Use 'glue_collapse' instead.
    See help("Deprecated") and help("glue-deprecated").

    Any help would be appreciated.

    tbates0
    @tbates0
    I found the issue. I somehow added an extra character into the "factor_key" argument. It seems that the glue collapse warnings are unrelated to the problem at hand and R just threw those in for fun.
    Anjanibhargavi Ragothaman
    @anjaniragothaman
    Will the datacamp be automatically updated or we have to submit screen shots?
    I don't see a DC assignment submission link on sakai