首页 > 解决方案 > How to use/understand "%%"

问题描述

Can anyone tell me what this code means --> train = (year%%2 == 0). I have set it up with a binary variable, and it looks to me that it changes from "TRUE" to "FALSE" (vice versa) everytime "year" increases with 1

标签: r

解决方案


推荐阅读