https://github.com/jeffreysarnoff/imputationalgamest.jl
last observation carry forward
https://github.com/jeffreysarnoff/imputationalgamest.jl
imputation locf missing-data nans
Last synced: about 1 month ago
JSON representation
last observation carry forward
- Host: GitHub
- URL: https://github.com/jeffreysarnoff/imputationalgamest.jl
- Owner: JeffreySarnoff
- License: mit
- Created: 2017-06-08T04:16:54.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-04-23T02:21:18.000Z (over 7 years ago)
- Last Synced: 2025-07-22T05:49:28.104Z (3 months ago)
- Topics: imputation, locf, missing-data, nans
- Language: Julia
- Size: 86.9 KB
- Stars: 0
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ImputationAlgamest.jl
## overwrites `missing` or `nothing` or `NaN` values
- last observation carry forward (locf)### supports 1D, 2D, 3D, 4D, 5D, 6D AbstractArrays
#### Copyright © 2017-2018 by Jeffrey Sarnoff. Released under the MIT License.
-----
[](https://travis-ci.org/JeffreySarnoff/FillValues.jl)
-----# exports
locf
# use
```julia
using ImputationAlgamestlocf([1.0, missing, 2.0, missing, missing, 3.0])
# [1.0, 1.0, 2.0, 2.0, 2.0, 3.0]locf([1.0, missing, 2.0, missing, missing])
# [1.0, 1.0, 2.0, 2.0, 2.0]locf([missing, 2.0, missing, missing, 3.0])
# [missing, 1.0, 2.0, 2.0, 2.0, 3.0]# locf(vec, false)
# [NaN, 1.0, 1.0, 2.0, 2.0, 2.0]
```