Це відео не доступне.
Перепрошуємо.

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

Поділитися
Вставка
  • Опубліковано 4 вер 2024

КОМЕНТАРІ • 13

  • @patumusiime
    @patumusiime 4 роки тому +4

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

  • @guilhermegoncalvesfernande7168
    @guilhermegoncalvesfernande7168 5 років тому +2

    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!

  • @RavinderRam
    @RavinderRam 6 років тому

    hadley wickham is brilliant man

  • @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))

  • @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??

  • @rajansharma8270
    @rajansharma8270 9 років тому

    Great!

  • @tulipking
    @tulipking 5 років тому

    thx

  • @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.

  • @km2052
    @km2052 7 років тому

    thx