Learn R Programming

Fgmutils (version 0.9.5)

converteCampoParaCharacter: Field Converts To Character

Description

converts a column of a dataframe to String

Usage

converteCampoParaCharacter(nomeCampo, base)

Arguments

nomeCampo

the column name you want to convert

base

the column having dataFrame, that you want to convert to String

Value

base dataFrame with a column converted to String

Examples

Run this code
# NOT RUN {
measurement_date <- c(02/2009,02/2010,02/2011,02/2011)
plot <- c(1,2,3,4)
test <- data.frame(measurement_date,plot)
converteCampoParaCharacter("measurement_date",test)
# }

Run the code above in your browser using DataLab