Skip to content

Commit

Permalink
remove superfluous ...
Browse files Browse the repository at this point in the history
  • Loading branch information
NiklasHohmann committed Aug 30, 2024
1 parent b2b6696 commit 19a8d61
Show file tree
Hide file tree
Showing 9 changed files with 19 additions and 29 deletions.
4 changes: 3 additions & 1 deletion NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,13 @@

* abstracted exctraction of tie points

* added utility functions for S3 class `sac`

# admtools 0.3.0

* removed dependency from `ape` package

* defined S3 class `timelist` and `stratlist` for data assiciated with time/height
* defined S3 class `timelist` and `stratlist` for data associated with time/height

* unified syntax for time-depth transformation

Expand Down
7 changes: 3 additions & 4 deletions R/max_heigth.R
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
max_height = function(x, ...){
max_height = function(x){
#' @export
#'
#' @title get highest stratigraphic tie point
#'
#' @param x age-depth model (adm) or sediment accumulation curve (sac)
#' @param ... other variables, ignored
#'
#' @returns number, stratigraphic position of the highest stratigraphic tie point
#'
Expand All @@ -13,13 +12,13 @@ max_height = function(x, ...){
UseMethod("max_height")
}

max_height.adm = function(x, ...){
max_height.adm = function(x){
#' @export
h = get_L_tp.adm(x)
return(max(h))
}

max_height.sac = function(x, ... ){
max_height.sac = function(x){
#' @export
#'
h = get_L_tp.sac(x)
Expand Down
7 changes: 3 additions & 4 deletions R/max_time.R
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
max_time = function(x, ...){
max_time = function(x){
#' @export
#'
#' @title last time tie point
#'
#' @param x age-depth model (adm) or sediment accumulation curve (sac)
#' @param ... other variables, ignored
#'
#' @returns number, last time tie point of the age-depth model/sediment accumulation curve
#'
Expand All @@ -13,14 +12,14 @@ max_time = function(x, ...){
UseMethod("max_time")
}

max_time.adm = function(x, ...){
max_time.adm = function(x){
#' @export
#'
t = get_T_tp.adm(x)
return(max(t))
}

max_time.sac = function(x, ...){
max_time.sac = function(x){
#' @export
t = get_T_tp.sac(x)
return(max(t))
Expand Down
7 changes: 3 additions & 4 deletions R/min_height.R
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
min_height = function(x, ...){
min_height = function(x){

#' @export
#'
#' @title get lowest stratigraphic tie point
#'
#' @param x an age-depth model (adm) or sediment accumulation curve (sac)
#' @param ... other parameters, ignored
#'
#' @returns number, stratigraphic position of lowest tie poin
#'
Expand All @@ -15,14 +14,14 @@ min_height = function(x, ...){

}

min_height.adm = function(x, ...){
min_height.adm = function(x){

#' @export
h = get_L_tp.adm(x)
return(min(h))
}

min_height.sac = function(x, ...){
min_height.sac = function(x){
#' @export
h = get_L_tp.sac(x)
return(min(h))
Expand Down
7 changes: 3 additions & 4 deletions R/min_time.R
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
min_time = function(x, ...){
min_time = function(x){
#' @export
#'
#' @title first time tie point
#'
#' @param x age-depth model (adm) or sediment accumulation curve (sac)
#' @param ... other variables, ignored
#'
#' @returns number, timing of first tie point of the age-depth model/sediment accumulation curve
#'
Expand All @@ -13,14 +12,14 @@ min_time = function(x, ...){
UseMethod("min_time")
}

min_time.adm = function(x, ...){
min_time.adm = function(x){
#' @export
#'
t = get_T_tp.adm(x)
return(min(t))
}

min_time.sac = function(x, ...){
min_time.sac = function(x){
#' @export
#'
t = get_T_tp.sac(x)
Expand Down
4 changes: 1 addition & 3 deletions man/max_height.Rd

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

4 changes: 1 addition & 3 deletions man/max_time.Rd

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

4 changes: 1 addition & 3 deletions man/min_height.Rd

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

4 changes: 1 addition & 3 deletions man/min_time.Rd

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

0 comments on commit 19a8d61

Please sign in to comment.