Learn R Programming

easyr (version 0.5-11)

mid: mid

Description

Behaves like Excel's LEFT, RIGHT, and MID functions Author: Bryce Chamberlain.

Usage

mid(string, start, nchars)

Arguments

string

String to process.

start

Index (1-index) to start at.

nchars

Number of characters to read in from start.

Examples

Run this code
mid( "leftmidright", 5, 3 )

Run the code above in your browser using DataLab