R/utils.R

Defines functions recycle Stop Warning

Warning <- function(...)warning(..., call.=FALSE)
Stop <- function(...)stop(..., call.=FALSE)


recycle <- function(x, n){
  rep(x, ceiling(n / length(x)))[1:n]
}

Try the plantecophys package in your browser

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

plantecophys documentation built on April 1, 2021, 1:06 a.m.