![]() ![]() Here, we’ll look at the syntax of case_when. To understand how, let’s look at the syntax. You can do it in R with the case_when() function. You need to generate new information with some if-elif-else style logic. So you have one piece of information, and based on that information, you’re trying to generate new values based on conditions. Else if the score is greater than or equal to 60, assign a ‘D’. ![]() Else if the score is greater than or equal to 70, assign a ‘C’. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |