Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of github.com:trinker/wakefield Conflicts: DESCRIPTION
- Loading branch information
Showing
10 changed files
with
32 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,22 @@ | ||
#' Generate Random Vector of Ages | ||
#' | ||
#' Generate a random vector of ages. | ||
#' Generate a random vector of ages within the provided range. The default age | ||
#' range is set between 18 and 89, to match the age ranges which appear (see e.g., | ||
#' https://gssdataexplorer.norc.org/variables/53/vshow). | ||
#' | ||
#' @inheritParams r_sample_factor | ||
#' @return Returns a random factor vector of gender elements. | ||
#' @return Returns a random integer vector of ages within the provided range | ||
#' (defaults to 18:89). | ||
#' @keywords age | ||
#' @export | ||
#' @include utils.R r_sample.R | ||
#' @family variable functions | ||
#' @examples | ||
#' age(10) | ||
#' hist(age(10000)) | ||
#' age(10) # draw 10 ages with default values | ||
#' hist(age(n=10000)) | ||
#' interval(age, 3, n = 1000) | ||
age <- hijack(r_sample, | ||
name = "Age", | ||
x = 20:35 | ||
x = 18:89 | ||
) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.