Learn R Programming

valection (version 1.0.0)

run.random.sampling: Run the random sampling algorithm

Description

Runs the random sampling algorithm from the valection library.

Usage

run.random.sampling(budget, infile, outfile, seed);

Arguments

budget

An integer specifying the number of candidates to select.

infile

Path to input file. It should be formatted with a tab separating the caller and call on each line.

caller1 name a call this caller made caller2 name a call this caller made

outfile

Path to a filename where the calls should be outputted.

seed

An integer specifying the random seed value. Optional.

Details

Sampling calls randomly where each call has an equal probability of getting selected.

Examples

Run this code
# NOT RUN {
	run.random.sampling(
		budget  = 5,
		infile  = system.file("extdata/infile_example.tsv", package = "valection"),
		outfile = "outfile_randomSampling.txt"
		);
# }

Run the code above in your browser using DataLab