powered by
Generate Reproducible Random Seed
gen_repro_seed(base_string = "searchAnalyzeR")
Integer seed value
Base string for seed generation
This function generates a reproducible seed based on a string input. It does not set the seed automatically - users should call set.seed() themselves if they want to use the generated seed.
# Generate a seed value seed_value <- gen_repro_seed("my_analysis") # User can choose to set it # \donttest{ set.seed(seed_value) sample(1:10, 3) # }
Run the code above in your browser using DataLab