polish: Polish Data Objects

Description Usage Arguments Value

Description

Select specified variables from data.frame or rows/columns from matrix/dist

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
polish(x, ...)

## S3 method for class 'data.frame'
polish(x, ...)

## S3 method for class 'matrix'
polish(x, cols = NULL, rows = NULL, ...)

## S3 method for class 'dist'
polish(x, id = NULL, mat = FALSE, ...)

Arguments

x

The object to be polished

...

Columns passed to dplyr::select

cols

Columns to keep from matrix

rows

Rows to keep from matrix

id

Names/index to keep from dist

mat

Return dist object as matrix

Value

data.frame with specified colums or matrix/dist with specified rows/columns


icj/mecfun documentation built on Nov. 4, 2019, 1:54 p.m.