Skip to Main Content
Wydajne programowanie w R.
book

Wydajne programowanie w R.

by Colin Gillespie, Robin Lovelace
February 2018
Intermediate to advanced content levelIntermediate to advanced
242 pages
8h 6m
Polish
APN Promise
Content preview from Wydajne programowanie w R.
128 | Rozdział 6: Wydajna stolarka danych
korzystające ze standardowej ewaluacji oznaczone sąprzyrostkiem
_
. Zostało tozilustro-
wane wponiższym kodzie naprzykładzie użytej wcześniej funkcji
gather()
:
#
1: Domyślna funkcja NSE
group_by(cars, cut(speed, c(0, 10, 100))) %>% summarize(mean(dist))
#> # A tibble: 2 × 2
#> `cut(speed, c(0, 10, 100))` `mean(dist)`
#> <fctr> <dbl>
#> 1 (0,10] 15.8
#> 2 (10,100] 49.0
#
2: Standardowa ewaluacja za pomocą znaków cudzysłowu
group_by_(cars, "cut(speed, c(0, 10, 100))") %>% summarize_("mean(dist)")
#> # A tibble: 2 × 2
#> `cut(speed, c(0, 10, 100))` `mean(dist)`
#> <fctr> <dbl>
#> 1 (0,10] 15.8
#> 2 (10,100] ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Interaktywna wizualizacja danych

Interaktywna wizualizacja danych

Scott Murray

Publisher Resources

ISBN: 9788375413526