Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

rev_col_subset

Reverse Subset Column


Description

Subsets the column by going from high indices to low (the reverse of the supported practice)

Usage

rev_col_subset(x, start, end)

Arguments

x

A matrix of dimensions M x N

start

A unsigned int that indicates the starting column.

end

A unsigned int that indicates the ending column.

Details

Consider a vector x=[[1,2],[3,4]]. By setting start=1 and end=0, the function would output x=[[2,1],[4,1]]. Start and end must be valid C++ matrix locations. (e.g. matrix cols start at 0 and not 1)

Value

x A matrix with matrix rows displayed in reverse order

Author(s)

JJB


simts

Time Series Analysis Tools

v0.1.1
AGPL-3 | file LICENSE
Authors
Stéphane Guerrier [aut, cre, cph], James Balamuta [aut, cph], Roberto Molinari [aut, cph], Justin Lee [aut], Yuming Zhang [aut], Wenchao Yang [ctb], Nathanael Claussen [ctb], Yunxiang Zhang [ctb], Christian Gunning [cph], Romain Francois [cph], Ross Ihaka [cph], R Core Team [cph]
Initial release
2019-07-21

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.