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

Error in na_locf(x, option, na.remaining, maxgap) : Input data has only NAs. Input data needs at least 1 non-NA data point for applying na_locf #169

Open
mokajee opened this issue Jul 28, 2020 · 0 comments

Comments

@mokajee
Copy link

mokajee commented Jul 28, 2020

Hi,

I am trying to use the calc_allHIT on modelled flow data in South Africa. This seems to run fine on some sets of data (stations), but gives the following error on others:

Error in na_locf(x, option, na.remaining, maxgap) :
Input data has only NAs. Input data needs at least 1 non-NA data point for applying na_locf

I have wracked my brain for almost a month now trying to figure out why I keep getting this error.

I am attaching my simplified R script and two data sheets (one that works and one that does not). I would greatly appreciate any insight into what may be causing this error.

Kind regards,

Mohammed Kajee
University of Cape Town
[email protected]

Mohammed Kajee_Files.zip

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