Nothing
globalVariables("places", package="birdring", add=TRUE)
place2name <-
function (x)
{
data(places, envir = environment())
placesx <- places[match(as.character(x), places$code), c(1, 2, 4), drop=TRUE]
placesx$country <- as.factor(placesx$country)
placesx$region <- as.factor(placesx$region)
rownames(placesx) <- seq(1:nrow(placesx))
names(placesx) <- c('country.name', 'region.name', 'current')
if( any(is.na(placesx$country)) ){ # check that all codes were assigned
nmiss <- x[is.na(placesx$country)]
warning(paste(length(nmiss), 'place codes not recognised:',
paste(unique(nmiss), collapse=',')), call.=FALSE)
}
return(placesx)
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.