R/as.transactions.R

Defines functions as.transactions

Documented in as.transactions

#' Transform to transactions
#'
#' @param x dataframe or matrix
#' @return a transaction data
#' @export
#'
as.transactions <- function(x){
    as(as.matrix(x), "transactions")
}

Try the do package in your browser

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

do documentation built on Aug. 3, 2021, 5:06 p.m.