fragla / eq5d

Other
21 stars 4 forks source link

take string as score #2

Closed bitowaqr closed 4 years ago

bitowaqr commented 4 years ago

Hi,

I think it would be useful if your eq5d function would also take a string as an argument for score.

When the dataset contains health states as '12321' etc or if you just want to quickly check the value of a certain state, it is a bit cumbersome to split the string and create a dataframe with variable names 'MO' 'SC' etc from it. I'd be happy to provide the code for this and make pull request (i.e. add a subfunction that, if a string vector with nchar 5 each is provided as the score argument, creates a dataframe). I just wanted to check whether this is something you already considered and/or if you have any objections. Many thanks, Paul

bitowaqr commented 4 years ago

Oh my god, nevermind, you already did that! I must have forgotten to install the latest version of your package. Sorry!