Learn R Programming

GLDEX (version 2.0.0.9.3)

fun.zero.omit: Returns a vector after removing all the zeros.

Description

This function returns a vector after removing all the zeros.

Usage

fun.zero.omit(object)

Value

Returns a vector after removing zeros and also give information on the number of zeros in the data removed.

Arguments

object

A vector of data.

Author

Steve Su

See Also

fun.which.zero

Examples

Run this code
# Removing zero entries from the vector c(0,1,2,3,4,0,2)
fun.zero.omit(c(0,1,2,3,4,0,2))

Run the code above in your browser using DataLab