zerona {dataprep}R Documentation

Turn zeros to missing values

Description

Zeros are suitable in logarithmic scale and should be removed for plots.

Usage

zerona(x)

Arguments

x

A dataframe, matrix, or vector containing zeros.

Value

A dataframe, matrix, or vector with zeros being turned into missing values.

Author(s)

Chun-Sheng Liang <liangchunsheng@lzu.edu.cn>

Examples

zerona(0:5)
zerona(cbind(a=0:5,b=c(6:10,0)))

[Package dataprep version 0.1.5 Index]