formatVariableTypes: Format the variables of a dataframe obtained by the RIM and...

View source: R/importFileAccesoryFunctions.R

formatVariableTypesR Documentation

Format the variables of a dataframe obtained by the RIM and OAB import funcionts from this package. In case of logical variables with spanish format ('S'/'N'), convert it in TRUE/FALSE logical variables (empty data is assumed as FALSE) The variable types are stored in formato_variables dataset.

Description

Format the variables of a dataframe obtained by the RIM and OAB import funcionts from this package. In case of logical variables with spanish format ('S'/'N'), convert it in TRUE/FALSE logical variables (empty data is assumed as FALSE) The variable types are stored in formato_variables dataset.

Usage

formatVariableTypes(df, file_type)

Arguments

df

dataframe to format.

file_type

type of the file: "RIM_CATCHES", "RIM_CATCHES_IN_LENGTHS", "RIM_LENGTHS", "OAB_TRIPS", "OAB_HAULS", "OAB_CATCHES" or "OAB_LENGTHS"


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