@@ -40,8 +40,8 @@ TidierDB.jl currently supports the following top-level macros:
4040| ----------------------------------| -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
4141| ** Data Manipulation** | ` @arrange ` , ` @group_by ` , ` @filter ` , ` @select ` , ` @mutate ` (supports ` across ` ), ` @summarize ` /` @summarise ` (supports ` across ` ), ` @distinct ` , ` @relocate ` , ` @transmute ` |
4242| ** Joining/Setting** | ` @left_join ` , ` @right_join ` , ` @inner_join ` , ` @anti_join ` , ` @full_join ` , ` @semi_join ` , ` @union ` , ` @union_all ` , ` @intersect ` , ` @setdiff ` |
43- | ** Slice and Order** | ` @slice_min ` , ` @slice_max ` , ` @slice_sample ` , ` @order ` , ` @window_order ` , ` @window_frame ` |
44- | ** Utility** | ` @show_query ` , ` @collect ` , ` @head ` , ` @count ` , ` @drop_missing ` , ` show_tables ` , ` @create_view ` , ` drop_view ` |
43+ | ** Slice and Order** | ` @slice_min ` , ` @slice_max ` , ` @slice_sample ` , ` @arrange ` , ` @window_order ` , ` @window_frame ` |
44+ | ** Utility** | ` @show_query ` , ` @collect ` , ` @head ` , ` @count ` , ` @drop_missing ` , ` show_tables ` , ` @create_table ` , ` @create_view ` , ` drop_view ` |
4545| ** Helper Functions** | ` across ` , ` desc ` , ` if_else ` , ` case_when ` , ` n ` , ` starts_with ` , ` ends_with ` , ` contains ` , ` as_float ` , ` as_integer ` , ` as_string ` , ` is_missing ` , ` missing_if ` , ` replace_missing ` |
4646| ** TidierStrings.jl Functions** | ` str_detect ` , ` str_replace ` , ` str_replace_all ` , ` str_remove_all ` , ` str_remove ` |
4747| ** TidierDates.jl Functions** | ` year ` , ` month ` , ` day ` , ` hour ` , ` min ` , ` second ` , ` floor_date ` , ` difftime ` , ` mdy ` , ` ymd ` , ` dmy ` |
@@ -80,8 +80,8 @@ mtcars = DB.dt(db, path_or_name);
8080 DB. @mutate (mpg_squared = mpg^ 2 ,
8181 mpg_rounded = round (mpg),
8282 mpg_efficiency = case_when (
83- mpg >= cyl^ 2 , " efficient" ,
84- mpg < 15.2 , " inefficient" ,
83+ mpg >= cyl^ 2 => " efficient" ,
84+ mpg < 15.2 => " inefficient" ,
8585 " moderate" ))
8686 DB. @filter (mpg_efficiency in (" moderate" , " efficient" ))
8787 DB. @arrange (desc (mpg_rounded))
0 commit comments