[R] Replace array with percentile values

greggallen at gmail.com greggallen at gmail.com
Mon Nov 5 04:22:05 CET 2012


Hi:

I have an array of measurements, that I've been doing linear
regression model and AI models on.  Because there are many errors and
the values are "ill-formed" I would like to copy the array, but
replace each value with the PERCENTILE of that value, in the original
array.

i.e.

mesments$V1:  9, 77, -1

would become: mesmentsCopy$V1: 50, 100, 0

The actual array has many more rows and columns, of course.

Cheers,

Greg Allen
Freelance Techno-Slave
SLC, Utah



More information about the R-help mailing list