getFirstChar: Get first character string before punctuation or space

View source: R/fillGrid.R

getFirstCharR Documentation

Get first character string before punctuation or space

Description

Utility for parsing date elements as character strings

Usage

getFirstChar(x)

Arguments

x

character string

Value

First part of a character string before any punctuation or space character

Author(s)

J Bedia

See Also

Other dateutils: fillGridDates(), isAlphaCharacter(), setGridDates.asPOSIXlt()

Examples

## Not run:  
 getFirstChar("2008 Feb 12")
 getFirstChar("2008-02-12")
 getFirstChar("12:00:00 GMT")
 getFirstChar("Etc/UTC")
 
## End(Not run)

SantanderMetGroup/transformeR documentation built on Nov. 25, 2024, 1:25 p.m.