Learn R Programming

charcuterie (version 0.0.4)

rev.chars: Reverse Elements of a chars Object

Description

Reverse Elements of a chars Object

Usage

# S3 method for chars
rev(x)

Value

a chars object with the elements reversed.

Arguments

x

a chars object

Examples

Run this code
rev(chars("racecar"))

rev(chars("alphabet"))

Run the code above in your browser using DataLab