R
hist()
geom_histogram()
ggplot2
ggplot
diamonds
bind_rows()
mutate()
summarize()
density()
theme_set()
optim()
gamma()
d(t)
t
summary()
dbar
lm()
aov()
oneway.test()
pivot_longer()
pivot_wider()
contains()
predict()
anova()
rsm()
contour()
geom_tile()
geom_contour()
mermaid
fitdistr
fitdistr()
tidyfault
This is just a test document, placed at the end of the book.
library(dplyr)
# R code mtcars$hp %>% mean()
## [1] 146.6875
# Python code import pandas as pd data = pd.DataFrame({'hello': [1,2,3]}) print(data.hello.mean())
## 2.0
R Python
Did it work?