rbind: rbind method

Description Usage Arguments Value Examples

Description

an rbind method for ProvStoreDF objects

Usage

1
2
3
4
rbind(..., deparse.level = 1)

## S4 method for signature 'ProvStoreDF'
rbind(..., deparse.level = 1)

Arguments

...

Two or more ProvStoreDF objects. Must all have identical hashprefix values

deparse.level

ignored.

Value

A ProvStoreDF object.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
library(fastdigest)
library(roprov)
code = c("x = 5", "y = x + 1")
outvars = c("x", "y")
outvarhashes = c(fastdigest(5), fastdigest(6))
outvarclasses = rep("numeric", 2)
invars = c("", "x")
invarhashes = c("", fastdigest(5))
invarclasses = c("", "numeric")
 df = data.frame(outputvar = outvars,
                 outputvarhash = outvarhashes,
                 outputvarclass = outvarclasses,
                 inputvar= invars,
                 inputvarhash = invarhashes,
                 inputvarclass = invarclasses,
                 agent = "coolgirloruy",
                 code = code,
                 codehash = sapply(code, fastdigest),
                 stringsAsFactors = FALSE)

ps2 = ProvStoreDF(df = df)
rbind(ps2, ps2)

gmbecker/roprov documentation built on May 27, 2019, 11:49 p.m.