'Failure of Shapiro Test : p value = nan

Before data transformation, shapiro test works.

shapiro.test(solar$generation_gwh_2017)

Shapiro-Wilk normality test
data:  solar$generation_gwh_2017
W = 0.24933, p-value < 2.2e-16

But after transformation,

shapiro.test(solarlog)
Shapiro-Wilk normality test

data:  windlog
W = NaN, p-value = NA

The result just shows NaN and NA. Please help me to fix it. Thanks



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source