\begin{Schunk}
\begin{Sinput}
 expand.grid(x = c("a", "b", "c"), y = c("j", "k"), z = c(1, 2, 3))
\end{Sinput}
\begin{Soutput}
   x y z
1  a j 1
2  b j 1
3  c j 1
4  a k 1
5  b k 1
6  c k 1
7  a j 2
8  b j 2
9  c j 2
10 a k 2
11 b k 2
12 c k 2
13 a j 3
14 b j 3
15 c j 3
16 a k 3
17 b k 3
18 c k 3
\end{Soutput}
\end{Schunk}
