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 with where each entry is one profile of the same class as x.

Examples

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)

valentingar/ConFluxPro documentation built on Dec. 1, 2024, 9:35 p.m.