as.dict {fixest} | R Documentation |
Transforms a character string into a dictionary
Description
Transforms a single character string containing a dictionary in a textual format into a proper dictionary, that is a named character vector
Usage
as.dict(x)
Arguments
x |
A character scalar of the form |
Details
This function is mostly used in combination with setFixest_dict
to set the dictionary to be
used in the function etable
.
Value
It returns a named character vector.
Author(s)
Laurent Berge
See Also
Examples
x = "# Main vars
mpg: Miles per gallon
hp: Horsepower
# Categorical variables
cyl: Number of cylinders; vs: Engine"
as.dict(x)