Learn R Programming

RSurvey (version 0.9.3)

Format: GUI: Build C-Style String Formats

Description

A graphical user interface (GUI) for the system sprintf C-library function.

Usage

Format(sample = pi, fmt = "", parent = NULL)

Arguments

sample

logical, integer, numeric, character, or factor. Sample value

fmt

character. Conversion specification format, see sprintf.

parent

tkwin. GUI parent window

Value

Returns a character string.

See Also

format

Examples

Run this code
# NOT RUN {
  Format(sample = pi, fmt = "%3.8f")
  Format(sample = 3L)
  Format(sample = TRUE)
  Format(sample = "string")
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab