Learn R Programming

bazar: miscellaneous basic R functions

Installation

You can install 'bazar' from GitHub with:

# install.packages("devtools")
devtools::install_github("paulponcet/bazar")

Copy Link

Version

Install

install.packages('bazar')

Monthly Downloads

1,848

Version

1.0.11

License

GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Last Published

March 15th, 2019

Functions in bazar (1.0.11)

get_all_funs

Functions exported by a package
is.wholenumber

Test if the values of a vector are whole numbers
rollfun

Moving windows with custom function
sessionPackages

Shows packages attached to the current R session
isNA

Test if NA
top

Top or bottom element of an object
%?%

If-Then-Else ternary operator
get_vars

Get formula variables
%nin%

Value matching
pause

Have a rest, make a pause
library_with_dep

Loading/Attaching and listing of packages with dependencies
mgsub

Multiple gsub
is.formula

Test if an object is a formula
as.fun

Convert object to function
is.empty

Test emptyness
rle2

Run length encoding (modified version)
trim

Removes extra whitespaces from a string
verlan

Back slang
sumNA

Modified sum of vector elements
stopif

Ensure that R expressions are false
unwhich

Quasi-inverse of the 'which' function
get_all_pkgs

Packages exporting a function
normalize

Normalize a numeric vector
nlist

Named lists
as.na

Transform values to NA
Copy

Copy data to the clipboard
almost.equal

Test (almost) equality of numeric values
as.empty

Convert to an empty object
concat

String concatenation
erase

Delete objects
bazar

bazar: miscellaneous basic functions
almost.unique

Almost unique elements
almost.zero

Test if values of a vector are almost zero