strengejacke / sjmisc

Data transformation and utility functions for R

Home Page:https://strengejacke.github.io/sjmisc

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Rec bug with "lo" characters

andresimi opened this issue · comments

Describe the bug
There is problem in rec, when parsing the "lo" characters.

To Reproduce

library(sjmisc)

rec(6, rec = "1=jorge@gmail.com; 6=marcelo.m@gmail.com")
#> [1] "marce6.m@gmail.com"
rec(1, rec = "1=jorge@gmail.com; 6=marcelo.m@gmail.com")
#> [1] "jorge@gmail.com"
rec(1, rec = "1=jorgelo@gmail.com; 6=marcelo.m@gmail.com")
#> [1] "jorge1@gmail.com"
Created on 2020-05-22 by the reprex package (v0.3.0)

Expected behaviour
It is expected to parse the "lo" as "lo" and not as "6".

Specifiations (please complete the following information):

  • sjmisc Version [e.g. 2.8.4]