R: Get or set a name's first name

first_name {humaniformat} | R Documentation

## Get or set a name's first name

### Description

as in the lubridate package, individual components of a name can be both extracted or set using the relevant function call - see the examples.

### Usage

    first_name(x)

    first_name(x) <- value

### Arguments

`x` | a name, or vector of names
`value` | a replacement value for x's first name.

### See Also

`salutation`, `middle_name`, `last_name` and `suffix` for other accessors.

### Examples

    #Get a first name
    example_name <- "Mr Jim Jeffries"
    first_name(example_name)

    #Set a first name
    first_name(example_name) <- "Prof"

[Package humaniformat version 0.6.0 Index]