Package: tidypolars 0.8.0

tidypolars: Get the Power of Polars with the Syntax of the Tidyverse

Polars is an amazing cross-language tool for manipulating very large data. However, one drawback is that the R implementation has a syntax that will look odd to many R users who are not used to Python syntax. The objective of tidypolars is to improve the ease-of-use of Polars in R by providing tidyverse syntax to polars.

Authors:Etienne Bacher [aut, cre, cph]

tidypolars_0.8.0.tar.gz
tidypolars_0.8.0.zip(r-4.5)tidypolars_0.8.0.zip(r-4.4)tidypolars_0.8.0.zip(r-4.3)
tidypolars_0.8.0.tgz(r-4.4-any)tidypolars_0.8.0.tgz(r-4.3-any)
tidypolars_0.8.0.tar.gz(r-4.5-noble)tidypolars_0.8.0.tar.gz(r-4.4-noble)
tidypolars_0.8.0.tgz(r-4.4-emscripten)tidypolars_0.8.0.tgz(r-4.3-emscripten)
tidypolars.pdf |tidypolars.html
tidypolars/json (API)
NEWS

# Install tidypolars in R:
install.packages('tidypolars', repos = c('https://etiennebacher.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/etiennebacher/tidypolars/issues

On CRAN:

18 exports 138 stars 5.10 score 23 dependencies

Last updated 19 days agofrom:7e6e3f7ce76abd960c49ef46cc3f4bf1cc8b0637 (via v0.8.0)

Exports:as_polars_dfas_polars_lfbind_cols_polarsbind_rows_polarsdescribedescribe_optimized_plandescribe_planduplicated_rowsexpect_colnamesexpect_dimexpect_equalexpect_equal_lazyexpect_error_lazyexpect_is_tidypolarsfetchmake_unique_idsink_csvsink_parquet

Dependencies:clicodetoolscpp11dplyrfansigenericsgluelifecyclemagrittrpillarpkgconfigpolarspurrrR6rlangstringistringrtibbletidyrtidyselectutf8vctrswithr

FAQ

Rendered fromfaq.Rmdusingknitr::rmarkdownon Jun 04 2024.

Last update: 2024-02-22
Started: 2023-07-06

Getting started

Rendered fromtidypolars.Rmdusingknitr::rmarkdownon Jun 04 2024.

Last update: 2024-03-14
Started: 2023-07-10

R and Polars expressions

Rendered fromr-and-polars-expressions.Rmdusingknitr::rmarkdownon Jun 04 2024.

Last update: 2024-05-10
Started: 2023-08-11

Readme and manuals

Help Manual

Help pageTopics
Order rows using column valuesarrange.RPolarsDataFrame
Convert a Polars DataFrame to an R data.frame or to a tibbleas_tibble.tidypolars
Append multiple Data/LazyFrames next to each otherbind_cols_polars
Stack multiple Data/LazyFrames on top of each otherbind_rows_polars
Complete a data frame with missing combinations of datacomplete.RPolarsDataFrame complete.RPolarsLazyFrame
Collect a LazyFramecollect.RPolarsLazyFrame compute.RPolarsLazyFrame
Count the observations in each groupadd_count.RPolarsDataFrame add_count.RPolarsLazyFrame count.RPolarsDataFrame count.RPolarsLazyFrame
Cross joincross_join.RPolarsDataFrame cross_join.RPolarsLazyFrame
Summary statistics for a Polars DataFramedescribe
Show the optimized and non-optimized query plansdescribe_optimized_plan describe_plan
Remove or keep only duplicated rows in a Data/LazyFramedistinct.RPolarsDataFrame distinct.RPolarsLazyFrame duplicated_rows
Drop missing valuesdrop_na.RPolarsDataFrame drop_na.RPolarsLazyFrame
Fetch 'n' rows of a LazyFramefetch
Fill in missing values with previous or next valuefill.RPolarsDataFrame
Keep rows that match a conditionfilter.RPolarsDataFrame filter.RPolarsLazyFrame
Group by one or more variablesgroup_by.RPolarsDataFrame group_by.RPolarsLazyFrame ungroup.RPolarsDataFrame ungroup.RPolarsLazyFrame
Grouping metadatagroup_split.RPolarsDataFrame
Grouping metadatagroup_keys.RPolarsDataFrame group_keys.RPolarsLazyFrame group_vars.RPolarsDataFrame group_vars.RPolarsLazyFrame
Mutating joinsfull_join.RPolarsDataFrame full_join.RPolarsLazyFrame inner_join.RPolarsDataFrame inner_join.RPolarsLazyFrame left_join.RPolarsDataFrame left_join.RPolarsLazyFrame right_join.RPolarsDataFrame right_join.RPolarsLazyFrame
Create a column with unique id per row valuesmake_unique_id
Create, modify, and delete columnsmutate.RPolarsDataFrame mutate.RPolarsLazyFrame
Pivot a Data/LazyFrame from wide to longpivot_longer.RPolarsDataFrame pivot_longer.RPolarsLazyFrame
Pivot a DataFrame from long to widepivot_wider.RPolarsDataFrame
Extract a variable of a Data/LazyFramepull.RPolarsDataFrame pull.RPolarsLazyFrame
Change column orderrelocate.RPolarsDataFrame relocate.RPolarsLazyFrame
Rename columnsrename.RPolarsDataFrame rename.RPolarsLazyFrame rename_with.RPolarsDataFrame rename_with.RPolarsLazyFrame
Replace NAs with specified valuesreplace_na.RPolarsDataFrame replace_na.RPolarsLazyFrame
Group input by rowsrowwise.RPolarsDataFrame rowwise.RPolarsLazyFrame
Select columns from a Data/LazyFrameselect.RPolarsDataFrame select.RPolarsLazyFrame
Filtering joinsanti_join.RPolarsDataFrame anti_join.RPolarsLazyFrame semi_join.RPolarsDataFrame semi_join.RPolarsLazyFrame
Separate a character column into multiple columns based on a substringseparate.RPolarsDataFrame separate.RPolarsLazyFrame
Stream output to a CSV filesink_csv
Stream output to a parquet filesink_parquet
Subset rows of a Data/LazyFrameslice_head.RPolarsDataFrame slice_head.RPolarsLazyFrame slice_sample.RPolarsDataFrame slice_tail.RPolarsDataFrame slice_tail.RPolarsLazyFrame
Summarize each group down to one rowsummarise.RPolarsDataFrame summarise.RPolarsLazyFrame summarize.RPolarsDataFrame summarize.RPolarsLazyFrame
Uncount a Data/LazyFrameuncount.RPolarsDataFrame uncount.RPolarsLazyFrame
Unite multiple columns into one by pasting strings togetherunite.RPolarsDataFrame unite.RPolarsLazyFrame