#' @title filter.season
#' @description read julian day and categorise
#' @family abysmally documented
#' @author unknown, \email{<unknown>@@dfo-mpo.gc.ca}
#' @export
filter.season = function( x, period, index=T ) {
if (period=="summer") {
i = which( (x>150) & (x<250) )
} else if (period=="spring") {
i = which( x<149 )
} else if (period=="winter") {
i = which( x>251 )
} else {
i = c(1:length(x))
}
if (!index) i = x[i]
return (i)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.