ddply attribution