Hi Y'All -- This is probably useless to you all, but just in case: I have recently written 3 functions for vectors having to do with subscripting / positions / locations / indices. The first one takes a boolean (1/0) vector same length as x as returns a vector of the positive positions in x. The second one takes a boolean (1/0) vector same length as x and replaces them with a given scalar value or a vector of values equal in length to the number of positives in the boolean position vector. The third one takes x and a vector (called table) of possible values components of x could take and returns a vector of positions in table for each element of x. This is like the match() function in R.
I am sure these are "beta" at best at this point in time! But, if anyone wants to test drive, pls LMK. Happy New Year. -- Paul
I am sure these are "beta" at best at this point in time! But, if anyone wants to test drive, pls LMK. Happy New Year. -- Paul
Comment