Extracting a fixed position data from the list of vectors
I don’t exactly understand how this works but it works.

v <- list(c(1,2), c(3,4), 5, c(-3:3)) sapply(v, "[", i = 2) or sapply(v, function(x) x[2]) https://stat.ethz.ch/pipermail/r-help/2007-November/145936.html

Extracting a fixed position data from th …
Tagged on:

Leave a Reply

Your email address will not be published. Required fields are marked *