-
Notifications
You must be signed in to change notification settings - Fork 7
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
id should be factor, not a character #3
Comments
It's not specified in the tutorial that this should be character, if it is loaded in the csv as integer the load_dam2 complains.
|
Hi, a collaborator is having the same problem. But I don't get how to go around it. How do I need to save the monitor file? This is probably because the pass-through excel to process (crop) the data, right? |
hi, can she/he send the code they are using/a sample file? cheers |
With the sample files, it works perfectly. It doesn't work with their files, but they look really similar! |
Could somebody please explain why this error occurs, and how to correct the problem. The first few times using Rethomics, I did not receive this error, but now I am even with the files that originally did not get the error |
hi @NicoleStephens96, I probably have time to look into it this week. Can you send as much detail as possible regarding your code and the errors you get (i.e. what line of code raises the error). Also, If you can send me your metadata file it could help me a lot :), thanks :) |
Hi Quinten,
I appreciate this. I’m not sure why I am receiving the following error when trying to load. This is the same error I received when trying to practice with the practice data.
Error in `[.data.table`(q, , .(regions = list(region_id)), by = c("path", :
column or expression 1 of 'by' or 'keyby' is type list. Do not quote column names. Usage: DT[,sum(colC),by=list(colA,month(colB))]
The following is a folder with the metadata file and monitor text files.
‘
Thanks again,
Nicole
… On Nov 26, 2018, at 11:14 AM, Quentin Geissmann ***@***.***> wrote:
hi, I @NicoleStephens96 <https://github.com/NicoleStephens96> probably have time to look into it this week. Can you send as much detail as possible regarding your code and the errors you get (i.e. what line of code raises the error). Also, If you can send me your metadata file it could help me a lot :), thanks :)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub <#3 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/ArQxkrPg6ACjRbvNoTg4e00so4do32Fpks5uzCF1gaJpZM4O-Y6G>.
|
hey after which line of code do you get the error, also which practice file/tutorial are you using :)? |
I am getting this error after the
Dt<-load_dam(metadata) code. Also I used the data under DAM2 in practice “getting the data”
Thanks!
Nicole
…Sent from my iPhone
On Nov 26, 2018, at 2:08 PM, Quentin Geissmann ***@***.***> wrote:
hey after which line of code do you get the error, also which practice file/tutorial are you using :)?
thanks
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
I think the error is coming from excel to csv conversion. When metadata is created in excel and the column region_id is interpreted as a integer (number) then in the csv is saved as a number. However rethomics function
To permanently solve this issue I would recommend to check the type of the column and if it is an integer transform it to character (if needed). |
Thanks @pepelisu! |
My understanding is that the path to the file that is generated during the linking is a list in your platform and a character in mine.
and
and paste the results for both :) |
I figured out the problem last night on my end and maybe this can help anyone else getting the same error:) I was looking for differences between the data I got working and data I could not get working. What I found was, for some reason, extra rows were added to the metadata that contained blanks and N/A. 94: Monitor6.txt 2018-11-10 00:00:00 2018-11-16 00:00:00 6 30 M Sal 51 I simply deleted the extra rows using the code below and was able to link and load the data without a problem. metadata<- metadata[-c(97,98,99)] I appreciate everybody's help! |
thanks, that really helps! (also you can use |
They were just empty added rows
… On Nov 30, 2018, at 12:47 PM, Quentin Geissmann ***@***.***> wrote:
thanks, that really helps! (also you can use metadata <- na.omit(metadata)). So were they just empty rows, or just missing values?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub <#3 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/ArQxkowyDGDnrqbQQUmrU7x8Oaebz-bpks5u0X1SgaJpZM4O-Y6G>.
|
so excel seems to keep gosh rows that are completely empty. I will add a check to remove all empty rows from metadata |
@NicoleStephens96 can you upload an excel-generated csv with empty rows in the end for me -- so I can see how they are exactly? Thanks |
In my case, the problem is that the metadata has two exactly same lines. In normal condition the result should be like this using the tutorial data:
|
The %>% unique () command worked for me! Thank you! |
same issue as rethomics/scopr#2
The text was updated successfully, but these errors were encountered: