ԋࢉࢠ− ݞ׳Β͠ −
ೖԋࢉࢠ
ex_func
[1] 600
x
[1] 100
ex_func <- function(){
x <- 600
x <<- 100
ptint(x)
}
Slide 15
Slide 15 text
ԋࢉࢠ− ݞ׳Β͠ −
ϒʔϧԋࢉࢠ Boolean Algebra
A == B
A != B
A | B
A & B
A %in% B
# equal to # not equal to
# or # and
# is A in B?
https://www.amazon.co.jp/dp/0486600289
Slide 16
Slide 16 text
ύΠϓԋࢉࢠ
X %>% f
X %>% f(y)
X %>% f %>% g
X %>% f(y, .)
f(X)
f(X, y)
g(f(X))
f(y, X)
%>% {magrittr}
ʮdplyr࠶ೖʢجຊฤʣʯyutanihilation
https://speakerdeck.com/yutannihilation/dplyrzai-ru-men-ji-ben-bian
It (dplyr) provides simple “verbs” to help
you translate your thoughts into code.
functions that correspond to the most
common data manipulation tasks
Introduction to dplyr
https://cran.r-project.org/web/packages/dplyr/vignettes/dplyr.html
WFSCT {dplyr}
WFSCT
S V O C M
ؔ ΦϒδΣΫτ
֤छҾ ͦΕҎ֎ͷએݴ
(ذ, ܁ฦ, etc)
※ ΠϝʔδͰ͢
Slide 42
Slide 42 text
WFSCT
S V O C M
※ ΠϝʔδͰ͢
ಈࢺʴಈࢺʹ͞Εͨम০ޠ
{dplyr}ͷverbؔ
Slide 43
Slide 43 text
WFSCT {dplyr}
By constraining your options,
it helps you think about your
data manipulation challenges.
Introduction to dplyr
https://cran.r-project.org/web/packages/dplyr/vignettes/dplyr.html
ΑΓଟ͘ͷ੍Λ՝͢ࣄͰɺ
ࠢͷᐫ͔ΒɺΑΓࣗ༝ʹͳΔɻ
Igor Stravinsky
И́горь Ф Страви́нский
The more constraints one imposes,
the more one frees one's self of the
chains that shackle the spirit.
1882 - 1971
※ ׂͱҙ༁