Learn R Programming

BuyseTest (version 3.0.5)

.colScale_cpp: Divide by a vector of values in each column

Description

Fast computation of sweep(X, FUN = "/", STATS = scale, MARGIN = 1)

Usage

.colScale_cpp(X, scale)

Value

A matrix of same size as x.

Arguments

X

A matrix.

scale

A vector with length the number of rows of X .