R/tools.R

Defines functions joinf

Documented in joinf

#' Join factors
#'
#' Convenience function for joining factors.
#' 
#' @param ... One or more features to merge. 
#' Given as single vectors or data.frames. 
#' Accepted feature types are factor (preferred), booleans, integers (treated as categorical) or reals (which undergo automatic categorisation). 
#' \code{NA}s are not allowed.
#' @return Joint factor, with levels \code{l1} to \code{l<n>}.
#' Vacant combinations are dropped. 
#' @note You can pass a single vector to this function to see how praznik interprets it.
#' @examples
#' joinf(c(1,2,1,2),c(1,1,2,2))
#' @export
joinf<-function(...)
 .Call(C_join,data.frame(...))

Try the praznik package in your browser

Any scripts or data that you put into this service are public.

praznik documentation built on May 20, 2022, 5:06 p.m.