Skip to content

Commit 18cce7e

Browse files
committed
some corrections on documentation texts
1 parent 2b44629 commit 18cce7e

1 file changed

Lines changed: 13 additions & 11 deletions

File tree

R/datplot_utility.R

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
#' @title Generate stepsize
1+
#' @title Determine stepsize
22
#'
3-
#' @description todo
3+
#' @description Determines stepsize by selecting the absolute minimum value between the upper and lower end of all dating ranges.
44
#'
5-
#' @param DAT_mat todo
5+
#' @param DAT_mat a matrix as prepared by datsteps(), resp. a matrix witch columns "datmin" and "datmax" containing numeric/integer value of the dating ranges.
66
#'
77
#' @return stepsize
88
#'
@@ -21,7 +21,8 @@ generate.stepsize <- function(DAT_mat) {
2121
#' @title Switch values where dating is in wrong order
2222
#'
2323
#' @description Requires a dataframe with 4 variables: ID (ideally factor), group (ideally factor),
24-
#' minimum date (int/numeric) and maximum date (int/numeric).
24+
#' minimum date (int/numeric) and maximum date (int/numeric) and DAT_err as a vector of indizes where
25+
#' dating is in wrong order.
2526
#'
2627
#' @param DAT_df a dataframe with 4 variable: ID, group, minimum date (int/num) maximum date (int/num)
2728
#' @param DAT_err a vector containing the indizes of the dates which are in wrong order
@@ -38,15 +39,16 @@ switch.dating <- function(DAT_df, DAT_err) {
3839

3940
#' @title Calculate the weights for each dated object
4041
#'
41-
#' @description Requires a dataframe with 4 variables: ID (ideally factor), group (ideally factor),
42-
#' minimum date (int/numeric) and maximum date (int/numeric). It's expected that dates BCE are
43-
#' displayed as negative values while dates CE are positive values. Ignoring this will cause problems
44-
#' in any case.
42+
#' @description Calculates the weights from two vectors of minimum and maximum dating for each object.
43+
#' Returns a dataframe with the weight in the first column and FALSE in the second if two rows have the
44+
#' same value in both min and max dating.
4545
#'
4646
#' @param DAT_min a vector containing the minimum date (int/num) of each object
4747
#' @param DAT_max a vector containing the maximum date (int/num) of each object
4848
#'
49-
#' @return the 'weight' value for the datsteps-dataframe, that is a quantification of how well the object is dated (lesser value means object is dated to larger timespans, i.e. with less confidence)
49+
#' @return the 'weight' value for the datsteps-dataframe, that is a quantification of
50+
#' how well the object is dated (lesser value means object is dated to larger
51+
#' timespans, i.e. with less confidence)
5052
#'
5153
#' @export get.weights
5254

@@ -99,8 +101,8 @@ calculate.outputrows <- function(DAT_mat, stepsize) {
99101
#' displayed as negative values while dates CE are positive values. Ignoring this will cause problems
100102
#' in any case.
101103
#'
102-
#' @param DAT_mat a dataframe with 4 variable: ID, group, minimum date (int/num) maximum date (int/num), _must_ be in this order, colnames are irrelevant; each object _must_ be one row.
103-
#' @param stepsize defaults to 5. Number of years that should be used as an interval for creating dating steps.
104+
#' @param DAT_mat a matrix with 3 variables: ID, group, minimum date (int/num) maximum date (int/num), _must_ be in this order, colnames are irrelevant; each object _must_ be one row.
105+
#' @param stepsize Number of years that should be used as an interval for creating dating steps.
104106
#'
105107
#' @return a larger dataframe with a number of steps for each object as well as a 'weight' value, that is a quantification of how well the object is dated (lesser value means object is dated to larger timespans, i.e. with less confidence)
106108
#'

0 commit comments

Comments
 (0)