Learn R Programming

wru (version 0.1-5)

vec_to_chunk: Variable vector into chunks.

Description

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

Usage

vec_to_chunk(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
# NOT RUN {
vec_to_chunk(x = c(paste("P012F0", seq(10:49), sep = ""), paste("P012I0", seq(10, 49), sep = "")))

# }

Run the code above in your browser using DataLab