A trainer did this in a video. He just gave a quick explanation that he does this because of R's default nature. However, I have never seen this application before. Is it correct, and why he does this?
pca <- prcomp(data, scale=TRUE)
pca$rotation <- -pca$rotation
pca$x <- -pca$x