Imagine you have a function that only takes one argument, but you would really like to work on a vector of values. A short example on how function Vectorize()
can accomplish this. Let's say we have a data.frame
xy <- data.frame(sample = c("C_pre_sample1", "C_post_sample1 …