这里是四川师范大学研究生公选课《数据科学中的R语言》的课程内容。Bookdown 版本在这里: https://bookdown.org/wangminjie/R4DS/
perlatex / r_for_data_science Goto Github PK
View Code? Open in Web Editor NEWMaterials for teaching R and tidyverse
Materials for teaching R and tidyverse
这里是四川师范大学研究生公选课《数据科学中的R语言》的课程内容。Bookdown 版本在这里: https://bookdown.org/wangminjie/R4DS/
本书"基础篇-第8章-8.5 更多"部分的英文单词拼写似乎存在问题,或许老师可以复查一下。
作为R语言初学者,从老师的书中学到了很多!感谢老师一直以来的付出与维护!
王老师,文中12.4.1讲到““为了让每列更加直观,也可以tribble()创建””,区别在何处?怎么直观了?请再讲讲
https://bookdown.org/wangminjie/R4DS/tibble.html#tibble-与-data.frame
你好,
我自己使用R 已经超过十年了,偶然看到了你的这本书。翻了一下,非常喜欢。
全书整体性强,结构合理,逻辑清晰,语言简练,排版清新,图片设计尤其用心。这样的书籍在中文届太难得了。
所以特地来感谢一下。如果将来出版,我一定会买一本支持一下。
Dong
课件做的很好,当时rmd文件运行起来还是没有jupyter notebook运行的那么漂亮,王老师,可否做成jupyter notebook的形式
https://bookdown.org/wangminjie/R4DS/stringr.html#字符串组合
str_c可以被paste替代?大神既然新创造了这个函数,是不是有独特的用途?
rmd文件为何不能按照网站上的章节命名?https://bookdown.org/wangminjie/R4DS/
便于对照,运行
读了此书获益匪浅,Tidyverse和R是两种语言,独立出去算了,base R坑真的太大了
王老师您好,请问# ggplot2之从图层到几何形状 {#tidyverse-ggplot2-from-layer-to-geom}
penguins %>%
ggplot(aes(x = species, y = bill_length_mm)) +
geom_point() +
stat_summary(
geom = "pointrange",
fun.data = ~ mean_se(., mult = 5),
color = "red",
size = 1
) +
stat_summary(
fun = "mean",
geom = "text",
mapping = aes(y = stage(bill_length_mm, after_stat = 30),
label = round(after_stat(y), 2)),
color = "blue",
size = 5
) +
stat_summary(
fun = "length",
geom = "text",
mapping = aes(y = stage(bill_length_mm, after_stat = 62),
label = after_stat(y)
),
color = "black",
size = 5
)
为何after_stat 要设置为30 和62?
谢谢!
老师您好!
这一章节,line287处
‘‘’
ggplot(aes(x = Mean Temperature [F]
, y = Month
, fill = ..x..))
‘’‘
的..x..是什么意思啊
Hi Dr. Wang, it was great to have a chance to read your book. In chapter 32.1, you mentioned "在构建的虚拟(Δ=0)的平行世界里,出现实际观察值(0.5412)的概率很小,这里是(0.1644)。 如果以(p< 0.05)为标准,那我们有足够的证据证明,H0不成立,即爱情电影和动作电影的评分均值存在显著差异,具体来说,动作电影的平均评分要比爱情电影低些". Since p value is 0.1644, which is large than 0.05, should we not reject the null hypothesis?
Wang 老师好!
我是R语言的初学者。
今天偶然在搜索引擎中搜索到了您的电子书,非常喜欢,特来感谢!
能否将其生成一个pdf或者epub的文件方便下载,昨天试图将其pull下来,自己用
rstudio build ,折腾了一下午都没有成功,所以想提交一个issue给您,希望您在方便的时候生成一个。
有个朋友想入门R语言,我推荐了这本书给她。粗略看下来是这本书非常棒,对新手十分友好,是一本很适合用来入门的书,更难得的是作者有随着tidyverse包的迭代同步更新着本书。个人觉得,对于 top_n()
、summarise_if
等已经被代替的函数,没有必要专门去学习了,可以在解释为什么要引入 across()
函数时作为补充说明,就如书中 across() 之美的部分那样。当然,可能作者从教学上有所考量才选择保留这些内容,为我的无理提前说一声抱歉。
There is a potential typo in the proportional odds model in Chapter 40. The formula in the polr
function of the MASS
library is:
logit(P(Y≤j))=αj - β1 * x1 - β2 * x2
So, when interpreting the result of the following function, the sign of beta should be reversed. For example, the coefficient of edu_m
should be -0.461 in the equation.
polr(formula = edu ~ edu_f + edu_m + sex + num_siblings + urban,
## data = df1, method = c("logistic"))
References on the formula of polr
:
polr
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.