Displaying 2 results from an estimated 2 matches for "rangescale".
Did you mean:
largescale
2007 Nov 29
0
Doing PCA
...to reshape my data using a much shorter script than before. Woohoo
However now I have new problems. The code is below. There are no problems with the create matrix section.
The problem code is highlighted in bold. I am trying to do PCA on the data. Here are the errors.
Error1
code : OGSscaled = rangescale(OGS)
error message : Error in dim(newX) <- c(prod(d.call), d2) :
dims [product 47960] do not match the length of object [43600]
Error2
I tried to do PCA without rangescaling
code :OGSpca <- prcomp(OGS, center=FALSE)
error message : Error in svd(x, nu = 0) : infinite or missing values in...
2013 Nov 21
1
how can I import a number of datsets in a folder in my working directory to a list in R
Hi,
Suppose, if I create 15 files in my working directory.
set.seed(48)
lapply(1:15,function(i) {m1 <- matrix(sample(1:20,1686*2,replace=TRUE),nrow=1686,ncol=2); write.table(m1,paste0("file_",i,".txt"),row.names=FALSE,quote=FALSE)})
?D <-dir()
D1 <- D[order(as.numeric(gsub("\\D+","",D)))]
D1
?res <- t(sapply(D1,function(x) {x1<-