replace_letters_with_numbers: Replace letters with numbers

View source: R/replace_letters_with_numbers.R

replace_letters_with_numbersR Documentation

Replace letters with numbers

Description

Function to replace letters with numbers

Usage

replace_letters_with_numbers(df, column_name)

Arguments

df

Dataframe to replace letters of one column to numbers.

column_name

Specify the name of the column in which the replacement needs to happen.

Details

This function replace letters with numbers for one column of a dataframe.

Value

A dataframe

Author(s)

Yves R. Sagaert

Examples

  ## Not run: 
    data <- data.frame(
     id_column = c("ID1","ID2","ID3","ID4"),
     score = c("A","B","C","D"))
    replace_letters_with_numbers(data,column_name=score)
  
## End(Not run)


yForecasting/businessplots documentation built on Jan. 8, 2025, 6:26 p.m.