An embedded and charset-unspecified text was scrubbed... Name: not available Url: https://stat.ethz.ch/pipermail/r-help/attachments/20050316/3019881c/attachment.pl
Write.table query
3 messages · Jones, Glen R, Henric Nilsson, David J. Netherway
On On, 2005-03-16, 05:43, Jones, Glen R skrev:
Hello, I have the following 'write.table' statement which works fine write.table(DataOutput,"c:/Prices.csv",append = TRUE,col.names = NA,sep = "," ) My query is, how could I modify this so I can include a variable name as a prefix before the 'Prices.CSV' filename. For example: prefixname = "DevX" write.table(DataOutput,"c:/" &prefixname& "Prices.csv",append = TRUE,col.names = NA,sep = "," ) With the resultant CSV output to be named "DevXPrices.csv".
Use `paste':
prefixname <- "DevX"
paste("c:/", prefixname, "Prices.csv", sep = "")
[1] "c:/DevXPrices.csv" HTH, Henric
Hello, I have used "prcomp" and the variances for the first 3 PC's are 2.65, 1.97 and 0.38. When I plot the principal component values for each data point I can see that the points lie in a plane as one might expect from the variances. But this plane is diagonal through the 3D space of the first 3 PC's. My question is: is it usual to follow a PC analysis with an eigen analysis to align this plane with with 2 principal directions, or is there a way of incorporating this into "prcomp". Thanks, David