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 Feb. 28, 2024, 10:19 a.m.