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 May 2, 2019, 6:36 a.m.