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

eem_read not creating eemlist class objects #73

Open
JMahaux opened this issue Oct 2, 2023 · 5 comments
Open

eem_read not creating eemlist class objects #73

JMahaux opened this issue Oct 2, 2023 · 5 comments

Comments

@JMahaux
Copy link

JMahaux commented Oct 2, 2023

Hi Philippe,

I'm having an issue with the eem_read function in that it's not creating objects of class eemlist. I have also tried using the "eem" function to construct the object but keep getting an error saying R can't find the function "eem" (along with some of the other eemR functions, like "summary.eemlist").
I'm importing data from an aqualog and am able to create a list object using eem_read, but not an eemlist, which seems to be giving me trouble when I try to do blank subtractions and raman normalisation since I believe the function is not recognizing my inputs as valid - using eem_remove_blank with the eem and blank lists returns "Error in if (is.na(blank)) { : the condition has length > 1"

The package is loaded correctly and the function shows up when I use "?eem" so I'm at a bit of a loss about what's going wrong.
I'm relatively new to R so it's entirely possible I've missed a crucial step somewhere, but any help here would be appreciated!

Thanks!

@PMassicotte
Copy link
Owner

Hi.

Are you able to run the examples provided in the package help?

@JMahaux
Copy link
Author

JMahaux commented Oct 2, 2023 via email

@PMassicotte
Copy link
Owner

If eem_read() works on your data, it should return an object of class eemlist. Your data should be organized (not mandatory, but will help for automatic correction) as this:

https://github.com/PMassicotte/eemR/tree/main/inst/extdata/cary

Is it how you have it organized?

@JMahaux
Copy link
Author

JMahaux commented Oct 3, 2023 via email

@PMassicotte
Copy link
Owner

Maybe some information for you here: https://pmassicotte.github.io/eemR/articles/introduction.html

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

2 participants