fars_vars | R Documentation |
By default, this function returns the returns the list of
variables for the data year specified. If vars
is "make", "model", or
"bodytype", the function returns #' list of variable attributes for the
specified variable name or attributes for make model and body type
specified in the FARS dataset.
fars_vars(year, var = NULL, make = NULL, model = NULL)
year |
Case year. Year must be between 2010 and 2019. |
var |
Default NULL. Supported values are "make", "model", and "bodytype". Using the var parameter returns variable attributes for the specified variable name or attributes for make model and body type specified in the dataset. |
make |
Integer. Make ID number. Required to return variables for "model"
and "bodytype". Get a list of make ID numbers using the "make" var for the
selected year, e.g. |
model |
Integer. Model ID number. Required to return variables for
"bodytype". Get a list of model ID numbers using the "model" var for the
selected year with a valid make ID number, e.g. |
head(fars_vars(year = 2022, var = "make"), 5)
head(fars_vars(year = 2022, var = "model", make = 12), 5)
fars_vars(year = 2022, var = "bodytype", make = 12, model = 37)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.