Learn R Programming

agricolae (version 1.3-7)

lastC: Setting the last character of a chain

Description

A special function for the group of treatments in the multiple comparison tests. Use plot.group.

Usage

lastC(x)

Value

x

Returns the last character of a string

Arguments

x

letters

Author

Felipe de Mendiburu

See Also

plot.group

Examples

Run this code
library(agricolae)
x<-c("a","ab","b","c","cd")
lastC(x)
# "a" "b" "b" "c" "d"

Run the code above in your browser using DataLab