DOI-USGS / DOI-USGS/EflowStats

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

Open
#169 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
R
Stars
36
Forks
24
PR merge metrics
No merged PRs in 30d

Description

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
kjxmoh007@myuct.ac.za

[Mohammed Kajee_Files.zip](https://github.com/USGS-R/EflowStats/files/4991614/Mohammed.Kajee_Files.zip)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.