Learn R Programming

wrMisc (version 1.15.3.1)

.removeCol: Remove columns indicated by col-number

Description

This function aims to remove columns indicated by col-number

Usage

.removeCol(matr, rmCol)

Value

This function returns an matrix or data.frame

Arguments

matr

(matrix or data.frame) main input

rmCol

(integer) column index for removing

See Also

Examples

Run this code
aa <- matrix(1:6, ncol=3)
.removeCol(aa, 2)

Run the code above in your browser using DataLab