I have a data frame with one variable which is for example the county ID. I have 401 County ID's, so I have 401 rows.
'data.frame':   401 obs. of  1 variable:
 $ KRS: num  1001 1002 1003 1004 1051 ...
head(fs)
   KRS
1 1001
2 1002
3 1003
4 1004
5 1051
6 1053
I want to add a Variable, which representing another "categorie" with 6 levels to expand the the data frame, so I got instead of 401 rows (observations) 401*6=2406 rows (observations).
It should look like this:
   KRS  V2
1  1001  1
2  1001  2
3  1001  3
4  1001  4
5  1001  5
6  1001  6
7  1002  1
8  1002  2
9  1002  3
10 1002  4
11 1002  5
12 1002  6
and so on....
I hope you understand what I mean and I hope you can help me.
Thank you!
Best regards
Ari
 
     
     
     
    