nsa: No strings attached mode

Description Usage Arguments Details Value See Also Examples

View source: R/ops.R

Description

This function may be used to set or unset whether a data frame is in no strings attached mode, potentially speeding up various operations.

Usage

1
nsa(.self, enabled = TRUE)

Arguments

.self

Data frame

enabled

TRUE to enable, FALSE to disable. Defaults to TRUE.

Details

This function will place a data frame in no strings attached mode, which disables translation of character values to and from numeric representation. This allows for much faster calculations.

Value

Data frame

See Also

Other data manipulations: mutate, reduce, summarise, transmute, within_group, within_node

Examples

1
2
3
dat <- Multiplyr (G=rep(c("A", "B", "C", "D"), length.out=100))
dat %>% nsa () %>% mutate (G=max(G)) %>% nsa(FALSE)
dat %>% shutdown()

multiplyr documentation built on May 30, 2017, 12:09 a.m.