Skip to content

potential bug when using log in mutate #141

@rgreminger

Description

@rgreminger

Hi, it seems like there might be a bug when using @mutate to create a new variable as the log of another one. Below is a simple example for such a case, and the error it produces in the latest release v0.16.5.

using TidierData

df = DataFrame(a = 'a':'e', b = 1.0:5.0);

df = @chain df begin
    @mutate(log_b = log(b)) 
end 

# Error it produces: 
ERROR: MethodError: objects of type Base.RefValue{Bool} are not callable
The object of type `Base.RefValue{Bool}` exists, but no method is defined for this combination of argument types when trying to treat it as a callable object.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions