getVariableTypes: Get the variable types of the RIM and OAB files downloaded...

View source: R/importFileAccesoryFunctions.R

getVariableTypesR 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.

Description

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.

Usage

getVariableTypes(file_type, status_class)

Arguments

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.

Value

dataframe with the name of the variable, status class and file type.


Eucrow/sapmuebase documentation built on April 17, 2024, 10:29 a.m.