rm.newline.chars: Remove 'newline' Characters From Imported Excel Sheets

Description Usage Arguments Details Value

View source: R/rm.newline.chars.R

Description

rm.newline.chars removes ‘newline’ characters (\n) from any column of a data frame.

Usage

1
rm.newline.chars(x, verbose = TRUE)

Arguments

x

(data.frame). A data frame resulting from an imported Excel sheet by means of read.xls.

verbose

(logical). Should verbose output be printed, defaults to TRUE.

Details

‘Newline’ characters in data frame rows are read verbatim and will cause rows in output text files to be distributed across two ore more lines. Such characters, entered accidentally or deliberately in the source Excel file, should be avoided. This function removes all ‘newline’ characters found at the end of a line or replaces them when found within the line text.

Value

A data frame.


readmoRe documentation built on Aug. 19, 2021, 9:07 a.m.