Learn R Programming

patientProfilesVis (version 2.0.8)

countNLines: Count number of lines ('\n' character) per character in a vector

Description

Count number of lines ('\n' character) per character in a vector

Usage

countNLines(x)

Value

numeric vector with same length than x

containing number of lines in each element

Arguments

x

character vector

Author

Laure