section: Generate a Table of Section Positions

Description Usage Arguments Value Author(s) Examples

View source: R/WhiskR_functions.R

Description

section uses the LP1 function to generate a tibble of all the sections lengths representing 1 day of growth.

Usage

1
section(L, L.asym, k, Time = 1, date = "1900/01/01")

Arguments

L

numeric; the starting length of the sample

L.asym

numeric; asymptotic length

k

numeric; growth coefficient, calculate using the function k

Time

numeric; period of growth to be represented by each section. Default is 1 day.

date

character string; date that the sample was collected from the specimen. Default is "1900/01/01" . Format should be %Y%m%d with " " as a character string. The date is converted to Date format within the function.

Value

The table returned are all the sections represented by 1 day time periods by default

Author(s)

The function was written by Gary Truong with collaboration from Ben Walker and Anna Lewis from the University of New South Wales

Examples

1
2
section(L = 140, L.asym = 150, k = 0.0126) # uses the default time period of 1 day and default date of "1900/01/01"
section(L = 140, L.asym = 150, k = 0.0126, Time = 7) # specifying Time = 7 creates a table with sample sections representing 7 days

GaryTruong/whiskR documentation built on Sept. 25, 2020, 1:41 p.m.