(These color schemes don’t appear in this ebook). Notice that this font is green (by default) in RStudio this helps you quickly differentiate between comments and code.
#CLEAR ENVIRONMENT IN R CODE#
Make sure to paste in the comments too!Ĭomments are not actually executed in R – they are notes that you (the coder!) type to remind yourself of what the code is intended to do. So get the square root of 10 is a comment. In R, lines of code that are preceded by the # symbol are considered “comments”. 14.3.8 Inserting plots into your slideshow.14.3.7 Specifying absolute location on the slide for text or images.14.3.6 Bootstrap widget for cycling images on a slide.14.3.4 Adding a slide background color or image.14.3.1 A quick overview of HTML syntax, and where to store your customizations.13.8.5 Adding Towns from Shapefile Attributed Table.
13.8.3 Adding New Columns To A Data Frame.13.8 Creating the Tauntaun Harvest Data CSV File.12.5.5 Documenting the TTestimators-package.12.5.4 Documenting the TauntaunHarvest Dataset.12.1 Load Required Packages and Programs.10.7 Controlling the Output and Metadata.10.5.4 Paragraph 4: Analysis of Age and Sex.10.5.2 Paragraph 2: Tauntaun Data Summary.10.4 Weaving Markdown with R (Section 3).10.3.9 Creating a Bibliography with Endnote.10.3.6 Paragraph 4: Analysis of Harvested Animals by Tauntaun Age and Sex.10.3.5 Paragraph 3: Hunter Demographics.10.3 Tauntaun Annual Report Outline and R Objects Needed (Section 2).10.1 HTML Markup vs. Markdown vs. R Markdown.7.8 Summarizing the Harvest with Aggregate.6.10 Read in the Hunter CSV file, and Save as hunter_clean.RData.6.9 Save the Cleaned Data as harvest_clean.RData.6.8 Stepping through Rows and Columns with Apply Functions.6.7.1 color = fur color of the reptomammalian Tauntaun.6.7 A Brief Interruption to Discuss NA and NULL.6.6.9 weight = weight of harvested animal (arbitrary units).6.6.8 length = length of harvested animal.6.6.7 town = town in which the animal was harvested.6.6.4 individual = the unique identifier of each harvested animal.6.6.3 sex = the sex of the harvested animal.6.6.2 age = the age of the harvested animal.6.6.1 hunter.id = the unique hunter identification number.