mirror of
https://github.com/agdamsbo/daDoctoR.git
synced 2024-11-24 12:41:54 +01:00
25 lines
508 B
R
25 lines
508 B
R
% Generated by roxygen2: do not edit by hand
|
|
% Please edit documentation in R/col_fact.R
|
|
\name{col_fact}
|
|
\alias{col_fact}
|
|
\title{Formatting multiple columns as factor}
|
|
\usage{
|
|
col_fact(string, data, levels = NULL, labels = NULL)
|
|
}
|
|
\arguments{
|
|
\item{string}{Columnnames containg strings.}
|
|
|
|
\item{data}{Dataframe}
|
|
|
|
\item{levels}{Levels for all selected columns}
|
|
|
|
\item{labels}{labels for all selected columns}
|
|
}
|
|
\description{
|
|
Depending on dply's contains()-function.
|
|
}
|
|
\examples{
|
|
col_fact()
|
|
}
|
|
\keyword{factor}
|