Skip to content
/ coa Public

R package which offers operators for Compound assignments.

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md
Notifications You must be signed in to change notification settings

Noza23/coa

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

coa

coa introduces compound assignment operators

R-CMD-check Lifecycle: experimental Codecov test coverage

Installation

You can install the development version of coa using:

devtools::install_github("git@github.com:Noza23/coa.git")

Example

This is a basic example which shows you how to solve a common problem:

library(coa)
x <- 10
print(x %+=% 1)
#> [1] 11
print(x %-=% 5)
#> [1] 6
print(x %*=% 2)
#> [1] 12
print(x %/=% 5)
#> [1] 2.4
print(x %c=% 1:5)
#> [1] 2.4 1.0 2.0 3.0 4.0 5.0
print(`++`(x))
#> [1] 3.4 2.0 3.0 4.0 5.0 6.0
print(`--`(x))
#> [1] 2.4 1.0 2.0 3.0 4.0 5.0

About

R package which offers operators for Compound assignments.

Resources

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages