trimHeadComment: Trim first line comments

trimHeadCommentR Documentation

Trim first line comments

Description

Deletes the comments added to the first lines. Useful when comment char is only a comment char in the beginning of the file

Usage

trimHeadComment(fileName, commentChar = "#", outFile = NULL)

Arguments

fileName

name of the file or a connection

commentChar

comment indicator

outFile

File to save

Value

a textConnection object


oganm/ogbox documentation built on Feb. 18, 2024, 12:37 a.m.