Learn R Programming

hgutils (version 0.2.19)

frmt: Format variable value

Description

Creates a nice string representation of a variable value.

Usage

frmt(x, show_class = FALSE, use_quotes = TRUE)

Value

A character vector with the string representation of x.

Arguments

x

variable for which a string representation is created.

show_class

whether to show the class of x. Defaults to FALSE.

use_quotes

whether to use single quotation marks (default: TRUE).

Examples

Run this code
frmt(c(1,2,3))

Run the code above in your browser using DataLab