-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
Dev
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
strat_to_time.numeric = function(obj, x, ...){ | ||
|
||
#' | ||
#' @export | ||
#' | ||
#' @title transform numeric vectors from height to time domain | ||
#' | ||
#' @description | ||
#' This function transforms numeric vectors from the stratigrahpic to the time domain | ||
#' Fundamentally a wrapper around get_time for consistent syntax | ||
#' | ||
#' | ||
#' @param obj a numeric vector representing stratigraphic positions. | ||
#' @param x an _adm_ object | ||
#' @param ... options passed to `get_time` | ||
#' | ||
#' @seealso [time_to_strat.numeric()] for the transformation from time to height domain, [get_time()] for the underlying procedure, [time_to_strat()] for the higher level function, [strat_to_time.list()] and [strat_to_time.phylo()] for the transformation of lists and phylogenetic trees. | ||
#' | ||
#' @returns A numeric vector with times of deposition of the entries in `obj` | ||
#' | ||
#' @examples | ||
#' # see vignette("admtools") for an example | ||
#' | ||
|
||
t = get_time(x, obj, ...) | ||
|
||
return(t) | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
time_to_strat.numeric = function(obj, x, ...){ | ||
#' | ||
#' @export | ||
#' | ||
#' @title transform vectors from time to height domain | ||
#' | ||
#' @description | ||
#' This function transforms numeric vectors from the time to the stratigrahpic domain | ||
#' Fundamentally a wrapper around get_height for consistent syntax | ||
#' | ||
#' | ||
#' @param obj a numeric vector, interpreted as timing of events | ||
#' @param x an _adm_ object | ||
#' @param ... options passed to _get_height_ | ||
#' | ||
#' @seealso [strat_to_time.numeric()] for the transformation from height to time domain, [time_to_strat.phylo()] and [time_to_strat.list()] for transformations of phylogenetic trees and lists. See [get_height()] for the underlying procedure. | ||
#' | ||
#' @returns a numberic vector - stratigraphic position of the events | ||
#' | ||
#' @examples | ||
#' # see vignette("admtools") for an example | ||
#' | ||
|
||
|
||
h = get_height(x, t = obj, ...) | ||
return(h) | ||
|
||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.