Skip to content

cynkra/blockr.dplyr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

81 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Data transformation for blockr.core

check

Extending blockr.core with blocks for data wrangling, blockr.dplyr wraps several dplyr verbs.

Installation

You can install the development version of blockr.dplyr from GitHub with:

# install.packages("devtools")
devtools::install_github("cynkra/blockr.dplyr")

Example

A dplyr::select() block can be spun up as

library(blockr.dplyr)
blockr.core::serve(new_select_block(c("mpg", "cyl")), list(data = mtcars))

A dplyr::mutate() block can be used to add new variables:

library(blockr.dplyr)
blockr.core::serve(new_mutate_block(), list(data = mtcars))

And a two-table verb such as dplyr::join() is available as

library(blockr.dplyr)
blockr.core::serve(
  new_join_block(by = "name"),
  data = list(x = dplyr::band_members, y = dplyr::band_instruments)
)

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages