powered by
probabilistic removal of elements from x. For each element, the probability to be preserved is independent and specified by prob
prob_remove(x, prob)
a vector of the same type as x
vector
number between 0 and 1, probability to preserve elements
apply_niche() and apply_taphonomy() for functions that use this function for transformation of pre_paleoTS objects
apply_niche()
apply_taphonomy()
pre_paleoTS
x = prob_remove(1:10, 0.5) x x = prob_remove(1:10, 0.5) x
Run the code above in your browser using DataLab