Smart recoding of vector values [🇷 for BE/BA]

posted by mittyri – Russia, 2016-09-21 15:34 (2745 d 19:55 ago) – Posting: # 16660
Views: 4,057

Hi ElMaestro,

my noob version
a <- c(1,1,2,2,3,5,5,6,6,7,8,8,9,9)
a <- as.integer(factor(a, unique(a)))

Kind regards,
Mittyri

Complete thread:

UA Flag
Activity
 Admin contact
22,957 posts in 4,819 threads, 1,636 registered users;
96 visitors (0 registered, 96 guests [including 6 identified bots]).
Forum time: 10:29 CET (Europe/Vienna)

With four parameters I can fit an elephant,
and with five I can make him wiggle his trunk.    John von Neumann

The Bioequivalence and Bioavailability Forum is hosted by
BEBAC Ing. Helmut Schütz
HTML5