knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "README-"
)

Travis-CI Build Status AppVeyor Build Status Coverage Status

sctrip

The goal of sctrip is to reboot the trip package on a firmer basis.

It's not very functional yet, but the goal is to create normal-form PATH objects that fit within a very general framework for structured data. PATHs aren't that useful in normal-form, but converting from external path-forms to PRIMITIVE forms and back is very useful. More soon.

Installation

You can install sctrip from github with:

# install.packages("devtools")
devtools::install_github("mdsumner/sctrip")

Example

Convert an existing trip object to a PATH and then a PRIMITIVE, composed of segments.

library(sctrip)
data("walrus818", package= "trip")
PRIMITIVE(walrus818)

Very much experimental, but here we work from raw data to create trips. A trip is a specialist and bespoke PATH, this will be turned inot tools that are much more general.

library(sctrip)
apath <- sc_path(aurora, LONGITUDE_DEGEAST, LATITUDE_DEGNORTH, DATE_TIME_UTC)

The PATH object can be converted to PRIMITIVE form:

sc::PRIMITIVE(apath)

We can do that no matter what choice we made when nominating the vertex columns.

sc::PRIMITIVE(sc_path(aurora, DATE_TIME_UTC, LATITUDE_DEGNORTH))

Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.



mdsumner/sctrip documentation built on May 22, 2019, 5:06 p.m.