
Illustration adopted from Allison Horst

Source: DataFlair
Reading assingment
Why should economist use R? A peek at my journey! by Hany Abdel-Latif
“R is a powerful, flexible, and free software environment that allows economists to analyze data, estimate models, and visualize results in a reproducible way.”

Console windowSource window
Environment/ History/ Connections/ Tutorials
Files/ Plots/ Packages/ Help/ Viewer
You can consider R objects as saving information
e.g., text, number, matrix, vector, dataframe
In another words everything in R is an object

round function
args functions if you are not sure with the argument’s name in a functionarguments are optional
digits is already set to 0sample(x, size, replace = FALSE, prob = NULL)sample will return size elements from the vectorsample takes two arguments: a vector named x and a number named sizesample builds a sample without replacementreplace = TRUE causes sample to sample with replacementfunction will build a function between bracesdata[row, column]data[row, column]data[row, column]
Econ 106: Computer Programming for Economics