Closed jlhanson5 closed 2 years ago
Looks like it was an issue when I transposed the data... Previously, I simply did:
new_df<-t(df)
but that created issues, so I had to do:
new_df <- data.frame(t(df[-1]))
colnames(new_df) <- df[, 1]
Apologies for my oversight on that!
Hello all,
I was trying to cluster a 642x6 (participants x features) data frame and kept running into an issue with M3C. Here's my code and error.
Have others run into?
Here's my R sessioninfo()
Matrix products: default LAPACK: /Library/Frameworks/R.framework/Versions/4.1/Resources/lib/libRlapack.dylib
locale: [1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8
attached base packages: [1] stats graphics grDevices utils datasets methods base
other attached packages: [1] M3C_1.16.0
loaded via a namespace (and not attached): [1] reticulate_1.24 modeltools_0.2-23 tidyselect_1.1.2 purrr_0.3.4 listenv_0.8.0
[6] lattice_0.20-45 flexclust_1.4-0 colorspace_2.0-3 vctrs_0.3.8 generics_0.1.2
[11] doSNOW_1.0.20 snow_0.4-4 stats4_4.1.0 utf8_1.2.2 rlang_1.0.2
[16] pillar_1.7.0 glue_1.6.2 DBI_1.1.2 foreach_1.5.2 lifecycle_1.0.1
[21] umap_0.2.7.0 munsell_0.5.0 gtable_0.3.0 rtemis_0.8.1 future_1.24.0
[26] codetools_0.2-18 doParallel_1.0.17 parallel_4.1.0 class_7.3-20 fansi_1.0.2
[31] Rcpp_1.0.8.3 corpcor_1.6.10 openssl_2.0.0 scales_1.1.1 jsonlite_1.8.0
[36] parallelly_1.30.0 RSpectra_0.16-0 ggplot2_3.3.5 askpass_1.1 png_0.1-7
[41] digest_0.6.29 Rtsne_0.15 dplyr_1.0.8 grid_4.1.0 cli_3.2.0
[46] tools_4.1.0 magrittr_2.0.2 tibble_3.1.6 cluster_2.1.2 crayon_1.5.0
[51] pkgconfig_2.0.3 ellipsis_0.3.2 Matrix_1.4-0 data.table_1.14.2 matrixcalc_1.0-5 [56] assertthat_0.2.1 iterators_1.0.14 R6_2.5.1 globals_0.14.0 compiler_4.1.0
Any suggestions are much appreciated!
Thanks much in advance, Jamie.