Learn R Programming

rhcoclust (version 2.0.0)

reversestring: Reverse given string

Description

This is the function for reverse string

Usage

reversestring(string, n = 1)

Value

Reversed string or seq

Arguments

string

Given string or seq

n

By which n-plets we should reverse the given string

Author

Md. Bahadur Badsha <mbbadshar@gmail.com>

Details

This function is uesd to reverse given string or seq

Examples

Run this code
x1 <- c("R1C1", "R2C2", "R3C3")
reversestring(x1, 2)

Run the code above in your browser using DataLab