pasteable: Make R objects pasteable

View source: R/pasteable.R

pasteableR Documentation

Make R objects pasteable

Description

Make R objects pasteable

Usage

pasteable(x, target = c("sheet", "chat"))

Arguments

x

A data.frame or list.

target

Where you will paste the content.

Value

A length 1 character vector.

Examples

# Meaningful row names are kept
pasteable(mtcars)

# Row names that are a sequence are dropped
pasteable(iris)

# Fixed width output for sharing on slack or other markdown destination
pasteable(mtcars, target = "chat")

# Lists are simply converted
pasteable(list(123, "abc", cool = "R"), target = "chat")

ndiquattro/clipboardjs documentation built on March 17, 2022, 5:18 p.m.