Displaying 2 results from an estimated 2 matches for "theprobs".
2009 Jun 18
1
Running a function through a vector with the scalars as arguments
I have a vector of probabilities that I would like to feed to rbinom()
and have it return a 1 or 0 for each element. I have tried simply
using the entire vector as the argument hoping R would understand.
Instead I get a scalar:
theProbs <- runif(10,0,1)
youreON <- rbinom(1, 1, theProbs)
Next I tried using the apply function but I could not get that to work either:
youreON2 <- lapply(probsFoo,rbinom, n=1, size=1, prob=theProbs))
I normally would just write a loop to run down the vector and spit out
the new vector bu...
2008 Nov 14
23
Still more questions WRT selecting a mobo for small ZFS RAID
Like many others, I am looking to put together a SOHO NAS based on ZFS/CIFS. The plan is 6 x 1TB drives in RAIDZ2 configuration, driven via mobo with 6 SATA ports.
I''ve read most, if not all, of the threads here, as well as sbredon''s excellent article on building a home NAS, yet I still have a number of unanswered questions.
I was leaning heavily towards the M2N-E for a while,