cwriteStep: cwriteStep: Write a sample of a vector to a file using C for...

cwriteStepR Documentation

cwriteStep: Write a sample of a vector to a file using C for fast writing.

Description

This function will output every Nth NONZERO entry of a vector to a file. Useful if you need just a sample of a large vector.

Usage

cwriteStep(y, l, file, step, showWarnings = TRUE)

Arguments

y

vector to write.

l

length of the vector; (you can provide length(y)).

file

output filename.

step

output every Nth entry in the vector y.

Examples

d = rnorm(1000);
cwriteStep(d, length(d), "output.txt", step=100)

nsheff/CWriteR documentation built on Jan. 5, 2025, 4:39 p.m.