R/fact_str.R

Defines functions fact_str

#' A Convert Factor to String Function
#'
#' This function allows you to convert factors to Date.
#' @param d_frame - the data frame name
#' @param fname - the attribut name
#' @keywords data frame, attribute
#' @export
#' @examples
#' a <- c("1","2","3")
#' b <- as.factor(c("A","B","C"))
#' d <- data.frame(a,b)
#' d["b"]  <- fact_str(d,b)

fact_str <- function(d_frame, attribut) {
  return(as.character(attribut))
}
flaviobrito/RDataAudit documentation built on Aug. 19, 2017, 12:15 a.m.