A Command for Randomly Creating Sets of Elements from a Vector

R-bloggers 2013-05-02

Summary:

# This command pairs (of arbitrary length) together a list of items randomly.# I think it is useful for simulations matching individuals together.pairup = function(x, ncol=2, unmatched.self=T) {  # Calculate the length of the x vector.&n...

Link:

http://feedproxy.google.com/~r/RBloggers/~3/vuQdS6F_i6w/

From feeds:

Statistics and Visualization » R-bloggers

Tags:

Authors:

Francis Smart

Date tagged:

05/02/2013, 11:20

Date published:

05/01/2013, 12:16