search for: case1_agencyk

Displaying 1 result from an estimated 1 matches for "case1_agencyk".

2012 Feb 07
1
alternating element in url
...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] <- import.data[tt,mm] }}} ################################################################################ I got all to work, but the problem is assembling the URL. In t...