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

posted by mittyri  – Russia, 2016-09-21 15:34 (3206 d 14:25 ago) – Posting: # 16660
Views: 4,869

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,425 posts in 4,928 threads, 1,683 registered users;
59 visitors (0 registered, 59 guests [including 7 identified bots]).
Forum time: 05:59 CEST (Europe/Vienna)

You can do one of two things; just shut up,
which is something I don’t find easy,
or learn an awful lot very fast,
which is what I tried to do.    Jane Fonda

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