Displaying 2 results from an estimated 2 matches for "data_grid".
2011 May 18
4
Loop stopping after 1 iteration
Hi all,
This is a very basic question, but I just can't figure out why R is handling
a loop I'm writing the way it is.
Here is the script I have written:
grid_2_series<-function(gage_handle,data_type,filename)
series_name<-paste(gage_handle,data_type,sep="_")
data_grid<-read.table(file=paste(filename,".txt",sep=""))
num_rows_data<-nrow(data_grid)-1
num_cols_data<-ncol(data_grid)-4
num_obs<-num_rows_data*num_cols_data
time_series<-matrix(nrow=0,ncol=2)
for(i in 1:length(num_obs)){
rownum<-ceiling(i/31)+1
colnum<-if(i%%...
2006 Apr 21
13
Sorttable.js
I have come across this neat Javascript table sorter at
http://kryogenix.org/code/browser/sorttable/
It seems straigh forward to use but i cant get it to work.
I have included in the head
<script src="javascripts/sorttable.js" type="text/javascript"></script>
In the View
<table class="sortable" id="anyid">
<thead>