Package: tidypolars 0.12.0

Etienne Bacher

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.12.0.tar.gz
tidypolars_0.12.0.zip(r-4.5)tidypolars_0.12.0.zip(r-4.4)tidypolars_0.12.0.zip(r-4.3)
tidypolars_0.12.0.tgz(r-4.4-any)tidypolars_0.12.0.tgz(r-4.3-any)
tidypolars_0.12.0.tar.gz(r-4.5-noble)tidypolars_0.12.0.tar.gz(r-4.4-noble)
tidypolars_0.12.0.tgz(r-4.4-emscripten)tidypolars_0.12.0.tgz(r-4.3-emscripten)
tidypolars.pdf |tidypolars.html
tidypolars/json (API)
NEWS

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

Peer review:

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

Pkgdown site:https://tidypolars.etiennebacher.com

On CRAN:

7.47 score 184 stars 30 scripts 27 exports 23 dependencies

Last updated 1 months agofrom:4508d4d256 (on v0.12.0). Checks:OK: 1 ERROR: 1 NOTE: 5. Indexed: no.

TargetResultDate
Doc / VignettesOKDec 19 2024
R-4.5-winNOTEDec 19 2024
R-4.5-linuxERRORDec 19 2024
R-4.4-winNOTEDec 19 2024
R-4.4-macNOTEDec 19 2024
R-4.3-winNOTEDec 19 2024
R-4.3-macNOTEDec 19 2024

Exports:as_polars_dfas_polars_lfbind_cols_polarsbind_rows_polarsdescribedescribe_optimized_plandescribe_planduplicated_rowsfetchmake_unique_idread_csv_polarsread_ipc_polarsread_ndjson_polarsread_parquet_polarsscan_csv_polarsscan_ipc_polarsscan_ndjson_polarsscan_parquet_polarssink_csvsink_ipcsink_ndjsonsink_parquetwrite_csv_polarswrite_ipc_polarswrite_json_polarswrite_ndjson_polarswrite_parquet_polars

Dependencies:clicodetoolscpp11dplyrfansigenericsgluelifecyclemagrittrpillarpkgconfigpolarspurrrR6rlangstringistringrtibbletidyrtidyselectutf8vctrswithr

FAQ

Rendered fromfaq.Rmdusingknitr::rmarkdownon Dec 19 2024.

Last update: 2024-08-16
Started: 2023-07-06

Getting started

Rendered fromtidypolars.Rmdusingknitr::rmarkdownon Dec 19 2024.

Last update: 2024-10-30
Started: 2023-07-10

R and Polars expressions

Rendered fromr-and-polars-expressions.Rmdusingknitr::rmarkdownon Dec 19 2024.

Last update: 2024-11-15
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
Show the optimized and non-optimized query plansexplain.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
Import data from CSV file(s)from_csv read_csv_polars scan_csv_polars
Import data from IPC file(s)from_ipc read_ipc_polars scan_ipc_polars
Import data from NDJSON file(s)from_ndjson read_ndjson_polars scan_ndjson_polars
Import data from Parquet file(s)from_parquet read_parquet_polars scan_parquet_polars
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 an IPC filesink_ipc
Stream output to a NDJSON filesink_ndjson
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
Summary statistics for a Polars DataFramesummary.RPolarsDataFrame
'tidypolars' global optionstidypolars-options
Uncount a Data/LazyFrameuncount.RPolarsDataFrame uncount.RPolarsLazyFrame
Unite multiple columns into one by pasting strings togetherunite.RPolarsDataFrame unite.RPolarsLazyFrame
Export data to CSV file(s)write_csv_polars
Export data to IPC file(s)write_ipc_polars
Export data to JSON file(s)write_json_polars
Export data to NDJSON file(s)write_ndjson_polars
Export data to Parquet file(s)write_parquet_polars