Displaying 3 results from an estimated 3 matches for "mindex".
Did you mean:
index
2008 Mar 26
3
Loop problem
...ese things I would appreciate some comments. The code below is
designed to allow me to extract the top record of the data frame, and
them remove rows from the data frame which have an index close to the
extracted top record.
topstorm<-subset(rankeddataset[1,]) ## Extracts the top storm
topstormindex<-rankeddataset[1,1] ## Finds the top storm start index
startindex<-topstormindex-48 ## sets the start and end indexes
endindex<-topstorminde+48
rankeddataset<-rankeddataset[-1,] ## Creates a new list with the top
storm removed
##This section of code needs looped. It removes storms fro...
2006 Aug 15
5
Ferret Segmentation Faults
Hi,
I am getting a number of segmentation faults using Ferret 0.9.5, Fedora
Core 5 and Ruby 1.8.4
I installed it with the recommended gem install ferret
and example segmentation fault creation line would be as follows:
@records = FerretConfig::INDEX.search("address_line_2:\"Dumbarton\"")
I am also using acts_as_ferret and rails 1.15 but think this is an issue
with
2012 Nov 15
1
bug with mapply() on an S4 object
Hi,
Starting with ordinary vectors, so we know what to expect:
> mapply(function(x, y) {x * y}, 101:106, rep(1:3, 2))
[1] 101 204 309 104 210 318
> mapply(function(x, y) {x * y}, 101:106, 1:3)
[1] 101 204 309 104 210 318
Now with an S4 object:
setClass("A", representation(aa="integer"))
a <- new("A", aa=101:106)
> length(a)