Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

jitter

Jitter vector containing NA


Description

Extension of jitter to deal with NA entries

Usage

jitterNA(x,...)

Arguments

x

Data to be jittered, may be vector, matrix, or numerical data frame.

...

Other parameters for jitter.

Value

jitterNA(x, ...) return a numeric vector with jittered entries, NA entries are allowed and not changed

Author(s)

Christian W. Hoffmann <christian@echoffmann.ch>

Examples

d <- data.frame(cbind(x=1, y=1:10))
  d[5,1] <- d[3,2] <- NA
  jitterNA(d)

cwhmisc

Miscellaneous Functions for Math, Plotting, Printing, Statistics, Strings, and Tools

v6.6
GPL (>= 2)
Authors
Christian W. Hoffmann
Initial release
2018-08-24, 10:40:10

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.