NESCent / MINOTAUR

Multivariate vIsualisatioN and OuTlier Analysis Using R
13 stars 6 forks source link

DCMS and stat_to_pvalue subsetting issue #19

Open Wetermolen opened 2 years ago

Wetermolen commented 2 years ago

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 commented 1 year ago

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

Wetermolen commented 1 year ago

Try an older version of R (like 4.2.1)

On Mon, 19 Jun 2023 at 11:47 AM shelfey @.***> wrote:

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

— Reply to this email directly, view it on GitHub https://github.com/NESCent/MINOTAUR/issues/19#issuecomment-1596769181, or unsubscribe https://github.com/notifications/unsubscribe-auth/A3NQWV7ABIEL4TLN23FSMU3XMAG2RANCNFSM6AAAAAAQ4TNSHE . You are receiving this because you authored the thread.Message ID: @.***>

shelfey commented 1 year ago

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

Wetermolen commented 1 year ago

My pleasure, im not sure why this is an issue with newer versions of R and it would be nice if the devs chime in on whether this workaround is okay or not

On Mon, 19 Jun 2023 at 11:51 AM shelfey @.***> wrote:

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

— Reply to this email directly, view it on GitHub https://github.com/NESCent/MINOTAUR/issues/19#issuecomment-1596775081, or unsubscribe https://github.com/notifications/unsubscribe-auth/A3NQWV4WPH7ID4Q32TOWREDXMAHIRANCNFSM6AAAAAAQ4TNSHE . You are receiving this because you authored the thread.Message ID: @.***>