setTb: Set (back) to tibble

Description Usage Arguments Examples

View source: R/data.table.R

Description

Set (back) to tibble

Usage

1
setTb(df, value = c("tbl_df", "tbl", "data.frame"))

Arguments

df

initial data

value

The old class

Examples

1
2
3
4
5
6
library(data.table)
iris_test <- copy(tibble::as_tibble(iris))
setDT(iris_test)
iris_test
setTb(iris_test)
iris_test

MatthieuStigler/matPkg documentation built on Aug. 10, 2021, 11:01 a.m.