Profile directory About Mobile apps
Log in Sign up
Pausal Živference @PausalZ@social.cleverlibre.org

Does base R just not have a forward fill function?

Dec 13, 2022, 16:27 · · 1 · 0 · 0
Dec 13, 2022, 17:52
Zane Billings @wzbillings@fediscience.org

@PausalZ there are some workarounds (e.g. https://stackoverflow.com/questions/57682468/how-to-forward-fill-from-numeric-column-based-on-condition-of-logical-column) but I don't think so. There is one in zoo (https://www.rdocumentation.org/packages/zoo/versions/1.8-11/topics/na.locf) and one in tidyr (https://tidyr.tidyverse.org/reference/fill.html) though.

1
Dec 13, 2022, 20:19
Pausal Živference @PausalZ@social.cleverlibre.org

@wzbillings thanks!

0
Sign in to participate in the conversation
CleverLibre Social

CleverLibre Social is an inclusive social instance for open discussion, learning, and community.
All cultures welcome.
Hate speech and harassment strictly forbidden.

Resources

  • Terms of service
  • Privacy policy

Developers

  • Documentation
  • API

What is Mastodon?

social.cleverlibre.org

  • About
  • v3.5.19-qoto

More…

  • Source code
  • Mobile apps
v3.5.19-qoto · Privacy policy