Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Negative new NAs #18

@NickCH-K

Description

@NickCH-K

Loving the package!

Very minor issue: when mutate is used to replace NA values with non-NA values, tidylog will report (-X new NA), where X is the number of values that were NA but no longer are.

It's still providing all the information it should, but the message is a little strange.

Example code:

library(tidyverse)
library(tidylog)
df <- tibble(a = NA,
                 b = rnorm(100)) %>%
  mutate(a=ifelse(b<0,1,a))

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