jittervar: Jitter variables in a data matrix

Description Usage Arguments Value Author(s) See Also Examples

View source: R/lcmixed.R

Description

Jitters some variables in a data matrix.

Usage

1
  jittervar(x,jitterv=NULL,factor=1)

Arguments

x

data matrix or data frame.

jitterv

vector of numbers of variables to be jittered.

factor

numeric. Passed on to jitter. See the documentation there. The higher, the more jittering.

Value

data matrix or data frame with jittered variables.

Author(s)

Christian Hennig c.hennig@ucl.ac.uk http://www.homepages.ucl.ac.uk/~ucakche

See Also

jitter

Examples

1
2
3
4
5
6
7
  set.seed(776655)
  v1 <- rnorm(20)
  v2 <- rnorm(20)
  d1 <- sample(1:5,20,replace=TRUE)
  d2 <- sample(1:4,20,replace=TRUE)
  ldata <- cbind(v1,v2,d1,d2)
  jv <- jittervar(ldata,jitterv=3:4)

fpc documentation built on May 30, 2017, 3:20 a.m.

Search within the fpc package
Search all R packages, documentation and source code