Skip to content
Prev 273453 / 398506 Next

repeating categorical variable codes

Not much. 

let say
[1] "a" "b" "c" "d" "e" "f" "g" "h" "i" "j"
[1] 2 3 2 3 1 1 1 3 1 1

Than
[1] "a" "a" "b" "b" "b" "c" "c" "d" "d" "d" "e" "f" "g" "h" "h" "h" "i" 
"j"

gives you repeating letters according to values in second vector. If this 
is not what you want, try to send some artificial example which 
illustrates what you really have and what is desired result.

Regards
Petr
given

            
Message-ID: <OFA17DF2FA.E49372C6-ONC1257920.004CF276-C1257920.004D3A7C@precheza.cz>
In-Reply-To: <CAHcQa4Kdnyi_d1UA-ek-=uNAGNMEffobxuk-in98UbWAmbu9Mw@mail.gmail.com>