资源描述:
《reilly media] r cookbook getting started and getting help》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、CHAPTER1GettingStartedandGettingHelpIntroductionThischaptersetsthegroundworkfortheotherchapters.Itexplainshowtodownload,install,andrunR.Moreimportantly,italsoexplainshowtogetanswerstoyourquestions.TheRcom-munityprovidesawealthofdocumentationandhelp.Youarenotalone.Herearesomecommonsourc
2、esofhelp:Local,installeddocumentationWhenyouinstallRonyourcomputer,amassofdocumentationisalsoinstalled.Youcanbrowsethelocaldocumentation(Recipe1.6)andsearchit(Recipe1.8).IamamazedhowoftenIsearchtheWebforanansweronlytodiscoveritwasalreadyavailableintheinstalleddocumentation.TaskviewsAta
3、skviewdescribespackagesthatarespecifictooneareaofstatisticalwork,suchaseconometrics,medicalimaging,psychometrics,orspatialstatistics.Eachtaskviewiswrittenandmaintainedbyanexpertinthefield.Thereare28suchtaskviews,sothereislikelytobeoneormoreforyourareasofinterest.Irecommendthateverybegi
4、nnerfindandreadatleastonetaskviewinordertogainasenseofR’spossibilities(Recipe1.11).PackagedocumentationMostpackagesincludeusefuldocumentation.Manyalsoincludeoverviewsandtutorials,calledvignettesintheRcommunity.Thedocumentationiskeptwiththepackagesinpackagerepositories,suchasCRAN,anditi
5、sautomaticallyinstalledonyourmachinewhenyouinstallapackage.MailinglistsVolunteershavegenerouslydonatedmanyhoursoftimetoanswerbeginners’questionsthatarepostedtotheRmailinglists.Thelistsarearchived,soyoucansearchthearchivesforanswerstoyourquestions(Recipe1.12).1Questionandanswer(Q&A)webs
6、itesOnaQ&Asite,anyonecanpostaquestion,andknowledgeablepeoplecanre-spond.Readersvoteontheanswers,sothebestanswerstendtoemergeovertime.Allthisinformationistaggedandarchivedforsearching.Thesesitesareacrossbetweenamailinglistandasocialnetwork;theStackOverflowsiteisagoodexample.TheWebTheWeb
7、isloadedwithinformationaboutR,andthereareR-specifictoolsforsearchingit(Recipe1.10).TheWebisamovingtarget,sobeonthelookoutfornew,improvedwaystoorganizeandsearchinformationregardingR.1.1DownloadingandInstallingRProblemYouwanttoinstallRonyourcomputer.SolutionWindowsandOSXuserscandownloa