Hadley Wickham's "dplyr" tutorial at useR 2014 (1/2)

Поделиться
HTML-код
  • Опубликовано: 27 окт 2024

Комментарии • 13

  • @patumusiime
    @patumusiime 4 года назад +5

    The Dropbox link is broken, from where can I download the datasets

  • @RavinderRam
    @RavinderRam 7 лет назад

    hadley wickham is brilliant man

  • @guilhermegoncalvesfernande7168
    @guilhermegoncalvesfernande7168 5 лет назад +3

    Excellent Class by far! But I just have to point something that I think it was an error.
    At 26:01 his script to calculate the hour and minutes of the dep variable is:
    mutate(flights,
    hour = dep %/% 100,
    minute = dep %% 100)
    So... Isn't that wrong? Cause the dep is in minutes and to pass to hours is minutes/60, so the right script should be:
    mutate(flights,
    hour = dep %/% 60,
    minute = dep %% 60)
    I've not finished the class yet, so I don't know if he'll correct it later, but if someone could just feed back me later, I would be thankful!

  • @alexmartino5949
    @alexmartino5949 8 лет назад

    Hello. I used the following piped formula but I think the last part is wrong. I essentially want to divide sum by number of instances BUT within each breakdown. I think it's taking the list of ALL instances because the resulting number is too small. How can I adjust?
    by.month %
    group_by(Months) %>%
    summarize(no = sum(total), yes = sum(BED.Contracts)/length(BED.Contracts))

  • @rajansharma8270
    @rajansharma8270 9 лет назад

    Great!

  • @1234saikrishna
    @1234saikrishna 4 года назад

    datasets link is not working. How to download these csv files

    • @yomolandia
      @yomolandia 4 года назад

      I think the datasetes are from the "nycflights13" package.

    • @spencerhall6052
      @spencerhall6052 4 года назад

      Actually, these are the Houston 2011 flights dataset, which is the "hflights" package, but you could probably use "nycflights13" just fine.

  • @tulipking
    @tulipking 5 лет назад

    thx

  • @venky193
    @venky193 8 лет назад

    wrt code snippet at 45:40
    When i try the following piece of code....
    flights %>%
    group_by(carrier, flight, dest)%>%
    tally(sort = TRUE)%>%
    filter(n == 365)
    ... i get an error saying ->
    Error in eval(expr, envir, enclos) : could not find function "desc"
    BUT, if i remove the
    "sort = TRUE" part in the tally command, it runs fine!!!
    What might be the reason??

  • @km2052
    @km2052 7 лет назад

    thx