没有合适的资源?快使用搜索试试~ 我知道了~
The R Series - R Markdown The Definitive Guide (2018)
需积分: 9 7 下载量 51 浏览量
2019-05-24
12:09:53
上传
评论
收藏 9.36MB PDF 举报
温馨提示
(作者)Yihui Xie, J.J. Allaire, Garrett Grolemund This is the first official book authored by the core R Markdown developers that provides a comprehensive and accurate reference to the R Markdown ecosystem. With R Markdown, you can easily create reproducible data analysis reports, presentations, dashboards, interactive applications, books, dissertations, websites, and journal articles, while enjoying the simplicity of Markdown and the great power of R and other languages.
资源推荐
资源详情
资源评论























Howtoreadthisbook
Thisbookmayserveyoubetterasareferencebookthanatextbook.Itcontainsalargenumberof
technicaldetails,andwedonotexpectyoutoreaditfrombeginningtoend,sinceyoumayeasilyfeel
overwhelmed.Instead,thinkaboutyourbackgroundandwhatyouwanttodofirst,andgototherelevant
chaptersorsections.Forexample:
Ijustwanttofinishmycoursehomework(Chapter2shouldbemorethanenoughforyou).
IknowthisisanRMarkdownbook,butIusePythonmorethanR(GotoSection2.7.1).
Iwanttoembedinteractiveplotsinmyreports,orwantmyreaderstobeablechangemymodel
parametersinteractivelyandseeresultsonthefly(CheckoutSection2.8).
IknowtheoutputformatIwanttouse,andIwanttocustomizeitsappearance(Checkoutthe
documentationofthespecificoutputformatinChapter3orChapter4).Forexample,Iwantto
customizethetemplateformyPowerPointpresentation(GotoSection4.4.1).
Iwanttobuildabusinessdashboardhighlightingsomekeyfiguresandindicators(GotoChapter5).
Iheardabout yolo=TRUEfromafriend,andI’mcuriouswhatthatmeansinthexaringanpackage
(GotoChapter7).
Iwanttobuildapersonalwebsite(GotoChapter10),orwriteabook(GotoChapter12).
IwanttowriteapaperandsubmittotheJournalofStatisticalSoftware(GotoChapter13).
Iwanttobuildaninteractivetutorialwithexercisesformystudentstolearnatopic(GotoChapter14).
I’mfamiliarwithRMarkdownnow,andIwanttogeneratepersonalizedreportsforallmycustomers
usingthesameRMarkdowntemplate(TryparameterizedreportsinChapter15).
IknowsomeJavaScript,andwanttobuildaninterfaceinRtocallaninterestedJavaScriptlibrary
fromR(LearnhowtodevelopHTMLwidgetsinChapter16).
Iwanttobuildfuturereportswithacompanybrandedtemplatethatshowsourlogoandusesour
uniquecolortheme(GotoChapter17).
IfyouarenotfamiliarwithRMarkdown,werecommendthatyoureadatleastChapter2tolearnthe
basics.Alltherestofthechaptersinthisbookcanbereadinanyorderyoudesire.Theyareprettymuch
orthogonaltoeachother.However,tobecomefamiliarwithRMarkdownoutputformats,youmaywantto
thumbthroughtheHTMLdocumentformatinSection3.1,becausemanyotherformatssharethesame
optionsasthisformat.
Estadísticos e-Books & PapersEstadísticos e-Books & Papers

RMarkdown:TheDefinitiveGuide
YihuiXie,J.J.Allaire,GarrettGrolemund
2018-07-15
Preface
Note:ThisbookistobepublishedbyChapman&Hall/CRC.Theonlineversionofthisbookisfreetoread
here(thankstoChapman&Hall/CRC),andlicensedundertheCreativeCommonsAttribution-
NonCommercial-ShareAlike4.0InternationalLicense.
Thedocumentformat“RMarkdown”wasfirstintroducedintheknitrpackage(Xie2015,2018d)inearly
2012.Theideawastoembedcodechunks(ofRorotherlanguages)inMarkdowndocuments.Infact,
knitrsupportedseveralauthoringlanguagesfromthebeginninginadditiontoMarkdown,includingLaTeX,
HTML,AsciiDoc,reStructuredText,andTextile.Lookingbackoverthefiveyears,itseemstobefairtosay
thatMarkdownhasbecomethemostpopulardocumentformat,whichiswhatweexpected.Thesimplicity
ofMarkdownclearlystandsoutamongthesedocumentformats.
Estadísticos e-Books & Papers

