-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #48 from philsf/release-0.6.2
Release 0.6.2
- Loading branch information
Showing
30 changed files
with
404 additions
and
480 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,12 @@ | ||
Package: philsfmisc | ||
Type: Package | ||
Title: philsf's miscellaneous R functions | ||
Version: 0.6.1 | ||
Version: 0.6.2 | ||
Authors@R: person("Felipe", "Figueiredo", email = "[email protected]", role = c("aut", "cre")) | ||
Description: Miscellaneous R functions for convenient data analyses. | ||
License: file LICENSE | ||
Encoding: UTF-8 | ||
LazyData: true | ||
URL: https://github.com/philsf/philsfmisc | ||
Depends: R (>= 3.3.0) | ||
RoxygenNote: 6.1.0 |
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,2 +1,16 @@ | ||
importFrom("stats", "qt", "sd") | ||
exportPattern("^[[:alpha:]]+") | ||
# Generated by roxygen2: do not edit by hand | ||
|
||
export(cv2logsd) | ||
export(cv2logvar) | ||
export(format.float) | ||
export(format.interval) | ||
export(format.pct) | ||
export(geocv) | ||
export(geomean) | ||
export(geosd) | ||
export(is.within) | ||
export(logsd2cv) | ||
export(logvar2cv) | ||
export(predint) | ||
importFrom(stats,qt) | ||
importFrom(stats,sd) |
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
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
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,3 +1,21 @@ | ||
#' Compute the "geometric standard deviation" of data | ||
#' | ||
#' @description The "geometric standard deviation" is not as well-defined as the geometric mean. | ||
#' This function returns the analogous concept of \code{sd} in the same manner of the geometric mean. | ||
#' | ||
#' @param x A numeric value, vector or list. | ||
#' | ||
#' @return The anti-log of the \code{sd} of log-transformed data `x`. | ||
#' Base 10 is assumed as a fixed default in this version. | ||
#' | ||
#' @examples | ||
#' d <- c(10,100,1000) | ||
#' geosd(d) | ||
#' | ||
#' @author Felipe Figueiredo | ||
#' @export | ||
#' @importFrom stats sd | ||
|
||
geosd <- function(x) { | ||
10^sd(log10(x)) | ||
} |
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,3 +1,19 @@ | ||
#' Convert the log-transformed standard deviation from a log-normal variable to the CV. | ||
#' | ||
#' @description | ||
#' | ||
#' @param x A numeric value, vector or list. | ||
#' | ||
#' @return Returns the geometric CV (as percentage) | ||
#' | ||
#' @examples | ||
#' d <- c(10,100,1000) | ||
#' sd(log10(d)) # 1 | ||
#' logsd2cv(1) # 1413.21\% | ||
#' | ||
#' @author Felipe Figueiredo | ||
#' @export | ||
|
||
logsd2cv <- function(x) { | ||
sqrt(exp((log(10)^2)*x^2) - 1)*100 | ||
} |
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,3 +1,19 @@ | ||
#' Convert the log-transformed variance from a log-normal variable to the CV. | ||
#' | ||
#' @description | ||
#' | ||
#' @param x A numeric value, vector or list. | ||
#' | ||
#' @return Returns the geometric CV (as percentage) | ||
#' | ||
#' @examples | ||
#' d <- c(10,100,1000) | ||
#' var(log10(d)) # 1 | ||
#' logvar2cv(1) # 1413.21\% | ||
#' | ||
#' @author Felipe Figueiredo | ||
#' @export | ||
|
||
logvar2cv <- function(x) { | ||
sqrt(exp((log(10)^2)*x) - 1)*100 | ||
} |
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 modified
BIN
+1.51 KB
(110%)
inst/rmarkdown/templates/Relatorio/skeleton/misc/style.docx
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
Oops, something went wrong.