R Cut Function and Indicator Variable -


I am learning R and reading a book which is the code below, which is the indicator variable for 0 or 1 I don't understand the first part of the code, but the c (-1,0.5,10000000), labels = FALSE) -1 how to read and how to make it 0 or 1 value It does not understand. In fact if Don $ Tgiving is more than 0 then it returns 1 otherwise it is a new value in the dollar $ TGIIIndand.

  don $ TGIIN = cut (don $ T living, C (-1), 0.5,10000000), labels = FALSE -1,  

How do you actually read this code?

What is a more intuitive way to achieve similar results?

Thank you.


Comments

Popular posts from this blog

Folder list php -

GO: Serve static pages -

python - Why can't I destroy my StaticText in wxPython? -