In a large bowl, combine flour, cinnamon, nutmeg, salt, baking powder, and baking soda. In another bowl, beat butter, sugar, and vanilla together with an electric mixer. Add the egg and beat until creamy. Mix the dry ingredients in until just combined and then fold in the apples and the 1/3 cup chopped pecans with a wooden spoon or a spatula. Pour batter into pan.