Rfast2.1.5.2 package

A Collection of Efficient and Extremely Fast R Functions

acg.mle

MLE of (hyper-)spherical distributions

AddToNamespace

Insert/remove function names in/from the NAMESPACE file

allbetas

Simple linear regressions coefficients

allttests

Matrix with all pairs of t-tests

ancova1

Analysis of covariance

ancovas

Many ANCOVAs

anova_propreg

Significance testing for the coefficients of Quasi binomial or the qua...

anova_quasipois.reg

ANOVA for two quasi Poisson regression models

apply.condition

Apply to each column a method under condition

ar1

Estimation of an AR(1) model

as.Rfast.function

Convert R function to the Rfast's coresponding

bc

Estimation of the Box-Cox transformation

beta.mle

MLE of distributions defined in the (0, 1) interval

bic.corfsreg

BIC (using partial correlation) forward regression

bic.fs.reg

BIC forward regression with generalised linear models

binary_search

Binary search algorithm

boot.ttest2

Bootstrap t-test for 2 independent samples

bs.reg

Backward selection regression

btmprobs

Fitted probabilities of the Terry-Bradley model

cat.goftests

Many one sample goodness of fit tests for categorical data

check_data

Search for variables with zero range in a matrix

checkNamespace

Check Namespace and Rd files

cholesky

Cholesky decomposition of a square matrix

circlin.cor

Circular-linear correlation

coeff

Coefficient matrices

col.yule

Column-wise Yule's Y (coefficient of colligation)

colanovas

Many Welch's F-tests

colAny

Column and row-wise Any

colaucs

Many area under the curve values

colCumMaxs

Colum-wise cumulative operations (sum, prod, min, max)

colcvs

Column and row wise coefficients of variation

coldiffs

Column-wise differences

colkurtosis

Column-wise kurtosis and skewness coefficients

colmeans

Column and row-wise means of a matrix

colMins

Column-wise minimum and maximum of a matrix

colnormal.mle

Column-wise MLE of some univariate distributions

colpoisdisp.tests

Many tests for the dispersion parameter in Poisson distribution

colpoisson.anovas

Many ANOVAS for count data with Poisson or quasi Poisson models

colprods

Column and row-wise products

colrange

Column and row-wise range of values of a matrix

colrint.regbx

Many random intercepts LMMs for balanced data with a single identical ...

colrow.value

Check if any column or row is fill with values

colShuffle

Column and row-wise Shuffle

colsums

Column and row-wise sums of a matrix

colTabulate

Column and row-wise tabulate

colTrue

Column-wise true/false value of a matrix

columns

Get specific columns/rows fo a matrix

colvarcomps.mom

Many moment and maximum likelihood estimations of variance components

colVars

Column and row-wise variances and standard deviations of a matrix

colwatsons

Column-wise uniformity tests for circular data

comb_n

All k possible combinations from n elements

cor.fbed

FBED variable selection method using the correlation

cor.fsreg

Correlation based forward regression

corpairs

Correlation between pairs of variables

correls

Correlation between a vector and a set of variables

count_value

Row - Wise matrix/vector count the frequency of a value

cova

Fast covariance and correlation matrix calculation

cox.poisrat

Cox confidence interval for the ratio of two Poisson variables

data.frame.to_matrix

Convert a dataframe to matrix

dcor.ttest

Hypothesis test for the distance correlation

dcov

Distance variance, covariance and correlation

design_matrix

Design Matrix

Diag.fill

Diagonal Matrix

diri.nr2

Fitting a Dirichlet distribution via Newton-Rapshon

dirknn.cv

Cross-Validation for the k-NN algorithm using the arc cosinus distance

dirknn

k-NN algorithm using the arc cosinus distance

Dist

Distance matrix - Sum of all pairwise distances in a distance matrix

dista

Distance between vectors and a matrix - Sum of all pairwise distances ...

dmvnorm

Density of the multivariate normal and t distributions

edist

Energy distance between matrices

eel.test1

Empirical and exponential empirical likelihood tests for one sample

eel.test2

Empirical and exponential empirical likelihood tests for two samples

eigen.sym

Limited number of eigenvalues and eigenvectors of a symmetric matrix

env.copy

Deep copy

exact.ttest2

Exact t-test for 2 independent samples

expregs

Many exponential regressions

fish.kent

Hypothesis test for von Mises-Fisher distribution over Kent distributi...

