You are on page 1of 1

Datos <- sqlQuery(channel = 1, select * from [Hoja1$])

dim(Datos)
i<-as.matrix(expand.grid(a=1:46, b=1:26))
x<-as.vector(Datos[i])
x<-x[!is.na(x)]
x
y<-matrix(0,round(0.5+length(x)/10),10)
q<-0
for (j in 1:120){
for (k in 1:10){
q<-q+1
y[j,k]<-x[q]
}
}
y
Datos1 <- edit(as.data.frame(y))
write.table(Datos1, "C:/Documents and Settings/Administrador/Escritorio/Datos1.t
xt",
sep=" ", col.names=TRUE, row.names=TRUE, quote=TRUE, na="NA")

You might also like