: +32/(0)16/336899
Fax: +32/(0)16/337015
Web: http://med.kuleuven.be/biostat/
http://www.student.kuleuven.be/~m0390867/dimitris.htm
- Original Message -
From: "Doran, Harold" <[EMAIL PROTECTED]>
To:
Sent: Tuesday, March 04, 2008 4:33 PM
Subject: [R] Sampling letters
I have a binary matrix of size N x 300. I then create the following:
> set.seed(1234)
> (key_file <- sample(letters[1:4], 300, replace=TRUE))
[1] "a" "c" "c" "c" "d" "c" "a" "a" "c" "c" "c" "c" "b" "d" "b" "d"
"b" "b" "a" "a" "b" "b" "a"
[24] "a" "a" "d" "c" "d" "d" "a" "b" "b" "b" "c" "a" "d"
2 matches
Mail list logo