Skip to content

Commit

Permalink
Data documentation example
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholascarey committed Nov 18, 2021
1 parent 6c48f2e commit f129ae1
Show file tree
Hide file tree
Showing 2 changed files with 64 additions and 0 deletions.
30 changes: 30 additions & 0 deletions R/data.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@

#' Test data - short title
#'
#' @description What the dataset is
#'
#' @usage data(test_data) or my_function(test_data)
#'
#' @format Describe the format or structure of the data and what it is. E.g. a
#' data frame with 2 columns of some random numbers.
#'
#' @details Optional. More details about the data. E.g. what each column is,
#' what you might use it for, which functions it goes with, etc. Delete
#' section if not using.
#'
#' @md
#'
#' @source Who added it or where it came from. E.g. Data comes from
#' [ICES](http://www.ices.dk) (this is how you add a weblink)
#'
#' @seealso [`my_function`] - Optional link to the function or functions it goes
#' with. Delete section if not using.
#'
#' @examples
#' # Example of how to use the data in a function (optional, but useful)
#' my_function(test_data)
"test_data" # THIS PART IS IMPORTANT - name of the dataset in quotes without the ".rda"


# Documentation for other datasets get added below this one - the order is not important.
#
34 changes: 34 additions & 0 deletions man/test_data.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit f129ae1

Please sign in to comment.