Description Usage Arguments Value Examples

View source: R/StandUnitCube.R

Intervalizes the matrix given as input

1 | ```
intervalize(xx, a = -1, b = 1)
``` |

`xx` |
Matrix or a data frame of numeric entries |

`a` |
lower bound of the target interval |

`b` |
upper bound of the target interval |

Matrix with columns that have minimum zero and maximum one

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | ```
## Not run:
# I don't want you to run this
## End(Not run)
n<-450; x <- data.frame(cbind(rnorm(n, 162, 4), rnorm(n, 108, 2),
rnorm(n, 117, 3), rnorm(n, 36, 2), rnorm(n, 45, 2)))
p <- ncol(x)
x.inter <- intervalize(x,a=-1,b=1)
round(head(x),2)
round(head(x.inter),2)
round(rbind(apply(x, 2, min), apply(x.inter, 2, min)),2)
round(rbind(apply(x, 2, max),apply(x.inter, 2, max)),2)
oldpar<-par(mfrow=c(1,2))
boxplot(x[,1:min(5,p)], main='Original Data', col=rainbow(9))
boxplot(x.inter[,1:min(5,p)], main='PreProcessed Data', col=rainbow(7))
par(oldpar)
``` |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.