talk: Main function to "talk" to 'dplyr'

Description Usage Arguments Value Examples

View source: R/talk.R

Description

Main function to "talk" to dplyr

Usage

1
2
3
talk(.data, cmd, error_find_function = TRUE, ...)

talk_expr(.data, cmd, error_find_function = TRUE, ...)

Arguments

.data

A data.frame to perform the commands on

cmd

the natural language command

error_find_function

Should the command error if the function cannot be found from the command?

...

Additional arguments to pass to the associated talkr function.

Value

A data.frame

Examples

1
2
3
4
5
6
library(tibble)
library(dplyr)
df = mtcars %>%
  rownames_to_column(var = "car")
res = df %>%
  talk("Sort df by mpg")

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