volume: compute PDX volume 'volume' computes PDXs tumor volume from...

View source: R/response_matrices.R

volumeR Documentation

compute PDX volume volume computes PDXs tumor volume from tumor width and length

Description

compute PDX volume volume computes PDXs tumor volume from tumor width and length

Usage

volume(w, l)

Arguments

w

width or first measurement vector. See Details

l

length or second measurement vector. See Details

Details

This function applies the (l x w^2)/2 formula to compute volume. However before computing volume it sorts data so that the smaller value is always taken as width and the bigger value as length.

Value

Returns a vector of volume

Examples

volume(w=1:5, l=6:10)
## smaller value is always considered as width.
volume(w=6:10, l=1:5)


bhklab/Xeva documentation built on Nov. 12, 2022, 5:38 a.m.