Dear All,

I am new to calling R in C.

I want to call sample R function in C. i.e. I want to do a sample
equivalent to

n <- c(1:10)
p <- seq(0,10,length.out= 10)

sample(n,size = 1, prob = p, replace = FALSE)

how can I call this function directly in C?

any help would be great,
thanks,
nitin

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to