calculate_biovolume: calculate biovolume of each individual

Description Usage Arguments Details Value Examples

View source: R/calculate_biovolume.R

Description

Calculates biovolume of the individuals with its assigned methods.

Usage

1

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

1
2
3
4
5
6
7
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/ecomaestro documentation built on Dec. 19, 2021, 3:04 p.m.