multiplyr (version 0.1.1)

nsa: No strings attached mode

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

nsa(.self, enabled = TRUE)

Arguments

.self
Data frame
enabled
TRUE to enable, FALSE to disable. Defaults to TRUE.

Value

Data frame

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.

See Also

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

Examples

Run this code

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

Run the code above in your browser using DataLab