survData_join: Joins a concentration with a survival data set into an...

View source: R/survData.R

survData_joinR Documentation

Joins a concentration with a survival data set into an argument for 'survData' when the concentration varies over time

Description

This function joins two data sets, one for exposure measurements, the other for survival measurements, into a single dataframe that can be used with the survData function.

Usage

survData_join(x, y)

Arguments

x

a data.frame containing the following three columns:

  • replicate: a vector of class integer or factor for replicate identification

  • time: a vector of class integer with time points, min value must be 0

  • Nsurv: a vector of class integer providing the number of alive individuals at some or all time points for each replicate

y

a data.frame containing the following three columns:

  • replicate: a vector of class integer or factor for replicate identification

  • time: a vector of class integer with time points, min value must be 0

  • conc: a vector of class numeric providing the concentration at some or all time points for each replicate

Value

a dataframe suitable for 'survData'


morse documentation built on Sept. 30, 2024, 9:31 a.m.