Skip to content

Commit

Permalink
docs, pkgdown, bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
davebraze committed Jul 20, 2017
1 parent 5ff40a6 commit 5c77771
Show file tree
Hide file tree
Showing 24 changed files with 266 additions and 59 deletions.
6 changes: 3 additions & 3 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: FDButils
Title: Low Level Utility Functions
Version: 0.0.7
Date: 2017-04-29
Version: 0.0.8
Date: 2017-07-20
Authors@R: c(person("David", "Braze", email="[email protected]", role=c("aut", "cre")))
Maintainer: Maintainer: David Braze <[email protected]>
Description: Stable low level utility functions, mostly for use in other FDB
Expand All @@ -14,7 +14,7 @@ License: MIT + file LICENSE
LazyData: true
URL: https://github.com/davebraze/FDButils
BugReports: https://github.com/davebraze/FDButils/issues
Collate:
Collate:
'FDButils.R'
'compCorr.R'
'factors.R'
Expand Down
6 changes: 3 additions & 3 deletions R/factors.R
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ fact2char <- function(f) {
##'
##' @description None yet.
##'
##' @details Reorders the levels of factor f as specified in new.order, which must contain all and
##' only the existing levels of f (including unused levels), but in the desired order. If new.order
##' and levels(f) do not contain exactly the same elements, then do nothing.
##' @details Reorders the levels of factor f as specified in \code{new.order}, which must contain all and
##' only the existing levels of f (including unused levels), but in the desired order. If \code{new.order}
##' and \code{levels(f)} do not contain exactly the same elements, then do nothing.
##'
##' @param f A factor.
##' @param new.order A character vector containing all and only the levels of f, in the desired order.
Expand Down
4 changes: 3 additions & 1 deletion R/invDnorm.R
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
##' inverse.
##'
##' @details
##' Cribbed from <http://stackoverflow.com/questions/19589191/the-reverse-inverse-of-the-normal-distribution-function-in-r>
##' Cribbed from \url{http://stackoverflow.com/questions/19589191/the-reverse-inverse-of-the-normal-distribution-function-in-r}.
##'
##' @param x A numeric vector.
##' @return A vector the same length as x.
##' @author Dave Braze \email{davebraze@@gmail.com}
Expand All @@ -19,6 +20,7 @@ invDnorm <- function(x) {
}

##' @details
##'
##' \code{inv_dnorm()} is deprecated.
##' @rdname invDnorm
##' @export
Expand Down
7 changes: 5 additions & 2 deletions R/isNumeral.R
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
##' @details
##' Checks element-wise as to whether each item in a vector of strings can be coerced to numeric.
##'
##' Basics cribbed from \url{http://rosettacode.org/wiki/Determine_if_a_string_is_numeric#R}
##' Basics cribbed from \url{http://rosettacode.org/wiki/Determine_if_a_string_is_numeric#R}.
##'
##' @param c A vector of strings.
##' @return A vector of logicals, NA where \code{is.na(c)}.
##' @author David Braze \email{davebraze@@gmail.com}
Expand All @@ -21,7 +22,9 @@ isNumeral <- function(c) {
retval
}

##' @details \code{is.numeral()} is deprecated.
##' @details
##'
##' \code{is.numeral()} is deprecated.
##' @rdname isNumeral
##' @export
is.numeral <- function(c) {
Expand Down
4 changes: 3 additions & 1 deletion R/isWholeNumber.R
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ isWholeNumber <- function(v, tol = .Machine$double.eps^0.5) {
abs(v - round(v)) < tol
}

##' @details \code{is.wholenumber()} is deprecated.
##' @details
##'
##' \code{is.wholenumber()} is deprecated.
##' @rdname isWholeNumber
##' @export
is.wholenumber <- function(v, tol) {
Expand Down
10 changes: 5 additions & 5 deletions R/latinsq.R
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
##' @title Latin squares.
##' @title Create Latin squares.
##'
##' @description Get list of different latin squares.
##' @description Get list of random latin squares.
##'
##' @details Get list of different latin squares.
##' @details Get list of random latin squares. At present, these are not guaranteed to be unique.
##'
##' @param nSquares Number of latin squares to create.
##' @param nDims Size of latin squares.
##' @return A list of nSquares latin squares, each nDim x nDim in size.
##' @return A list of latin squares, nSquares in length. Each square is nDims x nDims in size.
##' @author David Braze \email{davebraze@@gmail.com}
##' @seealso magic::latin()
##' @seealso \code{\link[magic]{latin}}
##' @export
##' @examples
##' d <- 5
Expand Down
4 changes: 2 additions & 2 deletions R/nobs.R
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
##'
##' @description Count non-missing values in v.
##'
##' @details
##' Returns the number of non-missing values in vector v. A convenience wrapper around sum(!is.na(v)).
##' @details Returns the number of non-missing values in vector v. A convenience wrapper around
##' \code{sum(!is.na(v))}.
##'
##' @param v A vector.
##' @return integer, length of x minus the number of NAs in x.
Expand Down
2 changes: 1 addition & 1 deletion R/outliers.R
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
##' @details Takes a numeric vector, x, and returns a corresponding
##' logical vector the same length as x. Values of TRUE in return
##' vector indicate corresponding value in x may be an
##' outlier. Handy for use with dplyr::mutate().
##' outlier. Handy for use with \code{dplyr::mutate()}.
##'
##' If method is boxplot, then values more than \code{coef} times
##' the IQR above the 3rd quartile, or more than \code{coef} times
Expand Down
8 changes: 7 additions & 1 deletion docs/reference/index.html

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

2 changes: 1 addition & 1 deletion docs/reference/invDnorm.html

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

2 changes: 1 addition & 1 deletion docs/reference/isNumeral.html

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

190 changes: 190 additions & 0 deletions docs/reference/latinList.html

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

6 changes: 3 additions & 3 deletions docs/reference/levelOrder.html

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

Binary file modified docs/reference/mahalDistC-7.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
26 changes: 13 additions & 13 deletions docs/reference/mahalDistC.html

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

Binary file modified docs/reference/mahalDistP-2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 5c77771

Please sign in to comment.