t c wrote: > I wish to obtain the right-most n characters of a character string? What is the appropriate function? > See ?nchar ?substr k <- 2 x <- "abcdef" nc <- nchar(x) substr(x, nc - k + 1, nc) HTH, --sundar