getSwiftKeyRandomSample: Get a random sampling of swiftkey data

Description Usage Arguments Value

View source: R/DAL.R

Description

Gets a random set of rows given a seed. That seed defaults to today's date but can be set to be any date. Those data are then cached according to the global settings. If the same seed and settings are run multiple times, this program reads from cached file instead of regenerating those samples as those files are quite large.

Usage

1
2
getSwiftKeyRandomSample(nrows = 100, locale = "en_US",
  textType = "twitter", seedDate = lubridate::today())

Arguments

nrows

number of rows to read. Set to -1 for all lines.

locale

which locale to use, can be any of those present. Defaults to "en_US"

textType

which file type to use, can be any of those present. Defaults to "twitter"' @param locale which locale to be using

seedDate

seed to use, defaults to today's date.

Value

a character vector of randomly chosen text


minimenchmuncher/courseraSkCapstone documentation built on May 22, 2019, 11:54 p.m.