dplyrAssist: A shiny app for learn dplyr

Description Usage Arguments Details Value Examples

View source: R/dplyrAssist.R

Description

Interactively manipulate a data.frame or a tibble. The resulting code will be emitted as an R code.

Usage

1
dplyrAssist(df = NULL, right = NULL)

Arguments

df

A tibble or a tbl_df or a data.frame to manipulate

right

Optional second data(A tibble or a tbl_df or a data.frame) to join

Details

This addin can be used to interactively manipulate a data.frame or a tibble using dplyr. The intended way to use this is as follows:

1. Highlight a symbol naming a data.frame or a tibble in your R session, e.g. mtcars, 2. Execute this addin, to interactively manipulate it.

When you're done, the code for data manipulation will be emitted at the cursor position.

Value

A manipulated tibble or NULL

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
library(tidyverse)
library(nycflights13)

## Not run: 
dplyrAssist(band_members,band_instruments)
dplyrAssist(flights)
result<-dplyrAssist(iris)
cat(attr(result,"code"))

## End(Not run)

dplyrAssist documentation built on May 2, 2019, 4:04 p.m.