interactions: x1|x2
both: x1*x2
And like in other languages, check the variable type to make sure factors are factors or characters and integers are integers - so year 2020 is not read as 2,020.
Keep Current with We are R-Ladies
This Thread may be Removed Anytime!
Twitter may remove this content at anytime, convert it as a PDF, save and print for later use!
1) Follow Thread Reader App on Twitter so you can easily mention us!
2) Go to a Twitter thread (series of Tweets by the same owner) and mention us with a keyword "unroll"
@threadreaderapp unroll
You can practice here first or read more on our help page!