very cool coding style [Regulatives / Guidelines]

posted by ElMaestro  – Denmark, 2012-06-16 21:12 (4749 d 20:48 ago) – Posting: # 8762
Views: 13,230

Hi HS,

while (sum(x) != 0) x <- sign(rnorm(size))


a little off topic, but it took me some time to get my head around this code line of yours. Now that I (think I) get it, I must say this is an incredibly elegant way of achieveing a lot with minimum coding. It completely permutes equal numbers of TR and RT (or -1's and 1's). Very, very elegant style!!! Me likey! :cool::cool::cool:

Pass or fail!
ElMaestro

Complete thread:

UA Flag
Activity
 Admin contact
23,424 posts in 4,927 threads, 1,671 registered users;
23 visitors (0 registered, 23 guests [including 11 identified bots]).
Forum time: 18:01 CEST (Europe/Vienna)

Truth and clarity are complementary.    Niels Bohr

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