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

DCMS and stat_to_pvalue subsetting issue #19

Open
Wetermolen opened this issue Oct 4, 2022 · 4 comments
Open

DCMS and stat_to_pvalue subsetting issue #19

Wetermolen opened this issue Oct 4, 2022 · 4 comments

Comments

@Wetermolen
Copy link

I was using the stat_to_pvalue and DCMS functions of MINOTAUR and an error came up that hadn’t existed previously when I ran the program back in august. If I try to use a dataframe with more than one column I get this error repeatedly:

dfp_left<-stat_to_pvalue(dfv, column.nums = 1:ncol(dfv), subset = 1:nrow(dfv),
two.tailed = rep(FALSE, length(column.nums)), right.tailed = rep(FALSE,
length(column.nums)))

Error in if (class(try(df.vars[subset, ], silent = TRUE)) == "try-error") stop("subset must contain valid indexes for choosing rows in dfv") :
the condition has length > 1

it works fine when I run only one column but I need to use multiple columns in DCMS, appreciate the help.

@shelfey
Copy link

shelfey commented Jun 19, 2023

Hi, Did you solve it ? I try once again and again..........

@Wetermolen
Copy link
Author

Wetermolen commented Jun 19, 2023 via email

@shelfey
Copy link

shelfey commented Jun 19, 2023

Oh my god, thank you so much........

@Wetermolen
Copy link
Author

Wetermolen commented Jun 19, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
@shelfey @Wetermolen and others