CRAN

arrApply 2.0.1

Apply a Function to a Margin of an Array

Released Nov 10, 2016 by Serguei Sokol

This package can be loaded by Renjin but there was an error compiling C/FORTRAN sources and 1 out 2 tests failed.

Dependencies

Rcpp RcppArmadillo 0.7.500.0.0

High performance variant of apply() for a fixed set of functions. Considerable speedup is a trade-off for universality, user defined functions cannot be used with this package. However, 20 most currently employed functions are available for usage. They can be divided in three types: reducing functions (like mean(), sum() etc., giving a scalar when applied to a vector), mapping function (like normalise(), cumsum() etc., giving a vector of the same length as the input vector) and finally, vector reducing function (like diff() which produces result vector of a length different from the length of input vector). Optional or mandatory additional arguments required by some functions (e.g. norm type for norm() or normalise() functions) can be passed as named arguments in '...'.

Installation

Maven

This package can be included as a dependency from a Java or Scala project by including the following your project's pom.xml file. Read more about embedding Renjin in JVM-based projects.

<dependencies>
  <dependency>
    <groupId>org.renjin.cran</groupId>
    <artifactId>arrApply</artifactId>
    <version>2.0.1-b10</version>
  </dependency>
</dependencies>
<repositories>
  <repository>
    <id>bedatadriven</id>
    <name>bedatadriven public repo</name>
    <url>https://nexus.bedatadriven.com/content/groups/public/</url>
  </repository>
</repositories>

View build log

Renjin CLI

If you're using Renjin from the command line, you load this library by invoking:

library('org.renjin.cran:arrApply')

Test Results

This package was last tested against Renjin 0.8.2427 on Sep 16, 2017.

Source

R
C++

View GitHub Mirror

Release History