tokens_sample: Randomly sample documents from a tokens object
Description
Sample tokenized documents randomly from a tokens object, with or without
replacement. Works just as sample() works, for document-level
units (and their associated document-level variables).