as.dict | R Documentation |
Transforms a single character string containing a dictionary in a textual format into a proper dictionary, that is a named character vector
as.dict(x)
x |
A character scalar of the form |
This function is mostly used in combination with setFixest_dict
to set the dictionary to be
used in the function etable
.
It returns a named character vector.
Laurent Berge
etable
, setFixest_dict
x = "# Main vars
mpg: Miles per gallon
hp: Horsepower
# Categorical variables
cyl: Number of cylinders; vs: Engine"
as.dict(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.