rot: Caesar-shift a string by a given number of letters.

Description Usage Arguments Value Examples

View source: R/text_manipulation.R

Description

Caesar-shift a string by a given number of letters.

Usage

1
rot(x, n = 13, alphabet = standard_alphabet, showWarn = TRUE)

Arguments

x

A string.

n

A number of letters to shift the string by.

alphabet

A list containing lower and upper case alphabets

showWarn

boolean. Do you want to see warnings about alphabets?

Value

A string

Examples

1
2
3
rot("abc")
rot("abc", n=2)
rot("abc", n=5, list(lw=letters[1:7], up=LETTERS[1:7]))

AlunHewinson/geocacheR documentation built on Feb. 17, 2020, 6:12 p.m.