Into a small bowl sift together flour, cinnamon, baking soda, salt, and nutmeg. In a large bowl with an electric mixer beat together butter and sugars until light and fluffy. Beat in egg and vanilla and stir in flour mixture, oats, and coconut until combined well.