floyd

Floyd-Warshall algorithm for shortest paths in a directed graph

freq.min

Minimum and maximum frequencies of a vector

fs.reg

Variable selection in generalised linear regression models with forwar...

ftest

Multi-sample tests for vectors

ftests

Many multi-sample tests

g2Test_univariate

Matrix with G-square tests of indepdence

g2Test

G-square test of conditional indepdence

g2tests

Many G-square tests of indepedence

gammamle

MLE of continuous univariate distributions defined on the positive lin...

gammareg

Gamma regression with a log-link

gaussian.nb

Naive Bayes classifiers

gaussiannb.pred

Prediction with some naive Bayes classifiers

gchi2Test

Chi-square and G-square tests of (unconditional) indepdence

geom.regs

Many simple geometric regressions

ginis

One and many Gini coefficients

glm_logistic

Logistic and Poisson regression models

group

Some summary statistics of a vector for each level of a grouping varia...

hash.find

Find the given value in a hash table

hash.list

Hash - Pair function

Hash

Hash object

hash2list

Hash object to a list object

hd.eigen

Eigenvalues in high dimensional principal component analysis

invdir.mle

MLE of the inverted Dirichlet distribution

invgauss.reg

Inverese Gaussian regression with a log-link

is_element

Find element

is_integer

Check if values are integers and convert to integer

is.symmetric

Check whether a square matrix is symmetric

iterator

Iterator

james

James multivariate version of the t-test

knn.cv

Cross-Validation for the k-NN algorithm

knn

k nearest neighbours algorithm (k-NN)

kruskaltests

Many multi-sample tests

kuiper

Uniformity tests for circular data

Lbeta

Natural logarithm of the beta function

Lchoose

Binomial coefficient and its logarithm

Lgamma

Natural logarithm of the gamma function and its derivatives

list.ftests

Many F-tests with really huge matrices

lmfit

Linear models for large scale data

Log

Natural Logarithm each element of a matrix

logistic_only

Many univariate simple binary logistic regressions

logistic.cat1

Logistic or Poisson regression with a single categorical predictor

lower_tri

Lower and Upper triangular of a matrix

Mad

Column and row-wise mean absolute deviations

mahala

Mahalanobis distance

mat.mat

Number of equal columns between two matrices

mat.mult

Matrix multiplication, Cross and Tcross product

match.coefs

Column-wise matching coefficients

Match

Match

matrnorm

Generates random values from a normal and puts them in a matrix

Median

Column and row-wise medians of a matrix or median of a vector

mediandir

Fast calculation of the spherical and hyperspherical median

min_max

Minimum and maximum of a vector

multinom.mle

MLE for multivariate discrete data

multinom.reg

Multinomial regression

multinom.regs

Many simple multinomial regressions

mv.eeltest1

Exponential empirical likelihood for a one sample mean vector hypothes...

mv.eeltest2

Exponential empirical likelihood hypothesis testing for two mean vecto...

mvbetas

Many multivariate simple linear regressions coefficients

mvkurtosis

Multivariate kurtosis

mvnorm.mle

MLE of the multivariate (log-) normal distribution

mvt.mle

MLE of the multivariate t distribution

negative

Apply method to Positive and Negative number

Norm

Norm of a matrix

normal.mle

MLE of continuous univariate distributions defined on the real line

normlog.reg

Gaussian regression with a log-link

normlog.regs

Many simple regressions for positive valued data

nth

Column and row-wise nth smallest value of a matrix/vector

odds.ratio

Odds ratio and relative risk

odds

Many odds ratio tests

ompr

Orthogonal matching pursuit variable selection

Order

Column and row-wise Order - Sort Indices

ordinal.mle

MLE of the ordinal model without covariates

Outer

Outer function

pc.skel

The skeleton of a Bayesian network produced by the PC algorithm

pdcor

Partial distance correlation

percent.ttest

Hypothesis test for two means of percentages

percent.ttests

Many hypothesis tests for two means of percentages

permcor

Permutation based p-value for the Pearson correlation coefficient

permutation

Permutation

Pmax

Minima and maxima of two vectors/matrices and Column-row wise minima a...

poisdisp.test

Tests for the dispersion parameter in Poisson distribution

poisson.anova

Analysis of variance with a count variable

poisson.anovas

Many analysis of variance tests with a discrete variable

poly.cor

Polyserial correlation

