What is the meaning of the dollar sign “$” in R function()?
The $ allows you extract elements by name from a named list. For example You can find the names of a list using names() This is a basic extraction operator. You can view the corresponding help page by typing ?Extract in R.