I have been trying for over an hour to get a question through on this forum and whatever filter you're using absolutely will not let me do it. I have read through your posting guide. I have looked at the tutorial post. Are there a step-by-step instruction on how to formulate a post on your forum that will get past your inscrutable filters? I'm not an expert R user, and it feels like you expect somebody to be one in order to use your forum. I have a question about pcaMethods, it is giving me an error that it is not available for my version of R, but I have the latest version so I don't understand why it won't load. I've tried to post this question with my code and output included but I cannot get it to post with the code attached.
How about relaxing and show what error you encounter? Bioconductor and especially this forum here is driven on a volunteer basis, so please dampen your tone a bit, would you? I understand errors can be frustrating, but please lets not blame that on the people here.
Yes apologies, I'm not trying to blame people here for errors. I could not get my question to post however, I assume for syntax reasons but I'm really not sure and there's no indication or guidance to point to what exactly is not passing through the forum's filter. I do not have these problems on, for instance, SAS forums.
Below is the question. I could not get the associated code and output to pass through the filters.
I am trying to run a PCA on a deep-sea chemistry dataset with non-random missing data. Because of the nature of the data, there are virtually no lines where every variable is available. I have been using chatGPT to help me find a version of PCA that could handle this type of dataset and it recommended using the pcaMethods package from Bioconducter but I am having a really hard time trying to install and run it.
I keep getting an error that "package 'pcaMethods' is not available for this version of R." but I have the most current version (4.3.2 , Rstudio 2023.12.1 Build 402). Below is my code and output, any help would be much appreciated!
It's not clear what filters you are talking about. When you start to post a new question, it literally says 'Type your question here' and 'copy/paste your code here'. In your last comment you say you post code, but do not. Here is some code
Oh, and
Thank you for your help. I was able to use the code provided above to troubleshoot my issue and got the pcaMethods package to work on my computer. I was also able to produce a PCA, but I am now having trouble visualizing the eigenvalues to determine how successful the PCA was. I am using code to produce a "screeplot" that I got from chatGPT, but it doesn't seem to work with this package. Please see the code below. Any suggestions on how to produce a screeplot or a different way to visualize the eigenvalues?
Thank you.
> screeplot(pca_result, type = "line", main = "Scree Plot") Error in x$sdev : $ operator not defined for this S4 class
'> sessionInfo() R version 4.3.2 (2023-10-31 ucrt) Platform: x86_64-w64-mingw32/x64 (64-bit) Running under: Windows 10 x64 (build 19045)
Matrix products: default
locale: [1] LC_COLLATE=English_United States.utf8 LC_CTYPE=English_United States.utf8 LC_MONETARY=English_United States.utf8 LC_NUMERIC=C
[5] LC_TIME=English_United States.utf8
time zone: America/Los_Angeles tzcode source: internal
attached base packages: [1] stats graphics grDevices utils datasets methods base
other attached packages: [1] BiocManager_1.30.22 pcaMethods_1.94.0 Biobase_2.62.0 BiocGenerics_0.48.1
loaded via a namespace (and not attached): [1] compiler_4.3.2 cli_3.6.2 tools_4.3.2 Rcpp_1.0.12 cellranger_1.1.0 readxl_1.4.3'