CollapsABEL (version 0.10.11)

shiftedStem: Add a "shift" suffix to a stem

Description

Add a "shift" suffix to a stem

Usage

shiftedStem(stem, n_shift)

Arguments

stem
character.
n_shift
numeric.

Value

character.

Examples

Run this code
## Not run: 
# # add suffix to stem
# shiftedStem("a", 100) == "a_shift_0100"
# shiftedStem("home/a", 100) == "home/a_shift_0100"
# shiftedStem("/home/a", 100) == "/home/a_shift_0100"
# shiftedStem(c("/home/a", "/home/b"), 100) == c("/home/a_shift_0100",
# 		"/home/b_shift_0100")
# ## End(Not run)

Run the code above in your browser using DataCamp Workspace