knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "man/figures/README-",
  out.width = "100%"
)

sbe

R build status Lifecycle: experimental

The goal of sbe is to provide an R interface to 'Seabird' files and programs. This package is totally unofficial and very experimental.

Installation

You can install the development version from GitHub with:

# install.packages("remotes")
remotes::install_github("paleolimbot/sbe")

Example

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)


paleolimbot/sbe documentation built on Dec. 31, 2020, 1:13 a.m.