small fix in mapAttributes: index j will change when attributes with NA values are removed
Merge pull request #2 from thomaskelder/develop

small fix in mapAttributes