Skip to content

Commit

Permalink
test on devs
Browse files Browse the repository at this point in the history
  • Loading branch information
strengejacke committed May 26, 2024
1 parent d641db4 commit 8bfbf8d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Type: Package
Package: correlation
Title: Methods for Correlation Analysis
Version: 0.8.4.2
Version: 0.8.4.3
Authors@R:
c(person(given = "Dominique",
family = "Makowski",
Expand Down Expand Up @@ -95,4 +95,4 @@ Config/Needs/website:
rstudio/bslib,
r-lib/pkgdown,
easystats/easystatstemplate
Remotes: easystats/insight
Remotes: easystats/insight, easystats/datawizard, easystats/parameters, easystats/bayestestR
12 changes: 6 additions & 6 deletions R/methods.easycorrelation.R
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ summary.easycorrelation <- function(object,
redundant <- FALSE
}

frame <- .get_matrix(object, square = redundant)
cormatrix <- .get_matrix(object, square = redundant)

# Add redundant
if (redundant) {
Expand All @@ -30,11 +30,11 @@ summary.easycorrelation <- function(object,
}
}

out <- .create_matrix(frame, object, column = target, redundant = redundant)
out <- .create_matrix(cormatrix, object, column = target, redundant = redundant)

# Fill attributes
for (i in names(object)[!names(object) %in% c("Group", "Parameter1", "Parameter2", target)]) {
attri <- .create_matrix(frame, object, column = i, redundant = redundant)
attri <- .create_matrix(cormatrix, object, column = i, redundant = redundant)
attr(out, i) <- attri
}

Expand Down Expand Up @@ -120,7 +120,7 @@ as.list.easycorrelation <- function(x, cols = NULL, redundant = FALSE, ...) {
#' @export
standardize_names.easycorrelation <- function(data, ...) {
ori <- data
names(data)[names(data) == datawizard::data_find(data, select = "(rho|tau)", regex = TRUE, verbose = FALSE)] <- "r"
names(data)[names(data) == datawizard::extract_column_names(data, select = "(rho|tau)", regex = TRUE, verbose = FALSE)] <- "r"

Check warning on line 123 in R/methods.easycorrelation.R

View workflow job for this annotation

GitHub Actions / lint-changed-files / lint-changed-files

file=R/methods.easycorrelation.R,line=123,col=121,[line_length_linter] Lines should not be more than 120 characters. This line is 128 characters.
data <- insight::standardize_names(as.data.frame(data), ...)
class(data) <- class(ori)
data
Expand All @@ -134,8 +134,8 @@ standardize_names.easycorrelation <- function(data, ...) {
if ("Group" %in% names(object)) {
out <- data.frame()
for (g in unique(object$Group)) {
data <- object[object$Group == g, ]
m <- .fill_matrix(frame, data, column = column, redundant = redundant)
my_data <- object[object$Group == g, ]
m <- .fill_matrix(frame, my_data, column = column, redundant = redundant)
m$Group <- g
out <- rbind(out, m)
}
Expand Down

0 comments on commit 8bfbf8d

Please sign in to comment.