Â
A garage has toolboxes and tools
last update: 2021-07-21
Â
A garage has toolboxes and tools
Â
Â
Functions are tools that do work
The structure of an R function:
Â
function_name(
argument_1 = value_1,
argument_2 = value_2,
…
)
Â
help(topic = help(topic = sd)
Â
Someone has probably created a tool (function) to solve your problem.
You just have to find the toolbox (R package) it is in.
Finding packages happens a variety of ways in practice. A package may be recommended to you, you might be told to use a particular package for a task or assignment, or you may discover it on the web.
Â
install.packages("package_name")
library("package_name")
Â