You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: R/datplot_utility.R
+13-11Lines changed: 13 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,8 @@
1
-
#' @title Generate stepsize
1
+
#' @title Determine stepsize
2
2
#'
3
-
#' @description todo
3
+
#' @description Determines stepsize by selecting the absolute minimum value between the upper and lower end of all dating ranges.
4
4
#'
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.
#' @title Calculate the weights for each dated object
40
41
#'
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.
45
45
#'
46
46
#' @param DAT_min a vector containing the minimum date (int/num) of each object
47
47
#' @param DAT_max a vector containing the maximum date (int/num) of each object
48
48
#'
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
#' displayed as negative values while dates CE are positive values. Ignoring this will cause problems
100
102
#' in any case.
101
103
#'
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.
104
106
#'
105
107
#' @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)
0 commit comments