lsub(x, y)
lsum(x, y)
pprod(x, y)
psum(x)
which.pmax(elts, na.rm = FALSE, pmin = FALSE)
mylapply(X, FUN, ...)lsub, lsum), or numeric (pprod)which.pmax).lapply or mclapplylapply or mclapplylapply or mclapplylsub, lsum and pprod return lists.lsub subtracts the elements of list y from the respective ones in list x. lsum sums the respective elements of lists x and y. pprod multiplies each element of list x by the respective numeric value in y. psum sums all elements of the list x. which.pmax takes a list of equal-length numeric vectors (or objects that can be coerced to numeric) in elts and returns the index of the vector holding the maximum value at each position. If na.rm is TRUE, values of NA are removed; if pmin is TRUE the function finds locations of the minimum values instead.
mylapply passes the given arguments to lapply, or to mclapply if the X is greater than 20. mylapply is used in affinity (in calculations for proteins activated by the iprotein argument), equil.boltz (in parallel operations on list elements), and aminoacids and protein.length (in counting amino acids in sequences and determining lengths of proteins).