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 Jan. 18, 2025, 7:09 p.m.