split_by_prof: Split by profile

View source: R/split_by_prof.R

split_by_groupR Documentation

Split by profile

Description

Split profile data into a list for each single profile.

Usage

split_by_group(x)

split_by_prof(x)

## S3 method for class 'cfp_dat'
split_by_prof(x)

## S3 method for class 'cfp_profile'
split_by_prof(x)

Arguments

x

A object that is grouped into profiles by its id_cols.

Value

A list where each entry is one profile/group of the same class as x.

Examples

split_by_group(base_dat)

df <- cfp_profile(
  data.frame(
      site = rep(c("site_a", "site_b"),
                 each = 2),
      variable = 1:4),
   id_cols = "site")
split_by_prof(df)

base_dat <- ConFluxPro::base_dat
split_by_prof(base_dat)

ConFluxPro documentation built on Aug. 8, 2025, 7:01 p.m.