View source: R/importFileAccesoryFunctions.R
getVariableTypes | R Documentation |
Get the variable types of the RIM and OAB files downloaded from SIRENO. This function use the formato_variables dataset. In that dataset there are two fields related to the type of variables: class_variable_import and class_variable_final. The import of the files require the use of the class variables contained in class_variable_import. Then, some adjustments to certaing variables are made (replace commas with dots in numeric fiedls...). And finally, the format of the variables is changed with the class contained in class_variable_final. Used in the import and format of the files.
getVariableTypes(file_type, status_class)
file_type |
type of the file: "RIM_CATCHES", "RIM_CATCHES_IN_LENGTHS", "RIM_LENGTHS", "OAB_TRIPS", "OAB_HAULS", "OAB_CATCHES" or "OAB_LENGTHS" |
status_class |
"class_variable_import" to get the classes of the variables in the import proccess of a file; or "class_variable_final" to get final classes which the variables must have. |
dataframe with the name of the variable, status class and file type.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.