R/ungroupRowwise.R

Defines functions ungroupRowwiseDF

Documented in ungroupRowwiseDF

#' ungroupRowwiseDF
#'
#' Simple helper function to undo rowwise grouping.
#'
#' @param data Dataframe that is grouped rowwise.
#' @return Returns a dataframe that is no longer grouped rowwise.
#'
#' @export
ungroupRowwiseDF <- function(x) {
  class(x) <- c( "tbl_df", "data.frame")
  x
}
CamFreshwater/samSim documentation built on Sept. 25, 2023, 10:22 a.m.