Part 11 List of functions and other code in this tutorial
Here are the important functions and code we used in this tutorial:
read.csv()
for importing data from a CSV file
head()
andtail()
for taking a peek at the first 6 and last 6 rows of data
str()
for examining the structure of the datac()
for combining elements into a vector- The
$
as indataset$variable
for selecting a specific variable in a data frame - The use of brackets after a data frame,
dataset[ , ]
, for indexing a specific row or column or cell summary()
for requesting a basic summary description of the variablesmin()
,mean()
,median()
,max()
,var()
, andsd()
for requesting specific statistics about a variableapply()
for applying a function across a row or column of datahelp()
or?
for getting help on a functionboxplot()
for creating box-and-whisker plots with base-R graphics- The
ESC
key when the console is expecting us to complete some code.
Updated on 2020-12-04.