checkStructureFile | R Documentation |
Compare the correct number and name of the variables of a df with the structure in 'formato_variables' dataset in order to check the appropiate format.
checkStructureFile(df, file_type)
df |
df to check. |
file_type |
Type of df: "CATCHES", "CATCHES_IN_LENGTHS", "LENGTHS", "OAB_TRIPS", "OAB_HAULS", "OAB_CATCHES" or "OAB_LENGTHS". |
WARNING: the dataframe must be obtained from a read.table, read.csv or similar base function. I'ts not available to use after the import with importRIMCatches(), importRIMLengths(), importRIMCatchesInLengths()...
This function is called inside import SIRENO files functions like importRIMCatches(), importRIMLengths()...
Two possible errors: 'The dataframe doesn't have the appropriate column names' or 'The data frame doesn't have the appropriate number of columns'. In case the structure is correct, doesn't return anything.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.