Skip to content

Commit

Permalink
lintr
Browse files Browse the repository at this point in the history
  • Loading branch information
strengejacke committed Nov 27, 2023
1 parent 5a099c8 commit 0a2f9af
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/to_numeric.R
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ to_numeric.data.frame <- function(x,
return(x)
}

attr <- attributes(x)
df_attr <- attributes(x)

# evaluate arguments
select <- .select_nse(select,
Expand Down Expand Up @@ -141,7 +141,7 @@ to_numeric.data.frame <- function(x,
}

# add back custom attributes
out <- .replace_attrs(out, attr)
out <- .replace_attrs(out, df_attr)
out
}

Expand Down

0 comments on commit 0a2f9af

Please sign in to comment.