expand.grid() Function in R (Example) | How to Find & Return All Combinations of Factor Variables

preview_player
Показать описание
R code of this video:

x1 <- factor(c(LETTERS[1:3])) # Create first example vector
x1 # Print first example vector

x2 <- factor(c(letters[4:7])) # Create second example vector
x2 # Print second example vector

Follow me on Social Media:

Рекомендации по теме
Комментарии
Автор

Great explanation, Thank you! Is there a way to get the opposite of this?

KameshwarChoppella