render_type {datapasta}R Documentation

render_type

Description

Renders a character vector as R types for pasting into Rstudio. Strings are quoted. Numbers, NA, logicals etc are not.

Usage

render_type(char_vec, char_type)

Arguments

char_vec

a character vector containing text to be rendered as the type indicated by type_str

char_type

a string describing the type of char_vec

Value

A vector parsed from the clipboard as ether a character string or a character vector. The type attribute contains the type guessed by 'readr'.


[Package datapasta version 3.1.0 Index]