Skip to content

Commit

Permalink
Update mutate_transmute.jl
Browse files Browse the repository at this point in the history
added missing backtick
  • Loading branch information
Karandeep Singh authored Aug 1, 2023
1 parent c8cdd24 commit d50aaee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/examples/UserGuide/mutate_transmute.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# The primary purpose of `@mutate()` is to either create a new column or to update an existing column *without* changing the number of rows in the dataset. If you only plan to select the mutated columns, then you can use `@transmute()` instead of `@mutate(). However, in `TidierData.jl`, `@select()` can also be used to create and select new columns (unlike R's `tidyverse`), which means that `@transmute()` is a redundant function in that it has the same functionality as `@select()`. `@transmute` is included in `TidierData.jl` for convenience but is not strictly required.
# The primary purpose of `@mutate()` is to either create a new column or to update an existing column *without* changing the number of rows in the dataset. If you only plan to select the mutated columns, then you can use `@transmute()` instead of `@mutate()`. However, in `TidierData.jl`, `@select()` can also be used to create and select new columns (unlike R's `tidyverse`), which means that `@transmute()` is a redundant function in that it has the same functionality as `@select()`. `@transmute` is included in `TidierData.jl` for convenience but is not strictly required.

using TidierData
using RDatasets
Expand Down Expand Up @@ -58,4 +58,4 @@ end
@filter(!ismissing(Budget))
@transmute(Title = Title, Budget = Budget/1_000_000)
@slice(1:5)
end
end

0 comments on commit d50aaee

Please sign in to comment.