knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "man/figures/README-", out.width = "100%" )
The goal of sbe is to provide an R interface to 'Seabird' files and programs. This package is totally unofficial and very experimental.
You can install the development version from GitHub with:
# install.packages("remotes") remotes::install_github("paleolimbot/sbe")
This is a basic example which shows you how to solve a common problem:
library(sbe) # run SBEDataProcessing tools from R faroe_dir <- system.file("extdata/faroe", package = "sbe") out_dir <- sbe_run_tool( "datcnv", psa = file.path(faroe_dir, "faroe.psa"), input = file.path(faroe_dir, "faroe.dat"), con = file.path(faroe_dir, "faroe.con") ) # read cnv files as data frames out_sbe_cnv <- list.files(out_dir, full.names = TRUE) read_sbe_cnv(out_sbe_cnv) read_sbe_cnv_colmeta(out_sbe_cnv)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.