I have a vector with values which distribution is unknown and i want to create another vector with the probabilities of the values i have. eg.
I have
v <- c(e1, e2, ... , ei)
and i want to create
p <- c(P(e1), P(e2), ... , P(ei))
How can i do this in R?