split_by_group {ConFluxPro}R 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)

[Package ConFluxPro version 1.3.1 Index]