mid {easyr}R Documentation

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

mid( "leftmidright", 5, 3 )

[Package easyr version 0.5-8 Index]