TrimZeros: Trim leading or trailing zeros in a vector

Description Usage Arguments Value

Description

Trim leading or trailing zeros in a vector

Usage

1
TrimZeros(x, trim = "fb")

Arguments

x

A numerical vector

trim

A string with "f" representing trim from front and "b" to trim from back. Default is "fb", trim zeros from both front and back of the array.

Value

The result of trimming the input


keyuan/bitphyloR documentation built on May 20, 2019, 9:20 a.m.