Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cor_matrix: Error in t.default(.) : argument is not a matrix #75

Open
Deleetdk opened this issue Apr 16, 2017 · 0 comments
Open

cor_matrix: Error in t.default(.) : argument is not a matrix #75

Deleetdk opened this issue Apr 16, 2017 · 0 comments
Assignees
Labels

Comments

@Deleetdk
Copy link
Owner

Somehow the complex weights gets triggered without it being the case. Does not always happen, e.g. testing calls work fine:

cor_matrix(iris, weights = "Petal.Width") #weights from name
cor_matrix(iris, weights = 1:150) #weights from vector

Error + stack.

Error in t.default(.) : argument is not a matrix
> traceback()
13: t.default(.)
12: t(.)
11: function_list[[k]](value)
10: withVisible(function_list[[k]](value))
9: freduce(value, `_function_list`)
8: `_fseq`(`_lhs`)
7: eval(expr, envir, enclos)
6: eval(quote(`_fseq`(`_lhs`)), env, env)
5: withVisible(eval(quote(`_fseq`(`_lhs`)), env, env))
4: (weights[c(row, col)]) %>% t
3: nrow(x)
2: psych::harmonic.mean((weights[c(row, col)]) %>% t)
1: cor_matrix(americas_divisions[c("ACHaverage", "S_rescaled")], 
       CI = 0.95, weights = "sqrt_pop")
@Deleetdk Deleetdk added the bug label Apr 16, 2017
@Deleetdk Deleetdk self-assigned this Apr 16, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant