File: srswor.R

package info (click to toggle)
r-cran-sampling 2.10-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,336 kB
  • sloc: ansic: 21; makefile: 2
file content (4 lines) | stat: -rw-r--r-- 75 bytes parent folder | download | duplicates (2)
1
2
3
4
"srswor" <-
function(n,N)
{s<-rep(0,times=N);s[sample.int(N,n)]<-1;s}