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

posted by d_labes  – Berlin, Germany, 2016-09-21 17:27 (3063 d 01:36 ago) – Posting: # 16662
Views: 4,525

Dear mittyri,

a <- c(1,1,2,2,3,5,5,6,6,7,8,8,9,9)

a <- as.integer(factor(a, unique(a)))


Smart :ok:

Regards,

Detlew

Complete thread:

UA Flag
Activity
 Admin contact
23,376 posts in 4,912 threads, 1,662 registered users;
253 visitors (0 registered, 253 guests [including 13 identified bots]).
Forum time: 18:04 CET (Europe/Vienna)

There are sadistic scientists who hurry to hunt down errors
instead of establishing the truth.    Marie Curie

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