0

I am reading other's code but not get the recode part

function (x){recode(x,5})-1

All the previous recode codes included = sign to give something some value, I don't understand what here the "5" mean. thank you!

Seashore
  • 3
  • 1
  • 1
    When asking a question about a function that is not in the base packages, you should include a `library` call to load whatever package your function comes from. – IRTFM Jul 20 '17 at 14:17
  • It seems to me that : function (x){recode(x,5})-1 is bad / unworking code : the brackets are not closed and parenthesis not opened. Are you sure the code you copy and paste is working ? Can you provide a larger sample of the code ? – Colin FAY Jul 20 '17 at 14:51
  • Maybe reading `?dplyr::recode` could help you. But this code is certainly wrong. – F. Privé Jul 20 '17 at 19:55

0 Answers0