Learn R Programming

cummeRbund (version 2.14.0)

makeprobsvec: makeprobsvec

Description

Sums a vector of numerics and divides by the sum

Usage

makeprobsvec(p)

Arguments

p
A vector of numerics

Value

A vector of probabilities

Details

None

References

None

Examples

Run this code
	p<-sample(1:5000,20)
	makeprobsvec(p)

Run the code above in your browser using DataLab