rot {geocacheR}R Documentation

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

Description

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

Usage

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

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

[Package geocacheR version 0.1.0 Index]