3 Matching Annotations
  1. Aug 2020
  2. Apr 2020
  3. Feb 2020
    1. Compute the mean of every column in mtcars.
      output <- vector("double", ncol(mtcars))  # 1. output
      for (i in seq_along(mtcars)) {            # 2. sequence
        output[[i]] <- mean(mtcars[[i]])      # 3. body
      }