R/vectorise.R

Defines functions vectorise

Documented in vectorise

#' Turn each non-zero element of the F-matrix into a vector
#' 
#' @keywords internal
#'
#' @param Fmat  xx
#'
#' @return
#'
#' @examples
vectorise <- function(Fmat){
  g <- vector()
  for (i in Fmat){
    if (i > -0){
      g[[length(g)+1]] <- i
      
    }
  }
  return(g)
}

Try the phytoclass package in your browser

Any scripts or data that you put into this service are public.

phytoclass documentation built on April 4, 2025, 4:02 a.m.