Address
:
[go:
up one dir
,
main page
]
Include Form
Remove Scripts
Accept Cookies
Show Images
Show Referer
Rotate13
Base64
Strip Meta
Strip Title
Session Cookies
Rcpp
Projects
Rcpp
RInside
RcppArmadillo
RcppGSL
RcppExamples
RcppSMC
Gallery
More
Dirk's Rcpp page
Rcpp at CRAN
Rcpp at GitHub
Rcpp at R-Forge
Rcpp-Devel list at Gmane
StackOverflow on Rcpp
Rcpp Gallery
Articles and code examples for the
Rcpp
package
basics
dataframe
matrix
stl
armadillo
rmath
modeling
sugar
gsl
recursion
function
benchmark
rng
sparse
vector
environment
string
c++11
eigen
xts
boost
factor
bigmemory
interrupt
openmp
python
parallel
simulation
serialization
simd
finance
cube
c++14
c++17
machine_learning
mlpack
macros
data.table
nanotime
integer64
modules
gpu
nullable
r6
s4
Featured Articles
Handling R6 objects in C++
— David Quesada
Some examples of how to create R6 objects in C++ and how to call their methods
Creating a data.table from C++
— David Zimmermann, Leonardo Silvestri, Dirk Eddelbuettel
This post shows how to create a data.table (mostly) directly in Rcpp
Parsing Dates and Times
— Dirk Eddelbuettel
We demonstrate a new utility function built around the Boost Date_Time parsing functions.
Sampling Importance Resampling (SIR) and social revolution.
— Jonathan Olmsted
We use SIR to characterize the posterior distribution of parameters associated with the probability of social revolution.
Implementing an EM Algorithm for Probit Regressions
— Jonathan Olmsted
We illustrate the development process of creating code to estimate the parameters of a Probit regression model using the EM algorithm sequentially and in parallel.
Parallel Distance Matrix Calculation with RcppParallel
— JJ Allaire and Jim Bullard
Demonstrates computing an n x n distance matrix from an n x p data matrix.
Summing a Vector in Parallel with RcppParallel
— JJ Allaire
Demonstrates computing the sum of a vector in parallel using the RcppParallel package.
Transforming a Matrix in Parallel using RcppParallel
— JJ Allaire
Demonstrates transforming a matrix in parallel using the RcppParallel package.
Call Python from R through Rcpp
— Wush Wu
Integrate Python into R via Rcpp and Boost.Python
Faster Multivariate Normal densities with RcppArmadillo and OpenMP
— Nino Hardt, Dicko Ahmadou, Benjamin Christoffersen
Fast implementation of Multivariate Normal density using RcppArmadillo and OpenMP.
Quick conversion of a list of lists into a data frame
— John Merrill
This post shows one method for creating a data frame quickly
Passing user-supplied C++ functions
— Dirk Eddelbuettel
This example shows how to select user-supplied C++ functions
Using Rcpp to access the C API of xts
— Dirk Eddelbuettel
This post shows how to use the exported API functions of xts
Timing normal RNGs
— Dirk Eddelbuettel
This post compares drawing N(0,1) vectors from R, Boost and C++11
A first lambda function with C++11 and Rcpp
— Dirk Eddelbuettel
This post shows how to play with lambda functions in C++11
First steps in using C++11 with Rcpp
— Dirk Eddelbuettel
This post shows how to experiment with C++11 features
Using Rcout for output synchronised with R
— Dirk Eddelbuettel
This post shows how to use Rcout (and Rcerr) for output
Using the Rcpp sugar function clamp
— Dirk Eddelbuettel
This post illustrates the sugar function clamp
Using the Rcpp Timer
— Dirk Eddelbuettel
This post shows how to use the Timer class in Rcpp
Calling R Functions from C++
— Dirk Eddelbuettel
This post discusses calling R functions from C++
More »
Published Articles
Feb 5, 2023
»
Extending R with C++ and Fortran
— Dirk Eddelbuettel and JBrandon Duck-Mayr
Nov 6, 2021
»
Benchmarking Rcpp code with RcppClock
— Zach DeBruine
Sep 5, 2021
»
Simulation Smoother using RcppArmadillo
— Tomasz Woźniak
Apr 16, 2021
»
Constructing a Sparse Matrix Class in Rcpp
— Zach DeBruine and Dirk Eddelbuettel
Mar 6, 2021
»
Using iconv via the R exported header
— Dirk Eddelbuettel
Dec 17, 2020
»
Using Scheme from R via Guile and Rcpp
— Dirk Eddelbuettel
Jul 31, 2020
»
Handling R6 objects in C++
— David Quesada
Jun 8, 2020
»
Mixing Rcpp modules and Rcpp attributes
— Bob Jansen
Jun 6, 2020
»
Recreating rmultinom and rpois with Rcpp
— Joshua French
May 18, 2020
»
Nullable Optional Arguments in Rcpp functions
— Satyaprakash Nayak
May 5, 2020
»
Creating a data.table from C++
— David Zimmermann, Leonardo Silvestri, Dirk Eddelbuettel
Jan 2, 2020
»
Documenting Rcpp functions and classes in R packages
— Artem Sokolov and Dirk Eddelbuettel
Nov 5, 2019
»
Using RcppParallel to aggregate to a vector
— Mark Padgham
Apr 18, 2018
»
Performance considerations with sparse matrices in Armadillo
— Hong Ooi
Mar 27, 2018
»
Suppressing Call Stack Info in Rcpp-Generated Errors and Warnings
— Michael Weylandt
Mar 7, 2018
»
Introducing RcppArrayFire
— Ralf Stubner
Feb 28, 2018
»
Using RcppArmadillo to price European Put Options
— Davis Vaughan and Dirk Eddelbuettel
Dec 28, 2017
»
Custom progress bars for RcppProgress
— Clemens Schmid and Karl Forner
Dec 19, 2017
»
Define a custom print method for exposed C++ classes
— Daniel Schalk
Nov 11, 2017
»
Creating integer64 and nanotime vectors in C++
— Dirk Eddelbuettel
Aug 4, 2017
»
Passing user-supplied C++ functions with RcppXPtrUtils
— Iñaki Ucar
Jul 26, 2017
»
Cleaner Generic Functions with RCPP_RETURN Macros
— Nathan Russell
Feb 20, 2017
»
RcppMLPACK2 and the MLPACK Machine Learning Library
— Dirk Eddelbuettel
Feb 19, 2017
»
Using Rcpp with C++11, C++14 and C++17
— Dirk Eddelbuettel
Feb 18, 2017
»
Using Armadillo with SuperLU
— Qiang Kou and Dirk Eddelbuettel
Jul 26, 2016
»
RcppHoney Introduction
— Daniel C. Dillon
Jun 25, 2016
»
Introducing Rcpp::algorithm
— Daniel C. Dillon
Jun 25, 2016
»
Custom Templated as and wrap Functions within Rcpp.
— James Joseph Balamuta
Jun 23, 2016
»
Working with Rcpp::StringVector
— Brian J. Knaus
Jun 8, 2016
»
Optimizing Code vs Recognizing Patterns with 3D Arrays
— James Joseph Balamuta
May 27, 2016
»
Hierarchical Risk Parity Implementation in Rcpp and OpenMP
— Rafael Nicolas Fermin Cota, Yi King, and Chris Chung
May 26, 2016
»
Gerber Statistic Implementation in Rcpp and OpenMP
— Rafael Nicolas Fermin Cota, Yi King, and Chris Chung
Feb 2, 2016
»
SIMD Map-Reduction with RcppNT2
— Kevin Ushey
Feb 1, 2016
»
Using RcppNT2 to Compute the Variance
— Kevin Ushey
Feb 1, 2016
»
Using RcppNT2 to Compute the Sum
— Kevin Ushey
Feb 1, 2016
»
Introduction to RcppNT2
— Kevin Ushey
Jan 24, 2016
»
Writing fast asynchronous SGD/AdaGrad with RcppParallel
— Dmitriy Selivanov
Nov 7, 2015
»
Serialize and Deserialize a C++ Object in Rcpp
— Wush Wu
Apr 25, 2015
»
Stochastic SIR Epidemiological Compartment Model
— Christian Gunning
Apr 2, 2015
»
Call matplotlib from R
— Matti Pastell
Mar 22, 2015
»
Parsing Dates and Times
— Dirk Eddelbuettel
Dec 27, 2014
»
Create an R-tree data structure using Rcpp and Boost::Geometry
— Nagi Teramo and Dirk Eddelbuettel
Oct 23, 2014
»
Sampling Importance Resampling (SIR) and social revolution.
— Jonathan Olmsted
Oct 1, 2014
»
Implementing an EM Algorithm for Probit Regressions
— Jonathan Olmsted
Jul 25, 2014
»
Using RcppArmadillo with bigmemory
— Scott Ritchie
Jul 15, 2014
»
Computing an Inner Product with RcppParallel
— JJ Allaire
Jul 15, 2014
»
Parallel Distance Matrix Calculation with RcppParallel
— JJ Allaire and Jim Bullard
Jun 29, 2014
»
Summing a Vector in Parallel with RcppParallel
— JJ Allaire
Jun 29, 2014
»
Transforming a Matrix in Parallel using RcppParallel
— JJ Allaire
Jun 24, 2014
»
Speed Chain Ladder Analysis with Rcpp
— Chibisi Chima-Okereke
Apr 6, 2014
»
Call Python from R through Rcpp
— Wush Wu
Apr 1, 2014
»
Using iterators for sparse vectors and matrices
— Søren Højsgaard and Doug Bates
Mar 21, 2014
»
A simple array class with specialized linear algebra routines
— Fabian Scheipl
Mar 20, 2014
»
Dynamic dispatch for sparse matrices
— Fabian Scheipl
Mar 16, 2014
»
Vector Subsetting in Rcpp
— Kevin Ushey
Mar 14, 2014
»
Condorcet Voting with Rcpp
— Avraham Adler
Feb 23, 2014
»
Convex Hull of Polygon using Boost.Geometry
— Sameer D'Costa
Jan 4, 2014
»
Detecting a Time Series Change Point
— Joshua French
Dec 9, 2013
»
Performance of the divide-and-conquer SVD algorithm
— Dirk Eddelbuettel
Dec 2, 2013
»
Converting C code to C++ code: An example from plyr
— Hadley Wickham and Dirk Eddelbuettel
Sep 24, 2013
»
Munkres' Assignment Algorithm with RcppArmadillo
— Lars Simon Zehnder
Sep 12, 2013
»
Getting indices of top elements from a vector using a priority queue
— Romain Francois and Martin Morgan
Sep 9, 2013
»
First Derivative of the Multivariate Normal Densities with RcppArmadillo
— Joscha Legewie
Aug 5, 2013
»
Creating as and wrap for sparse matrices
— Dirk Eddelbuettel and Binxiang Ni
Aug 3, 2013
»
Gibbs Sampler in C++
— Dirk Eddelbuettel
Jul 13, 2013
»
Faster Multivariate Normal densities with RcppArmadillo and OpenMP
— Nino Hardt, Dicko Ahmadou, Benjamin Christoffersen
Jun 10, 2013
»
Sobol Sensitivity Analysis
— Robin Girard
May 16, 2013
»
Using RcppProgress to control the long computations in C++
— Karl Forner
May 8, 2013
»
An accept-reject sampler using RcppArmadillo::sample()
— Jonathan Olmsted
Apr 12, 2013
»
Using the RcppArmadillo-based Implementation of R's sample()
— Christian Gunning and Jonathan Olmsted
Apr 8, 2013
»
Dynamic Wrapping and Recursion with Rcpp
— Kevin Ushey
Mar 14, 2013
»
Using bigmemory with Rcpp
— Michael Kane and Scott Ritchie
Mar 12, 2013
»
Generating a multivariate gaussian distribution using RcppArmadillo
— Ahmadou Dicko
Mar 1, 2013
»
Using Rcpp with Boost.Regex for regular expression
— Dirk Eddelbuettel
Feb 27, 2013
»
Fast factor generation with Rcpp
— Kevin Ushey
Jan 31, 2013
»
Using Boost via the new BH package
— Dirk Eddelbuettel
Jan 31, 2013
»
Sorting Numeric Vectors in C++ and R
— Ross Bennett
Jan 30, 2013
»
Using Boost's foreach macro
— Kevin Ushey
Jan 22, 2013
»
Quick conversion of a list of lists into a data frame
— John Merrill
Jan 21, 2013
»
Passing user-supplied C++ functions
— Dirk Eddelbuettel
Jan 20, 2013
»
Coercion of matrix to sparse matrix (dgCMatrix) and maintaining dimnames.
— Søren Højsgaard
Jan 20, 2013
»
Robust Estimators of Location and Scale
— Ross Bennett
Jan 20, 2013
»
Custom as and wrap converters example
— Dirk Eddelbuettel
Jan 19, 2013
»
Using Rcpp to access the C API of xts
— Dirk Eddelbuettel
Jan 18, 2013
»
Using the GSL to compute eigenvalues
— Dirk Eddelbuettel
Jan 17, 2013
»
Creating xts objects from source
— Dirk Eddelbuettel
Jan 16, 2013
»
Timing normal RNGs
— Dirk Eddelbuettel
Jan 15, 2013
»
A second example of using Boost
— Dirk Eddelbuettel
Jan 14, 2013
»
A first example of using Boost
— Dirk Eddelbuettel
Jan 13, 2013
»
Introduction to exception handling
— Dirk Eddelbuettel
Jan 12, 2013
»
Getting attributes to use xts objects
— Dirk Eddelbuettel
Jan 11, 2013
»
Using Eigen for eigenvalues
— Dirk Eddelbuettel
Jan 10, 2013
»
A first lambda function with C++11 and Rcpp
— Dirk Eddelbuettel
Jan 9, 2013
»
First steps in using C++11 with Rcpp
— Dirk Eddelbuettel
Jan 8, 2013
»
Using Rcout for output synchronised with R
— Dirk Eddelbuettel
Jan 8, 2013
»
Handling Strings with Rcpp
— Kevin Ushey
Jan 7, 2013
»
Using the Rcpp sugar function clamp
— Dirk Eddelbuettel
Jan 6, 2013
»
Using the Rcpp Timer
— Dirk Eddelbuettel
Jan 6, 2013
»
Performance Benchmark of Running Sum Functions
— Ross Bennett
Jan 5, 2013
»
Calling R Functions from C++
— Dirk Eddelbuettel
Jan 4, 2013
»
Armadillo eigenvalues
— Dirk Eddelbuettel
Jan 3, 2013
»
Accessing environments
— Dirk Eddelbuettel
Jan 2, 2013
»
Armadillo subsetting
— Dirk Eddelbuettel
Jan 1, 2013
»
Sugar Functions head and tail
— Ross Bennett
Jan 1, 2013
»
STL for_each and generalized iteration
— Dirk Eddelbuettel
Dec 31, 2012
»
STL random_sample
— Dirk Eddelbuettel
Dec 30, 2012
»
STL random_shuffle for permutations
— Dirk Eddelbuettel
Dec 29, 2012
»
STL transform + remove_copy for subsetting
— Dirk Eddelbuettel
Dec 28, 2012
»
STL Transform
— Dirk Eddelbuettel
Dec 28, 2012
»
Run Functions with Rcpp
— Ross Bennett
Dec 27, 2012
»
STL Inner Product
— Dirk Eddelbuettel
Dec 26, 2012
»
Timing random number generators
— Dirk Eddelbuettel
Dec 25, 2012
»
Using LogicalVector
— Ross Bennett
Dec 25, 2012
»
Sparse matrix in Armadillo
— Dirk Eddelbuettel and Binxiang Ni
Dec 24, 2012
»
Random number generation
— Dirk Eddelbuettel
Dec 23, 2012
»
Using Sugar Function diff()
— Ross Bennett
Dec 23, 2012
»
Using Sugar Function any()
— Ross Bennett
Dec 23, 2012
»
Using Sugar Function all()
— Ross Bennett
Dec 23, 2012
»
Faster recursion: The Fibonacci sequence
— Dirk Eddelbuettel
Dec 22, 2012
»
Using Sugar Function cumsum()
— Ross Bennett
Dec 22, 2012
»
Using GSL functions from R
— Dirk Eddelbuettel
Dec 21, 2012
»
Finding the minimum of a vector
— Dirk Eddelbuettel
Dec 21, 2012
»
Using Sugar Mathmatical Operators
— Ross Bennett
Dec 20, 2012
»
Simulating pi from R or C++ in about five lines
— Dirk Eddelbuettel
Dec 19, 2012
»
Using Sugar for High Level Vector Operations
— Romain Francois
Dec 19, 2012
»
Reversing a Vector
— Dirk Eddelbuettel
Dec 19, 2012
»
Fast Linear Models with Armadillo
— Dirk Eddelbuettel
Dec 18, 2012
»
Using Functions from Rmath.h
— Dirk Eddelbuettel
Dec 18, 2012
»
Simulating a Vector Autoregressive Process
— Dirk Eddelbuettel
Dec 15, 2012
»
Using STL Iterators
— Hadley Wickham
Dec 14, 2012
»
Transforming a Matrix with STL Algorithms
— Romain Francois
Dec 14, 2012
»
Modifying a Data Frame
— Dirk Eddelbuettel
Dec 10, 2012
»
Working with Missing Values
— Hadley Wickham
Dec 10, 2012
»
Setting Object Attributes
— Hadley Wickham