Learn R Programming

Fgmutils (version 0.2)

verificaTipoColuna: Check de type of Column

Description

this function returns the type of a column of a dataFrame, if it is numeric or character.

Usage

verificaTipoColuna(coluna)

Arguments

coluna
column of dataframe

Examples

Run this code
ID_REGIAO <- c(1,2,3,4)
CD_PLANTIO <- c("ACD","CDB","CDC","CDD")
test <- data.frame(ID_REGIAO,CD_PLANTIO)
verificaTipoColuna(test$ID_REGIAO)

Run the code above in your browser using DataLab