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

Issues applying the package to my data.. #2

Open
amina-uwa opened this issue Aug 28, 2020 · 0 comments
Open

Issues applying the package to my data.. #2

amina-uwa opened this issue Aug 28, 2020 · 0 comments

Comments

@amina-uwa
Copy link

Hello Priyanga,
Great work! I have been trying to understand how to implement your method in my dataset. I have a ts of water quality data and I am running into issues mainly because I am not sure how the code runs. Would you be able to guide me on how to prepare the anomalous_stream data? I have a number of variables measured every 10 mins. The goal I have from using your code is to be able to clean my data reliably before I use them for further analysis. There is heaps of ways online, but your method seem to be robust so I thought why not try it on my dateset and see how it goes.

Here is the code I had started with and I run into issues with.

data <- as_tibble(anomalous_stream ) %>%
gather() %>%
mutate(key = rep((1:f), each = t), Time = rep(1:t, f)) %>%
setNames(c("Variable", "Value", "Time "))

I have set my anomalous_stream data to look like this.

Data.txt

Below is the error message I got.
Warning message:
attributes are not identical across measure variables;
they will be dropped

And below is the plot I got. My gut feeling says that it has to do with the time format, but I want to confirm from you how to go about this. The plot is for my full dataset which I can not share here. But to give you an idea its what to expect I already added the shape of the data above. Its for DO data in an estuary.

plot

One more questions is regarding removal/ treatment of outliers. How is the done, and does this tool help remove such outliers or not? If yes could you please guide me on the sequence of scripts to be used to implement this?

Thank you and looking forward to hearing from you!

Amina

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

1 participant