pooled.cov

Pooled covariance matrix

prop.reg

Quasi binomial regression for proportions

proptests

Many 2 sample proportions tests

qpois.reg

Quasi Poisson regression

quasi.poisson_only

Many univariate simple poisson regressions

racg

Angular central Gaussian random values simulation

Rank

Column and row-wise ranks

rbing

Simulating from a Bingham distribution

rbingham

Simulation of random values from a Bingham distribution with any symme...

read.directory

Reading the files of a directory

regression

Many univariate simple linear regressions

rep_col

Replicate columns/rows

Rfast-package

utils::packageDescription("Rfast")[["Title"]]

rint.regbx

Random intercepts linear mixed models

rint.regs

Many simple linear mixed model regressions

rm.anova

Repeated measures anova

rm.lines

Many regression based tests for single sample repeated measures

rmdp

High dimensional MCD based detection of outliers

rmvlaplace

Multivariate Laplace random values simulation

rmvnorm

Multivariate normal and t random values simulation

Rnorm

Simulation of random values from a normal distribution

Round

Round each element of a matrix/vector

rowMins

Row-wise minimum and maximum of a matrix

rowTrue

Row-wise true value of a matrix

rvmf

Random values simulation from a von Mises-Fisher distribution

rvonmises

Random values simulation from a von Mises distribution

score.glms

Many score based regressions

sftests

Many Shapiro-Francia normality tests

skew

Skewness and kurtosis coefficients

skew.test2

Hypothesis testing between two skewness or kurtosis coefficients

sort_mat

Sorting of the columns-rows of a matrix

sort_unique

Sort and unique

Sort

Sort - Integer Sort - Sort a vector coresponding to another

sourceR

Source many R files

spat.med

Spatial median for Euclidean data

spatmed.reg

Spatial median regression

spdinv

Inverse of a symmetric positive definite matrix

spml.reg

Circular or angular regression(s)

squareform

Vector allocation in a symmetric matrix

sscov

Spatial sign covariance matrix

Stack

Represantation of Stack

standardise

Standardisation

submatrix

Sub-matrix

Table

Table Creation - Frequency of each value

tobit.mle

MLE of the tobit model

topological_sort

Topological sort of a DAG

transpose

Transpose of a matrix

ttest

Many one sample tests

ttest1

One sample t-test for a vector

ttests

Many 2 sample tests tests

twoway.anovas

Many two-way ANOVAs

ufactor

Fast and general represantation of a factor variable

univglms

Many univariate generalised linear regressions

Var

Variance (and standard deviation) of a vector

varcomps.mom

Moment and maximum likelihood estimation of variance components

vm.mle

MLE of some circular distributions

weib.reg

Weibull regression model

which.is

Index of the columns of a data.frame which are a specific type

XopY.sum

Operations between two matrices or matrix and vector

yule

Yule's Y (coefficient of colligation)

zip.mle

MLE of count data

A collection of fast (utility) functions for data analysis. Column and row wise means, medians, variances, minimums, maximums, many t, F and G-square tests, many regressions (normal, logistic, Poisson), are some of the many fast functions. References: a) Tsagris M., Papadakis M. (2018). Taking R to its limits: 70+ tips. PeerJ Preprints 6:e26605v1 <doi:10.7287/peerj.preprints.26605v1>. b) Tsagris M. and Papadakis M. (2018). Forward regression in R: from the extreme slow to the extreme fast. Journal of Data Science, 16(4): 771--780. <doi:10.6339/JDS.201810_16(4).00006>. c) Chatzipantsiou C., Dimitriadis M., Papadakis M. and Tsagris M. (2020). Extremely Efficient Permutation and Bootstrap Hypothesis Tests Using Hypothesis Tests Using R. Journal of Modern Applied Statistical Methods, 18(2), eP2898. <doi:10.48550/arXiv.1806.10947>. d) Tsagris M., Papadakis M., Alenazi A. and Alzeley O. (2024). Computationally Efficient Outlier Detection for High-Dimensional Data Using the MDP Algorithm. Computation, 12(9): 185. <doi:10.3390/computation12090185>. e) Tsagris M. and Papadakis M. (2025). Fast and light-weight energy statistics using the R package Rfast. <doi:10.48550/arXiv.2501.02849>.

  • Maintainer: Manos Papadakis
  • License: GPL (>= 2.0)
  • Last published: 2025-10-10