Completion requirements
To start getting familiar with R, go ahead and try the examples on your machine. Do you always get the output you expect? Create some variables (see the section on Variable Assignment) and check that they appear in the RStudio Environment (panel in the top right). This exercise does not count toward your grade. It is just for practice!
R |
---|
|
R |
---|
|
R |
---|
|
R |
---|
|
R |
---|
|
R |
---|
|
R |
---|
|
R |
---|
|
R |
---|
|
R |
---|
|
R |
---|
|
R |
---|
|
R |
---|
|
R |
---|
|
R |
---|
|
R |
---|
|
R |
---|
|
R |
---|
|
R |
---|
|
R |
---|
|
R |
---|
|
R |
---|
|
R |
---|
|
R |
---|
|
R min_height max.height _age .mass MaxLength min-length 2widths celsius2kelvin
R min_height max.height MaxLength celsius2kelvin
R .mass
R _age min-length 2widths
R 1:5
R 2^(1:5)
R x <- 1:5
2^x
R ls()
R ls
R x
R rm(x)
R rm(list = ls())
R rm(list <- ls())
Source: The Carpentries, https://swcarpentry.github.io/r-novice-gapminder/01-rstudio-intro/index.html
This work is licensed under a Creative Commons Attribution 4.0 License.
Last modified: Thursday, 15 December 2022, 4:45 PM