vec_to_chunk {wru} | R Documentation |
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. |
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
## Not run:
vec_to_chunk(x = c(paste("P012F0", seq(10:49), sep = ""),
paste("P012I0", seq(10, 49), sep = "")))
## End(Not run)
[Package wru version 3.0.3 Index]