Learn R Programming

easyr (version 0.5-11)

rany_fixColNames: Fix column names.

Description

Code to fix column names, since this has to be done up to twice will reading in files. It should NOT be used directly (that's why it isn't exported), but will be called by function [read.any] as necessary, with the applicable defaults set by that function.

Usage

rany_fixColNames(col_names, fix.dup.column.names, nastrings)

Value

Fixed names.

Arguments

col_names

Vector/value of colum names/name.

fix.dup.column.names

Adds 'DUPLICATE #' to duplicated column names to avoid errors with duplicate names.

nastrings

Characters/strings to read as NA.