sample2df: Convert a vector sample to data.frame with counts per weight...

View source: R/model.R

sample2dfR Documentation

Convert a vector sample to data.frame with counts per weight class

Description

Takes a vector containing individual catch weights and returns a data.frame with numbers per weight class

Usage

sample2df(sam, binsize, keepZeros = TRUE)

Arguments

sam

Numeric vector. Individual weights

binsize

Numeric. Weight class width

keepZeros

Logical. If TRUE the resulting data.frame includes weight classes with zero individuals. Otherwise these weight classes are dropped.

Value

A data.frame with columns Weight and Freq with number per weight class.

Author(s)

alko


alko989/s6model documentation built on Nov. 2, 2023, 10:04 p.m.