Search results

  1. R

    sapply function in R help

    The sapply() function in R works like lapply(), but it tries to interpret the output to the most fundamental data structure possible, which is either Vector or Matrix. The sapply() is a “wrapper” function for lapply(). See the following code. s <- data.frame(sapply(a4, as.numeric)) The...