talk_dplyr_function: Determine the 'dplyr' function from the command

Description Usage Arguments Value Examples

View source: R/talk_dplyr_function.R

Description

Determine the 'dplyr' function from the command

Usage

1

Arguments

cmd

A command to pass, that will determine which dplyr function to use

Value

A string

Examples

1
2
3
cmds = c("Sort df by  mpg", "arrange the data by mpg", "group_by mpg")
res = sapply(cmds, talk_dplyr_function)
testthat::expect_true(talk_dplyr_function("group_by MPG") == "group_by")

muschellij2/talkr documentation built on Jan. 20, 2020, 7:49 p.m.