tidytable0.11.2 package

Tidy Interface to 'data.table'

across

Apply a function across a selection of columns

add_count

Add a count column to the data frame

arrange

Arrange/reorder rows

as_tidytable

Coerce an object to a data.table/tidytable

between

Do the values from x fall between the left and right bounds?

bind_cols

Bind data.tables by row and column

c_across

Combine values from multiple columns

case_match

Vectorized switch()

case_when

Case when

case

data.table::fcase() with vectorized default

coalesce

Coalesce missing values

complete

Complete a data.table with missing combinations of data

consecutive_id

Generate a unique id for consecutive values

context

Context functions

count

Count observations by group

cross_join

Cross join

crossing

Create a data.table from all unique combinations of inputs

desc

Descending order

distinct

Select distinct/unique rows

drop_na

Drop rows containing missing values

dt

Pipeable data.table call

enframe

Convert a vector to a data.table/tidytable

expand_grid

Create a data.table from all combinations of inputs

expand

Expand a data.table to use all combinations of values

extract

Extract a character column into multiple columns using regex

fill

Fill in missing values with previous or next value

filter

Filter rows on one or more conditions

first

Extract the first, last, or nth value from a vector

fread

Read/write files

get_dummies

Convert character and factor columns to dummy variables

group_by

Grouping

group_cols

Selection helper for grouping columns

group_split

Split data frame by groups

group_vars

Get the grouping variables

if_all

Create conditions on a selection of columns

if_else

Fast if_else

in-notin

Fast %in% and %notin% operators

inv_gc

Run invisible garbage collection

is_grouped_df

Check if the tidytable is grouped

is_tidytable

Test if the object is a tidytable

lag

Get lagging or leading values

left_join

Join two data.tables together

pivot_longer

Pivot data from wide to long

pivot_wider

Pivot data from long to wide

pull

Pull out a single variable

rank

Ranking functions

recode

Recode values

reexports

Objects exported from other packages

reframe

Reframe a data frame

relocate

Relocate a column to a new position

rename_with

Rename multiple columns

rename

Rename variables by name

replace_na

Replace missing values

rowwise

Convert to a rowwise tidytable

select

Select or drop columns

separate_longer_delim

Split a string into rows

separate_rows

Separate a collapsed column into multiple rows

separate_wider_delim

Separate a character column into multiple columns

separate_wider_regex

Separate a character column into multiple columns using regex patterns

unnest_longer

Unnest a list-column of vectors into regular columns

unnest_wider

Unnest a list-column of vectors into a wide data frame

unnest

Unnest list-columns

nest

Nest columns into a list-column

new_tidytable

Create a tidytable from a list

pick

Selection version of across()

pipe

Pipe operator

unite

Unite multiple columns by pasting strings together

map

Apply a function to each element of a vector or list

mutate_rowwise

Add/modify columns by row

mutate

Add/modify/delete columns

n_distinct

Count the number of unique values in a vector

n

Number of observations in each group

na_if

Convert values to NA

nest_by

Nest data.tables

nest_join

Nest join

separate

Separate a character column into multiple columns

slice

Choose rows in a data.table

summarize

Aggregate data using summary statistics

tidytable-vctrs

Internal vctrs methods

tidytable

Build a data.table/tidytable

top_n

Select top (or bottom) n rows (by value)

transmute

Add new variables and drop all others

tribble

Rowwise tidytable creation

uncount

Uncount a data.table

A tidy interface to 'data.table', giving users the speed of 'data.table' while using tidyverse-like syntax.

  • Maintainer: Mark Fairbanks
  • License: MIT + file LICENSE
  • Last published: 2024-12-11