Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Turn R functions into binary operators.

NotificationsYou must be signed in to change notification settings

wlandau/grapes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Travis-CI Build StatusAppVeyor Build Statuscodecov.ioCRAN_Status_Badge

In some computing subcultures, the term "grapes" refers to the percent sign, which R uses to name binary operators such as%*%. Here,grapes is an R package that turns arbitrary functions into binary operators. As with themagrittr pipe, this allows you to avoid cumbersome parentheses in your code.

library(grapes)grow(rbind, c, from = "base") # Use `from` to specify a package or environment to search.bunch() # see the operators (grapes you have grown)nrow(sleep) # 20longer = sleep %rbind% sleep %rbind% sleep # No clumsy parentheses!nrow(longer) # 60. Most of us would like to sleep longer.1 %rbind% 2 %c% 3

Installation

To install the development version, get thedevtools package and run

devtools::install_github("wlandau/grapes", build = TRUE)

If you specify a tag, you can install a GitHub release.

devtools::install_github("wlandau/grapes@v1.0.0",build=TRUE)

Tutorial

Theonline package vignette has a complete tutorial. You can load the compiled version from an R session.

vignette("grapes")

Help and troubleshooting

Please read theissue tracker first, taking care to browse both open and closed issues. Afterwards, if you still feel the need,submit a new issue to log a bug report or feature request.

About

Turn R functions into binary operators.

Resources

Contributing

Stars

Watchers

Forks

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp