Skip to content

Commit ddddcd3

Browse files
committed
Added more detailed documentation for the lists returned by create_SAR and create_SpAR
1 parent 0599751 commit ddddcd3

File tree

4 files changed

+36
-16
lines changed

4 files changed

+36
-16
lines changed

R/create_SAR.R

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,14 @@
1515
#' selection. Default: 1
1616
#' @param visualize (boolean) Whether the plot should be displayed when the
1717
#' function is called. Default: FALSE
18-
#' @return A list of 5 including: the summary output, the regression
19-
#' object for the best-fit model, the aggregated dataframe used to create the
20-
#' plot, the AIC scores used in model selection,
21-
#' and all of the models created in model selection
18+
#' @return A list of class SAR with 5 items including:
19+
#' * `summary`: the summary output
20+
#' * `segObj` or `linObj`: the regression object (`segObj` when segmented,
21+
#' `linObj` when linear)
22+
#' * `aggDF`: the aggregated dataframe used to create the plot
23+
#' * `AICscores`: the AIC scores generated during model selection
24+
#' * `AllModels`: a list of models created in model selection, labeled by
25+
#' number of breakpoints
2226
#' @examples
2327
#' # The GBIF key for the Anolis genus is 8782549
2428
#' # Read in example dataset filtered from:

R/create_SpAR.R

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,14 @@
1919
#' selection. Default: 1
2020
#' @param visualize (boolean) Whether the plot should be displayed when the
2121
#' function is called. Default: FALSE
22-
#' @return A list of 5 including: the summary output, the regression
23-
#' object for the best-fit model, the aggregated dataframe used to create the
24-
#' plot, the AIC scores used in model selection,
25-
#' and all of the models created in model selection
22+
#' @return A list of class SAR with 5 items including:
23+
#' * `summary`: the summary output
24+
#' * `segObj` or `linObj`: the regression object (`segObj` when segmented,
25+
#' `linObj` when linear)
26+
#' * `aggDF`: the aggregated dataframe used to create the plot
27+
#' * `AICscores`: the AIC scores generated during model selection
28+
#' * `AllModels`: a list of models created in model selection, labeled by
29+
#' number of breakpoints
2630
#' @examples
2731
#' # The GBIF key for the Anolis genus is 8782549
2832
#' # Read in example dataset filtered from:

man/create_SAR.Rd

Lines changed: 10 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/create_SpAR.Rd

Lines changed: 10 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)