Skip to content

Issues applying the package to my data.. #2

@amina-uwa

Description

@amina-uwa

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions