50% off | Unlimited Data & AI Learning

Last chance! 50% off unlimited learning

Sale ends in


Momocs (version 0.1-01)

col.sel: Helps to select the columns indices of an harmonic coefficient matrix.

Description

Returns the columns' indices of a matrix which colums are in the format: $$(A_1, ..., A_n, B_1, ..., B_n, C_1, ..., C_n, D_1, ..., D_n)$$

Usage

col.sel(h.fr = 1, h.to = 8, h.max = 32, drop = FALSE)

Arguments

h.fr
integer indicating the first harmonic to retain
h.to
integer indicating the last harmonic to retain
h.max
integer indicating the total number of harmonics (usually number of columns/4)
drop
logical indicating whether to drop or not the first $A_1$ harmonic

Value

  • Returns a vector of integer indicating the selected columns indices.

Examples

Run this code
col.sel(1, 8, 32)
col.sel(1, 4, 8, TRUE)

Run the code above in your browser using DataLab