I am trying to run the R Script below, I have actually simplified it to just this part that is causing issues. When I run this script I continue to get an error that says "cannot rescale a constant/zero column to a unit variance". I cannot figure out what is going on here. I have stripped down my data file so it is more manageable so I can try to figure this out.
The data.txt file that is being read looks like this: I have made this file very basic on purpose to see if I could get this to work, but it is not working. Of course once I get this to actually work I will expand the data file to match the data I am actually using. If I change the attribute in the prcomp function to scale=FALSE of course I can run my script. But if it is scaling...which is causing the issues, it errors. Any help would be GREATLY appreciated. -- View this message in context: http://r.789695.n4.nabble.com/Cannot-rescale-a-constant-zero-column-error-tp4647996.html Sent from the R help mailing list archive at Nabble.com. ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.