random - Questions about set.seed() in R -


i understand set.seed() , when might use it, still have many questions function. here few:

  1. is possible "reset" set.seed() "more random" if have called set.seed() earlier in session? necessary?
  2. is possible view seed r using?
  3. is there way make set.seed() allow alphanumeric seeds, way 1 can enter them @ random.org (be sure in advanced mode, , see "part 3" of form see mean)?

just fun:

set.seed.alpha <- function(x) {   require("digest")   hexval <- paste0("0x",digest(x,"crc32"))   intval <- type.convert(hexval) %% .machine$integer.max   set.seed(intval) } 

so can do:

set.seed.alpha("hello world") 

(in fact x can r object, not alphanumeric string)


Comments

Popular posts from this blog

django - How can I change user group without delete record -

java - Need to add SOAP security token -

java - EclipseLink JPA Object is not a known entity type -