1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/convertDataFrameCols.R
\name{convertDataFrameCols}
\alias{convertDataFrameCols}
\title{Converts columns in a data frame to characters, factors or numerics}
\usage{
convertDataFrameCols(
df,
chars.as.factor = FALSE,
factors.as.char = FALSE,
ints.as.num = FALSE,
logicals.as.factor = FALSE
)
}
\arguments{
\item{df}{[\code{data.frame}]\cr
Data frame.}
\item{chars.as.factor}{[\code{logical(1)}]\cr
Should characters be converted to factors?
Default is \code{FALSE}.}
\item{factors.as.char}{[\code{logical(1)}]\cr
Should characters be converted to factors?
Default is \code{FALSE}.}
\item{ints.as.num}{[\code{logical(1)}]\cr
Should integers be converted to numerics?
Default is \code{FALSE}.}
\item{logicals.as.factor}{[\code{logical(1)}]\cr
Should logicals be converted to factors?
Default is \code{FALSE}.}
}
\value{
[\code{data.frame}].
}
\description{
Converts columns of a data frame based on specified conversion flags.
}
|