{"id":21456148,"url":"https://github.com/cworld1/r-learning","last_synced_at":"2025-07-09T16:04:59.691Z","repository":{"id":37779326,"uuid":"489890995","full_name":"cworld1/r-learning","owner":"cworld1","description":"关于 CWorld 在学习 R 语言时的一些笔记","archived":false,"fork":false,"pushed_at":"2024-10-23T15:00:26.000Z","size":35702,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-10-23T18:43:05.700Z","etag":null,"topics":["book","data-science","learn","machine-learning","r"],"latest_commit_sha":null,"homepage":"https://cworld1.github.io/r-learning/","language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cworld1.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-05-08T08:46:42.000Z","updated_at":"2024-10-23T15:05:44.000Z","dependencies_parsed_at":"2022-08-18T08:03:33.961Z","dependency_job_id":null,"html_url":"https://github.com/cworld1/r-learning","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cworld1%2Fr-learning","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cworld1%2Fr-learning/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cworld1%2Fr-learning/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cworld1%2Fr-learning/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cworld1","download_url":"https://codeload.github.com/cworld1/r-learning/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":226002957,"owners_count":17558157,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["book","data-science","learn","machine-learning","r"],"created_at":"2024-11-23T05:14:34.647Z","updated_at":"2024-11-23T05:14:35.280Z","avatar_url":"https://github.com/cworld1.png","language":"R","funding_links":[],"categories":[],"sub_categories":[],"readme":"# R learning\n\n[![R language](https://img.shields.io/badge/R-276DC3?style=flat-square\u0026logo=r)](https://www.r-project.org/)\n[![GitHub stars](https://img.shields.io/github/stars/cworld1/r-learning?style=flat-square)](https://github.com/cworld1/r-learning/stargazers)\n[![GitHub commit activity](https://img.shields.io/github/commit-activity/y/cworld1/r-learning?label=commits\u0026style=flat-square)](https://github.com/cworld1/r-learning/commits)\n[![GitHub Workflow Status](https://img.shields.io/github/workflow/status/cworld1/r-learning/Render%20Book?label=workflow\u0026style=flat-square)](https://github.com/cworld1/r-learning/actions/workflows/main.yml)\n[![GitHub license](https://img.shields.io/github/license/cworld1/r-learning?style=flat-square)](https://github.com/cworld1/r-learning/blob/master/LICENSE)\n\n这是关于 CWorld 学习 R 语言的一些笔记和代码。\n\n[前往阅读](https://r.cworld.top)\n\n## 项目介绍\n\n本项目使用 `bookdown` 构建，包含 [gitbook](https://r.cworld.top/)、[epub_book](https://r.cworld.top/R-Learning.epub) 和 [pdf_book](https://r.cworld.top/R-Learning.pdf) 三种构建成品。\n\n实际学习上，我们更推荐将项目打包下载，或使用 `git clone` 到本地方便随时运行它们的任意一部分，而不是反复使用复制和粘贴。本笔记的 R 笔记源码针对大纲进行了优化，使用支持更友好的编辑器，很大程度上方便读者理清节点关系与数据生成始末。这里推荐使用 RStudio 或 Visual Studio Code，但理论上应该也有让你阅读更愉快的编辑器，在此不做敷述。\n\n## 项目运行\n\n首先请保证自己已经有了 R 本地环境，并把 RScript 加入了全局变量。\n\n- 安装运行代码需要的包：\n\n```sh\nRscript -e 'install.packages(c(\"tidyverse\", \"nycflights13\", \"hexbin\", \"gapminder\", \"Lahman\", \"maps\", \"feather\", \"ggrepel\"))'\n```\n\n- 安装构建本书需要的包（如果你需要的话）：\n\n```sh\nRscript -e 'install.packages(c(\"rmarkdown\", \"bookdown\"))'\nRscript -e 'tinytex::install_tinytex()'\n```\n\n- 开始构建（如果你需要的话）：\n\n```sh\nset -ev\ncd book\nRscript -e \"bookdown::render_book('index.Rmd', 'bookdown::gitbook')\"\n```\n\n## 贡献\n\n由于作者只是个正在浅学 R 的初学者，所以笔记难免存在明显纰漏，还请读者们多多海涵。此外，也欢迎诸位使用 PR 或 Issues 来改善它们。\n\n## 鸣谢\n\n一些电子教材对作者学习上帮助颇多，没有这些资料，就没有这部笔记。在此对这些教材的原作者深表感谢。读者若对此项目笔记抱有疑惑，也可以仔细阅读以下的教材以作弥补。\n\n- [R for Data Science](https://r4ds.had.co.nz/)\n- [R for Data Science 2 Edition](https://r4ds.hadley.nz/)\n- [R for Data Science: Exercise Solutions](https://jrnold.github.io/r4ds-exercise-solutions)（[Jeffrey Arnold](https://github.com/jrnold)）\n- [Modern Data Science with R](https://mdsr-book.github.io/mdsr2e/)（[Benjamin S. Baumer, Daniel T. Kaplan, and Nicholas J. Horton](https://github.com/mdsr-book/mdsr/graphs/contributors)）\n- [bookdown: Authoring Books and Technical Documents with R Markdown](https://bookdown.org/yihui/bookdown/)（[Yihui Xie](https://yihui.org/)）\n- [Text Mining with R](https://www.tidytextmining.com/)（[Julia Silge](http://juliasilge.com/) and [David Robinson](http://varianceexplained.org/)）\n- [R 语言教程](https://www.math.pku.edu.cn/teachers/lidf/docs/Rbook/html/_Rbook/index.html)（[李东风](https://www.math.pku.edu.cn/teachers/lidf/)）\n- [商业数据分析师-R 语言数据处理](https://bookdown.org/zhongyufei/Data-Handling-in-R/)（Yufei Zhong）\n\n## License\n\n[![知识共享许可协议](https://i.creativecommons.org/l/by-nc-sa/4.0/88x31.png)](https://creativecommons.org/licenses/by-nc-sa/4.0/deed.zh)\n\nThe MIT License.\n\n本作品采用 [知识共享署名-非商业性使用-相同方式共享 4.0 国际许可协议](http://creativecommons.org/licenses/by-nc-sa/4.0/) 进行许可。\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcworld1%2Fr-learning","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcworld1%2Fr-learning","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcworld1%2Fr-learning/lists"}