czamiara I am a coding newby. Can someone tell me what the "tilde" does in R coding? It was first shown in Notebook 1 when doing the histograms. Thanks in advance.
bkirk272 czamiara From https://www.geeksforgeeks.org/use-of-tilde-in-r/, the use of the ~ is to indicate the explanatory/independent variable in a statistical model. See Section 1.2 in Notebook 2, and you'll see it used to communicate the explanatory/response variable for a scatterplot.
dashiell-young-saver Ben’s answer is spot on! Also, to add, most of the graphs in Notebook 1 are of a single variable. By default, that variable is explanatory, so it’s listed after the tilde.