calculate_biovolume: calculate biovolume of each individual

View source: R/calculate_biovolume.R

calculate_biovolumeR Documentation

calculate biovolume of each individual

Description

Calculates biovolume of the individuals with its assigned methods.

Usage

calculate_biovolume(data)

Arguments

data

A long format data with Length (L), Width (W), and Method (Method) as their variables.

Details

Note that this function will first remove all the entris in the Size column. Another thing is that this function is not flexible enough. Further revision is needed.

Value

The same data frame except that a new column called "Size" contains the volume data.

Examples

a <- data.frame(
  L = c(10, 5, 6, 78, 1, 6),
  W = c(0.1, 3, 4, 1, 2, 3),
  Method = c("LWR", "LWR", "Cylinder", "Cylinder", "Cone", "Elliposid"),
  C = c(0.53, 0.45, NA, NA, NA, NA)
)
calculate_biovolume(a)

chenyenting1998/GRSPRSThesisData documentation built on March 19, 2022, 8:35 a.m.