# NOT RUN {
require( npsf )
# obtain first 10 x 7 matrix with the first 7 primes as bases
npsf::halton(10, n.bases = 7)
# obtain first 10 x 7 matrix with the randomly chosen 7 primes as bases
npsf::halton(10, n.bases = 7, random.primes = TRUE, seed = 17345168)
# just one column with desired prime
npsf::halton(10, bases = 1)
# or 2 columns
npsf::halton(10, bases = c(1,7))
# if bases are large
npsf::halton(10, bases = c(1,7)*1000)
# the coverage is not great
npsf::halton(10, bases = c(1,7)*1000, scale.coverage = TRUE)
# reshuffle them, use seed for replicability
npsf::halton(10, bases = c(1,7)*1000, scale.coverage = TRUE, shuffle = TRUE, seed = 17345168)
# }
Run the code above in your browser using DataLab