Rfast-package: Really fast R functions

Description Details Maintainers Note Author(s)

Description

A collection of Rfast functions for data analysis. Note 1: The vast majority of the functions accept matrices only, not data.frames. Note 2: Do not have matrices or vectors with have missing data (i.e NAs). We do no check about them and C++ internally transforms them into zeros (0), so you may get wrong results. Note 3: In general, make sure you give the correct input, in order to get the correct output. We do no checks and this is one of the many reasons we are fast.

Details

Package: Rfast
Type: Package
Version: 2.0.3
Date: 2021-05-17
License: GPL-2

Maintainers

Manos Papadakis <papadakm95@gmail.com>

Note

Acknowledgments: We would like to acknowledge:

From now on the Rfast can be used in C++ via LinkingTo mechanism.

For namespace "vector" the functions that are available are:

  1. median(x)

  2. var(x, std = false, na_rm = false)

  3. mad(x, method = "median", na_rm = false)

  4. shuffle(x,engine = Engine(time(0)) // Engine by default is default_random_engine. You can use anyone from C++.

For namespace "matrix" the functions that are available are:

  1. transpose(x)

  2. matrix_multiplication(x,y)

  3. colSort(x, descend = false, stable = false, parallel = false)

  4. rowSort(x, descend = false, stable = false, parallel = false)

  5. is_symmetric(x)

  6. colMedian(x, na_rm = false, parallel = false)

  7. rowMedian(x, na_rm = false, parallel = false)

  8. colVars(x, std = false, na_rm = false, parallel = false)

  9. rowVars(x, std = false, na_rm = false, parallel = false)

  10. colMads(x, method = "median", na_rm = false, parallel = false)

  11. rowMads(x, method = "median", na_rm = false, parallel = false)

  12. colShuffle(x,engine = Engine(time(0)) // Engine by default is default_random_engine. You can use anyone from C++.

  13. rowShuffle(x,engine = Engine(time(0)) // Engine by default is default_random_engine. You can use anyone from C++.

How to use it:

  1. Just add in "LinkingTo" in your NAMESPACE file the "Rfast" or in Rstudio "//[[Rcpp::depends(Rfast)]]".

  2. Include in your cpp files the header "Rfast.h" and enjoy!

Author(s)


Rfast documentation built on May 18, 2021, 1:07 a.m.