Skip to content

Commit

Permalink
renamed format function
Browse files Browse the repository at this point in the history
  • Loading branch information
TGuillerme committed Nov 13, 2024
1 parent 51b8a8d commit a8c9871
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion R/dispRity.R
Original file line number Diff line number Diff line change
Expand Up @@ -520,7 +520,7 @@ dispRity <- function(data, metric, dimensions = NULL, ..., between.groups = FALS
# } else {
# ## Is bootstrapped
# for(one_subset in subset_names) {
# disparity[[one_subset]] <- format.results.subsets(disparity[[one_subset]], disparities, one_subset)
# disparity[[one_subset]] <- .format.results.subsets(disparity[[one_subset]], disparities, one_subset)
# }
# }

Expand Down
2 changes: 1 addition & 1 deletion R/dispRity_fun.R
Original file line number Diff line number Diff line change
Expand Up @@ -672,7 +672,7 @@ combine.pairs <- function(pairs, lapply_data) {
# }

## Transform BAT results into dispRity format
format.results.subsets <- function(one_subset_lapply, disparities, one_subset) {
.format.results.subsets <- function(one_subset_lapply, disparities, one_subset) {
## Get the results
results <- disparities[grepl(one_subset, rownames(disparities)), , drop = FALSE]
rownames(results) <- unlist(lapply(strsplit(rownames(results), split = paste0(one_subset, ".")), `[[`, 2))
Expand Down

0 comments on commit a8c9871

Please sign in to comment.