Hi, is anybody out there who knows APL and would help me to translate 52 lines of APL code into propper R? best, Torsten