Displaying 3 results from an estimated 3 matches for "infochat".
Did you mean:
infoch
2011 Jul 29
2
special recursive filter
Hi,
I have a question about a special recursive filter problem.
What I have:
- given variables:
x: time series with rather randomly occuring '0' and '1'
wait: non negative integer
- a working but ineffectiv implementation (see below)
How the implementation works (what I want):
The filter should drill holes of distance 'wait' between the '1' in x, e.g.
x =
2011 May 19
1
vectorial search for elements with certain attributes
I have 2 vectors A and B. For each element of B I'd like to find the index of the next higher or equal element in A. And I'd like to store it effectiv. E.g.:
A <- c(1,3,7,8,10)
B <- c(5,8)
result: 3, 4
I have a possibility but for long vectors it works not very effectiv:
ans <- sapply(B, function(x) which.max(A[A < x]) )
as.integer(ans + 1)
Is there anyone how has a better
2011 Oct 21
0
add=TRUE or similar in spplot?
Dear Helper,
I have a spatial lines data frame object 'spRiverDf'. The data frame consists of numbers {0,1,...,5}. And I have a vector 'colorS' of length 6 with different colours.
If I make a plot with spplot I get a plot of the lines - colours depending on there number in the data frame column:
spplot(spRiverDf['data.col.1'], zcol=..., names.attr=...,