View source: R/helper_functions.R
| recycle | R Documentation | 
This function is a helper function designed call rep_len to expand the
length of a data vector, but which can dynamically retrieve N from the
surrounding level call for use in fabricatr.
recycle(x, .N = NULL)
x | 
 Data to recycle into length   | 
.N | 
 the length to recycle the data to, typically provided implicitly by a or fabricate call wrapped around the function call.  | 
A vector of data padded to length N
fabricate(
  N = 15,
  month = recycle(month.abb)
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.