Today, we’ll introduce a few important data science tools:
R programming languageR programming language: overviewR is an open source and freely available programming language with fully featured graphics.R is a quite popular language, especially for scientific programming (but it does have lots of industry popularity, as well!).R is somewhat similar to python in syntax, and is a great first programming language to learn.R programming language: historyS. Developed by Bell Laboratories in the mid-70s.S’s primary developers described its purpose as follows: “to turn ideas into software, quickly and faithfully”.R was developed in the early 90’s and deals with many of the memory problems that existed in S.R calls routines from the lower-level FORTRAN and C languages.R programming.R programming language.rnorm() is a function.1 is the value we gave to one of it’s arguments.?rnorm() for more information about the rnorm() function.rnorm() and RStudio demornorm() function takes n random draws from a normal distribution with a center (mean) and spread (sd).
rnorm() function takes n random draws from a normal distribution with a center (mean) and spread (sd).
We could have written:
rnorm() function takes n random draws from a normal distribution with a center (mean) and spread (sd).
We could have written:
Or even:
n must be specified for rnorm() to runmean and sd are optional, but if you don’t specify them, R will choose for you (in this case, the defaults are 0 and 1).R as a calculatorR as a calculatorR includes many mathematical operations, and is a great calculator.R as a calculatorR includes many mathematical operations, and is a great calculator.R as a calculatorR includes many mathematical operations, and is a great calculator.R as a calculatorR includes many mathematical operations, and is a great calculator.R as a calculatorR as a calculatorR as a calculatorR as a calculatorR as a calculatorR as a calculator^: 2^3 means \(2^3\)RR can store objects for use later in what we call an environment.RR can store objects for use later in what we call an environment.dbh_in in our environment, and printed it out to see its value.RR can store objects for use later in what we call an environment.dbh_in in our environment, and printed it out to see its value.R as a calculator to compute the tree’s basal area.R as well: basic data structures, variable naming and code formatting, reading/writing data, and more!