However,theoriginalversionofMarkdowninventedbyJohnGruberwasoftenfoundoverlysimpleandnot
suitabletowritehighlytechnicaldocuments.Forexample,therewasnosyntaxfortables,footnotes,math
expressions,orcitations.Fortunately,JohnMacFarlanecreatedawonderfulpackagenamedPandoc
(http://pandoc.org)toconvertMarkdowndocuments(andmanyothertypesofdocuments)toalarge
varietyofoutputformats.Moreimportantly,theMarkdownsyntaxwassignificantlyenriched.Nowwecan
writemoretypesofelementswithMarkdownwhilestillenjoyingitssimplicity.
Inanutshell,RMarkdownstandsontheshouldersofknitrandPandoc.Theformerexecutesthe
computercodeembeddedinMarkdown,andconvertsRMarkdowntoMarkdown.Thelatterrenders
Markdowntotheoutputformatyouwant(suchasPDF,HTML,Word,andsoon).
Thermarkdownpackage(Allaire,Xie,McPherson,etal.2018)wasfirstcreatedinearly2014.Duringthe
pastfouryears,ithassteadilyevolvedintoarelativelycompleteecosystemforauthoringdocuments,soit
isagoodtimeforustoprovideadefinitiveguidetothisecosystemnow.Atthispoint,therearealarge
numberoftasksthatyoucoulddowithRMarkdown:
CompileasingleRMarkdowndocumenttoareportindifferentformats,suchasPDF,HTML,orWord.
Createnotebooksinwhichyoucandirectlyruncodechunksinteractively.
Makeslidesforpresentations(HTML5,LaTeXBeamer,orPowerPoint).
Producedashboardswithflexible,interactive,andattractivelayouts.
BuildinteractiveapplicationsbasedonShiny.
Writejournalarticles.
Authorbooksofmultiplechapters.
Generatewebsitesandblogs.
ThereisafundamentalassumptionunderneathRMarkdownthatusersshouldbeawareof:weassumeit
sufficesthatonlyalimitednumberoffeaturesaresupportedinMarkdown.By“features”,wemeanthe
typesofelementsyoucancreatewithnativeMarkdown.Thelimitationisagreatfeature,notabug.R
Markdownmaynotbetherightformatforyouifyoufindtheseelementsnotenoughforyourwriting:
paragraphs,(section)headers,blockquotations,codeblocks,(numberedandunnumbered)lists,
horizontalrules,tables,inlineformatting(emphasis,strikeout,superscripts,subscripts,verbatim,and
smallcapstext),LaTeXmathexpressions,equations,links,images,footnotes,citations,theorems,proofs,
andexamples.Webelievethislistofelementssufficeformosttechnicalandnon-technicaldocuments.It
maynotbeimpossibletosupportothertypesofelementsinRMarkdown,butyoumaystarttolosethe
simplicityofMarkdownifyouwishtogothatfar.
Epictetusoncesaid,“Wealthconsistsnotinhavinggreatpossessions,butinhavingfewwants.”Thespirit
isalsoreflectedinMarkdown.Ifyoucancontrolyourpreoccupationwithpursuingtypesettingfeatures,
youshouldbemuchmoreefficientinwritingthecontentandcanbecomeaprolificauthor.Itisentirely
Estadísticos e-Books & PapersEstadísticos e-Books & Papers

possibletosucceedwithsimplicity.JungJae-sungwasalegendarybadmintonplayerwitharemarkably
simpleplayingstyle:hedidnotlooklikeatalentedplayerandwasveryshortcomparedtootherplayers,
somostofthetimeyouwouldjustseehimjumpthreefeetoffthegroundandsmashlikethunderoverand
overagaininthebackcourtuntilhebeatshisopponents.
PleasedonotunderestimatethecustomizabilityofRMarkdownbecauseofthesimplicityofitssyntax.In
particular,Pandoctemplatescanbesurprisinglypowerful,aslongasyouunderstandtheunderlying
technologiessuchasLaTeXandCSS,andarewillingtoinvesttimeintheappearanceofyouroutput
documents(reports,books,presentations,and/orwebsites).Asoneexample,youmaycheckoutthePDF
reportofthe2017EmployerHealthBenefitsSurvey.Itlooksfairlysophisticated,butwasactually
producedviabookdown(Xie2016),whichisanRMarkdownextension.AcustomLaTeXtemplateanda
lotofLaTeXtrickswereusedtogeneratethisreport.Notsurprisingly,thisverybookthatyouarereading
rightnowwasalsowritteninRMarkdown,anditsfullsourceispubliclyavailableintheGitHubrepository
https://github.com/rstudio/rmarkdown-book.
RMarkdowndocumentsareoftenportableinthesensethattheycanbecompiledtomultipletypesof
outputformats.Again,thisismainlyduetothesimplifiedsyntaxoftheauthoringlanguage,Markdown.
Thesimplertheelementsinyourdocumentare,themorelikelythatthedocumentcanbeconvertedto
differentformats.Similarly,ifyouheavilytailorRMarkdowntoaspecificoutputformat(e.g.,LaTeX),you
arelikelytolosetheportability,becausenotallfeaturesinoneformatworkinanotherformat.
Lastbutnotleast,yourcomputingresultswillbemorelikelytobereproducibleifyouuseRMarkdown(or
otherknitr-basedsourcedocuments),comparedtothemanualcut-and-pasteapproach.Thisisbecause
theresultsaredynamicallygeneratedfromcomputersourcecode.Ifanythinggoeswrongorneedstobe
updated,youcansimplyfixorupdatethesourcecode,compilethedocumentagain,andtheresultswill
automaticallyupdated.Youcanenjoyreproducibilityandconvenienceatthesametime.
References
Xie,Yihui.2015.DynamicDocumentswithRandKnitr.2nded.BocaRaton,Florida:Chapman;Hall/CRC.
https://yihui.name/knitr/.
Xie,Yihui.2018d.Knitr:AGeneral-PurposePackageforDynamicReportGenerationinR.
https://yihui.name/knitr/.
Allaire,JJ,YihuiXie,JonathanMcPherson,JavierLuraschi,KevinUshey,AronAtkins,HadleyWickham,
JoeCheng,WinstonChang,andRichardIannone.2018.Rmarkdown:DynamicDocumentsforR.
Xie,Yihui.2016.Bookdown:AuthoringBooksandTechnicalDocumentswithRMarkdown.BocaRaton,
Florida:Chapman;Hall/CRC.https://github.com/rstudio/bookdown.
Estadísticos e-Books & PapersEstadísticos e-Books & Papers
剩余279页未读,继续阅读
资源评论



davil2000
- 粉丝: 12
上传资源 快速赚钱
我的内容管理 展开
我的资源 快来上传第一个资源
我的收益
登录查看自己的收益我的积分 登录查看自己的积分
我的C币 登录后查看C币余额
我的收藏
我的下载
下载帮助


最新资源
- 基于Qt数据库项目实现Sqlite3为例 (1).zip
- 基于仓颉编程语言的web快速开发框架.zip
- 基于51单片机的心率检测仪资源下载.zip
- 基于OpenCv的SVM实现车牌检测与识别系统.zip
- 基于pyqt5和MySQL的学生管理系统.zip
- 基于二次曲面模型的动态对象SLAM.zip
- 基于SpringBoot + Vue的社区桶装水配送平台.zip
- 一种基于氮转换速率的算法.zip
- 基于QChart和QChartView创建各种图表和美化图表.zip
- 基于SpringBoot + Vue在线电子书阅读平台.zip
- 基于爬虫技术的商品数据监测系统.zip
- 基于SpringBoot + Vue的城市社区食堂管理系统.zip
- 基于Witin-nn的ResNet18量化抗噪研究.zip
- 基于SpringBoot + Vue的实验室耗材管理系统.zip
- 针对月时间长度的重力观测数据的时頻分析方法和绘图.zip
- 基于深度学习的边缘提取方法.zip
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈



安全验证
文档复制为VIP权益,开通VIP直接复制
