Displaying 1 result from an estimated 1 matches for "5x4x6".
Did you mean:
4x6
2012 Feb 07
1
alternating element in url
...dimensional matrix from
the corresponding website. For example:
###############################################################################
ID=c(1,5,6,8,10) #ID of dataset/website, each dataset
contains a matrix [4x6]
data=array(numeric(0),length(ID) ,4,6) #empty array [5x4x6]
for (kk in 1:length(ID)) {
url <-cat("http://ministry.gov/case",ID[kk],"_agencyk") #should return
"http://ministry.gov/case1_agencyk" for kk=1, etc.
import.data <- as.matrix( read.table(url) )
for (tt in 1:4) {
for (mm in 1:6) {
data[kk,tt,mm] <- i...