[1] 4
June 22, 2025
+ addition- subtraction* multiplication/ division^ exponentiation (also **)05:00
<-<-, and the data or value you wish to assign to the object is on the rightprint() used to display the contents of objects05:00
mean() function to calculate the average of a set of numbersc() to create a vector of numbersCreate a vector of numbers and take the mean…
mean() calculates the mean of a set of numbersmedian() calculates the median of a set of numberssd() calculates the standard deviation of a set of numberssum() calculates the sum of a set of numberslength() calculates the length of a vectormax() and min() calculate the maximum and minimum values of a vectorround() rounds a number to a specified number of decimal placessqrt() calculates the square root of a numberlog() calculates the natural logarithm of a numberexp() calculates the exponential of a numberabs() calculates the absolute value of a number05:00
read_csv() is a functionggplot() is a functionreadr is a package that contains the read_csv() functionggplot2 is a package that contains the ggplot() functioninstall.packages() to install packageslibrary() to load packagesinstall.packages() function to install packagestidyverse package, you would run install.packages("tidyverse")pak package to install packages from GitHubpak, run install.packages("pak")pak::pkg_install() to install packages from GitHubvdemlite package, you would run pak::pkg_install("eteitelbaum/vdemlite")library() functioninstall.packages() in your R script or Quarto documenttidyverse package in your environmenttidyverse packagepak packagevdemlite using pak::pkg_install()vdemlite package05:00
tidyverse package