Skip to content

Commit

Permalink
Merge pull request #15 from TidierOrg/kdpsingh-patch-1
Browse files Browse the repository at this point in the history
Update mutate_transmute.jl
  • Loading branch information
Karandeep Singh authored Aug 1, 2023
2 parents c8cdd24 + d50aaee commit 1b68df2
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 1b68df2

Please sign in to comment.