swfscDAS (version 0.4.0)

das_chop_section: Chop DAS data - section

Description

Chop DAS data into effort segments by continuous effort section

Usage

das_chop_section(x, ...)

# S3 method for data.frame das_chop_section(x, ...)

# S3 method for das_df das_chop_section(x, conditions, distance.method = NULL, num.cores = NULL, ...)

Arguments

x

an object of class das_df, or a data frame that can be coerced to class das_df This data must be filtered for 'OnEffort' events; see the Details section below

...

ignored

conditions
distance.method

character; see das_effort. Default is NULL since these distances should have already been calculated

num.cores

Value

See das_chop_equallength. The randpicks values will all be NA

Details

This function is simply a wrapper for das_chop_equallength. It calls das_chop_equallength, with seg.km set to a value larger than the longest continuous effort section in x. Thus, the effort is 'chopped' into the continuous effort sections and then summarized.

See the Examples section for an example where the two methods give the same output. Note that the longest continuous effort section in the sample data is ~22km.

Examples

Run this code
# NOT RUN {
y <- system.file("das_sample.das", package = "swfscDAS")
y.proc <- das_process(y)

y.eff1 <- das_effort(y.proc, method = "equallength", seg.km = 25, num.cores = 1)
y.eff2 <- das_effort(y.proc, method = "section", num.cores = 1)

all.equal(y.eff1, y.eff2)

# }

Run the code above in your browser using DataCamp Workspace