estimateSeedSet: Estimate seed set in a head

View source: R/aiiFunctions.R

estimateSeedSetR Documentation

Estimate seed set in a head

Description

Estimate seed set in a head that was split into top, middle, and bottom using two different methods: one resampling based, the other a point estimate

Usage

estimateSeedSet(
  df,
  partials = TRUE,
  idCol = "headID",
  totalCols = c("topCount", "middleTotalCount", "bottomCount"),
  fullCols = c("topFull", "middleFull", "bottomFull"),
  sampCols = c("topSampleCount", "middleSampleCount", "bottomSampleCount"),
  partialCols = c("topPartial", "middlePartial", "bottomPartial")
)

Arguments

df

a data frame that contains seed set data

partials

if TRUE, partials will be included in

idCol

the column that contains the ids for each head

totalCols

a vector with names of the columns that contain counts for the total number of achenes in the top, middle, and bottom of the head

fullCols

a vector with names of the columns that contain counts for the number of full achenes in the top, middle, and bottom of the head

sampCols

a vector with names of the columns that contain counts for the number of achenes in the x-rayed sample for the top, middle, and bottom of the head

partialCols

a vector with names of the columns that contain counts for the number of partial achenes in the top, middle, and bottom of the head. If partial is FALSE, this can be ignored

Value

a data frame containing the id and estimates of seed set based on two methods of calculation. Columns "pointEstFull" and "acheneCt" result from the point estimate method and columns "sampleFull" and "sampleCount" result from the resampling method.


stuartWagenius/echinaceaLab documentation built on April 13, 2025, 5:22 a.m.