sattagstream: constructor for sattagstreams

View source: R/sattagstream.R

sattagstreamR Documentation

constructor for sattagstreams

Description

use this constructor to assign the correct subclass (e.g., location, argos, beahvior, etc.) to a new sattagstream object.

Usage

sattagstream(type = character(), data = data.frame(), filename = character())

Arguments

type

character of stream type. subclasses exist for: c("all", "argos", "behavior", "corrupt", "fastgps", "histos", "labels", "locations", "minmaxdepth", "rawargos", "rtc", "series", "seriesrange", "stt", "status", "summary"). anything else will become a generic sattagstream. if you want to add a stream type which requires special methods then you'll have to add it and write them. if you don't need the special methods the generic sattagstream will work fine.

data

this is a data frame from a wildlife computer portal downloaded csv data file.

filename

the name of the file the data originally came from.

Details

i don't really expect you to use this function very often, but if you do want to make a stream by hand this is the perferred method. if you are importing streams from an exisiting tag you probably should be by using load_tag or batch_load_tags to load a directory downloaded from the portal.

Value

an S4 object of the class sattagstream-class (or an extension of it)

Examples

## Not run: 
argos.df <- rcsv("PTT-Argos.csv")
sattagstream("argos", argos.df)

## End(Not run)

williamcioffi/sattagutils documentation built on June 3, 2022, 10:21 a.m.