R6Frame: Create a new R6Frame

Description Usage Arguments Format Note Author(s) Examples

Description

Create a new R6Frame from a data.frame, data.table or tbl.

Usage

1
2
3

Arguments

x

A data.frame, data.table or tbl (requires dplyr).

Format

An object of class R6ClassGenerator of length 24.

Note

Under the hood, the R6Frame is a R6Class.

Author(s)

Kristian D. Olsen

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
org <- data.frame("A" = c("Yes","No"), "B" = c(1, 2), stringsAsFactors = FALSE)

# Create new R6Frame:
df <- R6Frame$new(org)
is.R6Frame(df) # TRUE

# Minimal example
org[, "test"] <- "test"
df[, "test"] <- "test"

identical(org, df$get_data())

# For more information:
# vignette("introduction", package = "R6Frame")

itsdalmo/R6Frame documentation built on May 17, 2017, 5:21 a.m.