The R programming language is what I'm utilising. I'm attempting to produce random integers in the range between 1 and 0. I tried the following code to produce 1000 random integers between 0 and 1 using the website at the following address:
http://www.cookbook-r.com/Numbers/Generating random numbers/.
Runif(1000, min=0, max=1), x = floor
Runif(1000, min=0, max=1), y = floor
sample(LETTERS[1:2], 1000, replace=TRUE, prob=c(0.8,0.2))
the data frame d (x,y,group)
as.factor(d$group) = d$group
But it appears that "x" and "y" only have a value of 0.
Can somebody tell me what I'm doing incorrectly? Thanks