Package 'pipefittr'

Title: Convert Nested Functions to Pipes
Description: To take nested function calls and convert them to a more readable form using pipes from package 'magrittr'.
Authors: Houston R Users, Neeraj Tandon, Ed Goodwin, Ju Yeong Kim, Sahil Seth
Maintainer: Sahil Seth <[email protected]>
License: MIT + file LICENSE
Version: 0.1.2
Built: 2025-03-01 03:50:26 UTC
Source: https://github.com/cran/pipefittr

Help Index


make_list

Description

make_list

Usage

make_list(string)

Arguments

string

a string to be converted into a list


make_output

Description

make_output

Usage

make_output(funclist)

Arguments

funclist

a list of functions


Convert nested calls to magrittr's pipes.

Description

To take nested function calls and convert them to a more readable form using magrittr's pipes.

Usage

pipefittr(string, pretty = F)

Arguments

string

a string, to be converted into magrittr's pipe syntax

pretty

create a multiline output, which is prettier. Try this.

Examples

teststring = "jump_on(bop_on( scoop_up( hop_through(foo_foo, forest), field_mouse ), head))"
pipefittr(teststring, pretty = TRUE)

Splits list into a data.frame

Description

Splits list into a data.frame

Usage

splitlisttodf(listtosplit)

Arguments

listtosplit

a list to be converted into a data.frame


Splits string into a list

Description

Splits string into a list

Usage

splitmultistrtolist(stringtosplit)

Arguments

stringtosplit

a string to be split