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

Description Usage Arguments Examples

View source: R/cwrite.R

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

1
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

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

nsheff/CWriteR documentation built on May 24, 2019, 7:50 a.m.