Skip to content

Commit 7ba0232

Browse files
committed
fixup help and description
1 parent 37658b1 commit 7ba0232

File tree

6 files changed

+19
-6
lines changed

6 files changed

+19
-6
lines changed

DESCRIPTION

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
Package: cdata
22
Type: Package
3-
Title: Wrappers for tidyr::gather() and tidyr::spread()
3+
Title: Wrappers for 'tidyr::gather()' and 'tidyr::spread()'
44
Version: 0.1.0
55
Author: John Mount, Nina Zumel
66
Maintainer: John Mount <[email protected]>
77
URL: https://github.com/WinVector/cdata
88
BugReports: https://github.com/WinVector/cdata/issues
9-
Description: Supplies deliberately verbose wrappers for tidyr::gather() and tidyr::spread(), and an explanatory vignette. Useful for training and for enforcing preconditions.
9+
Description: Supplies deliberately verbose wrappers for 'tidyr::gather()' and 'tidyr::spread()', and an explanatory vignette. Useful for training and for enforcing preconditions.
1010
License: GPL-3
1111
Encoding: UTF-8
1212
LazyData: true

R/RowsColumns.R

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ NULL
1212
#' @param allowNAKeys logical if FALSE throw if there are NAs in the key columns.
1313
#' @return logical TRUE if the rows of data are unique addressable by the columns named in keyColNames.
1414
#'
15+
#'
1516
#' @examples
1617
#'
1718
#' d <- data.frame(key= c('a','a', 'b'))
@@ -58,7 +59,9 @@ checkColsFormUniqueKeys <- function(data, keyColNames,
5859

5960
#' Move values from columns to rows (wrapper for \code{tidyr::gather}, or anti-pivot).
6061
#'
62+
#' For a tutorial please try \code{vignette('RowsAndColumns', package='cdata')}.
6163
#'
64+
#' @seealso \code{\link{moveValuesToColumns}}
6265
#'
6366
#' @param data data.frame to work with.
6467
#' @param nameForNewKeyColumn character name of column to write new keys in.
@@ -142,6 +145,10 @@ moveValuesToRows <- function(data,
142145

143146
#' Move values from rows to columns (wrapper for \code{tidyr::spread} or pivot).
144147
#'
148+
#' For a tutorial please try \code{vignette('RowsAndColumns', package='cdata')}.
149+
#'
150+
#' @seealso \code{\link{moveValuesToRows}}
151+
#'
145152
#' @param data data.frame to work with.
146153
#' @param columnToTakeKeysFrom character name of column build new column names from.
147154
#' @param columnToTakeValuesFrom character name of column to get values from.

R/package.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#' \code{cdata}d: Wrappers for \code{tidyr::gather()} and \code{tidyr::spread()}
1+
#' \code{cdata}: Wrappers for \code{tidyr::gather()} and \code{tidyr::spread()}
22
#'
33
#' cdata supplies deliberately verbose wrappers for \code{tidyr::gather()} and \code{tidyr::spread()}, and an explanatory vignette.
44
#' Useful for training and for enforcing preconditions.

man/cdata.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/moveValuesToColumns.Rd

Lines changed: 4 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/moveValuesToRows.Rd

Lines changed: 4 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)