Learn R Programming

wru (version 0.0-2)

vecToChunk: Variable vector into chunks.

Description

vecToChunk takes a list of variables and collects them into 50-variable chunks.

Usage

vecToChunk(x)

Arguments

x
Character vector of variable names.

Value

Object of class list.

Details

This function takes a list of variable names and collects them into chunks with no more than 50 variables each. This helps to get around requests with more than 50 variables,because the API only allows queries of 50 variables at a time. The user should not need to call this function directly.

References

Based on code authored by Nicholas Nagle, which is available here.

Examples

Run this code
vecToChunk(x = c(paste("P012F0", seq(10:49), sep = ""), paste("P012I0", seq(10, 49), sep = "")))

Run the code above in your browser using DataLab