Nothing
#' Read data from BiSS (Biodiversity Investigation Support System) to data frame.
#'
#' BiSS data is formatted as JSON.
#'
#' @param txt A JSON string, URL or file.
#' @param join A logical. TRUE: join plot and occurrence, FALSE: do not join.
#' @return A data frame.
#'
#' @examples
#' library(dplyr)
#' # path <- "set file path"
#' path <- "https://raw.githubusercontent.com/matutosi/biodiv/main/man/example.json"
#' read_biss(path)
#'
#' @export
read_biss <- function(txt, join = TRUE){
biss <- jsonlite::fromJSON(txt)
plot <- data.frame(biss$plot)
occ <- data.frame(biss$occ)
if(join){
return(dplyr::left_join(plot, occ))
}else{
return(list(plot = plot, occ = occ))
}
}
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.