prob_remove {StratPal} | R Documentation |
probabilistic removal of elements from x. For each element, the probability to be preserved is independent and specified by prob
prob_remove(x, prob)
x |
vector |
prob |
number between 0 and 1, probability to preserve elements |
a vector of the same type as x
apply_niche()
and apply_taphonomy()
for functions that use this function for transformation of pre_paleoTS
objects
x = prob_remove(1:10, 0.5)
x
x = prob_remove(1:10, 0.5)
x