vec_to_chunk: Variable vector into chunks.

Description Usage Arguments Details Value References Examples

Description

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

Usage

1

Arguments

x

Character vector of variable names.

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.

Value

Object of class list.

References

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

Examples

1
vec_to_chunk(x = c(paste("P012F0", seq(10:49), sep = ""), paste("P012I0", seq(10, 49), sep = "")))

wru documentation built on May 2, 2019, 7:03 a.m.