nlines: Count the number of lines in a string

View source: R/accessory.R

nlinesR Documentation

Count the number of lines in a string

Description

Count the number of lines in a string

Usage

nlines(string)

Arguments

string

A string

Value

output Integer supplying the number of lines in a string

Examples

nlines("foo\nbar")

pinin4fjords/shinyngs documentation built on July 4, 2025, 2:13 p.m.