headstart_utilities: Utilities for outputting characteristics of a dataset used it...

headstart_utilitiesR Documentation

Utilities for outputting characteristics of a dataset used it code.

Description

These functions are used during the execution of a program. Rather they produce snippets that can be pasted into code, and help the developer avoid some typing.

Usage

column_rename_headstart( d, try_snake_case=TRUE, use_nse=TRUE )
column_class_headstart( d )
column_value_headstart( x )

Arguments

d

A data.frame to describe.

try_snake_case

If TRUE column names are attempted to be converted to snake_case.

use_nse

Specify columns with NSE (non-standard evaluation; a.k.a., without quotes).

x

A vector to describe.

Value

Prints formatted code to the console.

Author(s)

Will Beasley

Examples

column_rename_headstart(datasets::OrchardSprays)
column_rename_headstart(datasets::iris)
column_class_headstart(datasets::OrchardSprays)
column_value_headstart(datasets::OrchardSprays$treatment)

OuhscBbmc/OuhscMunge documentation built on March 2, 2024, 11:44 a.m.