Learn R Programming

sourceR (version 1.0.1)

X: Constructs source data

Description

The X constructor function returns an R6 X class which feeds source data into sourceR models.

Usage

X(data, x, type, source, time = NULL)

Arguments

data
long-format data.frame containing source data
x
character string giving name of source counts column in data
type
character string giving name of type column in data
source
character string giving name of source column in data
time
optional column denoting times of source observation

Value

A X source data structure for use in sourceR models