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

posted by mittyri – Russia, 2016-09-21 15:34 (3064 d 08:39 ago) – Posting: # 16660
Views: 4,499

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
23,379 posts in 4,913 threads, 1,661 registered users;
257 visitors (0 registered, 257 guests [including 29 identified bots]).
Forum time: 23:13 CET (Europe/Vienna)

Science is what you know.
Philosophy is what you don’t know.    Bertrand Russell

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