Learn R Programming

cursory (version 1.0.0)

dontrepeat: Indicate that when printing repeat values should be hidden.

Description

Indicate that when printing repeat values should be hidden.

Usage

dontrepeat(x, replace.with = "")

Arguments

x

a vector

replace.with

what to replace the value with.

Examples

Run this code
# NOT RUN {
library(dplyr)
library(tibble)
x <- cursory_all(group_by(iris, Species), lst(mean, sd))
x <- as.data.frame(arrange(x, Species))
print(x)
x[[1]] <- dontrepeat(x[[1]], replace.with='"')
print(x)
# }

Run the code above in your browser using DataLab