FD.subcomposition {FlexDir}R Documentation

Subcomposition

Description

Given a matrix or a numeric dataframe, this function returns a subcomposition made up of the specified columns.

Usage

FD.subcomposition(data, columns)

Arguments

data

a matrix or a dataframe containing only variables in the model.

columns

numeric vector containing the position of the columns to keep in the new composition.

Details

Values must be positive. In case one row-entry (or more) is NA, the whole row will be returned as NA.

See Also

FD.generate, FD.amalgamation, FD.normalization

Examples

data(oliveoil)
dataoil <- oliveoil
head(dataoil)
data <- FD.normalization(dataoil[,3:10])
head(data)
data.sub <- FD.subcomposition(data,c(1,3,4,5))
head(data.sub)
data.amalg <- FD.amalgamation(data,c(2,6,7,8),name='others')
head(data.amalg)


[Package FlexDir version 1.0 Index]