I'm adjusting values in a list based on a couple of matrixes. One matrix
specifies the row to be taken from the adjustment matrix, while using the
aligned column values. I have an approach which works, but I might find an
approach with vectorization.
Here is code with my solution:
--
nids <
I am connecting to an Oracle database with RJDBC, and creating a data frame
with dbGetQuery. When I get values return, values which are NULL in the
database are being returned as 0 from my query. How can I have them returned
as ?
I am query like the following.
--
require(RJDBC)
drv <-
JDBC
I'm working with the ncdf package, and I'm seeing a behavior which I
am unsure whether it is a bug or a feature. I am creating a variable,
which I make with the precision of "byte" and also set a missing
value, When I put into this variable, all my NA values are put in
properly as the missing val
I am attempting to iterate over a file, processing it line by line.
In my function below, I am only getting the first item over and over
and over again from my test file rather than subsequent lines. How
can I modify this to read lines sequentially?
==
iteratefile <- function(file) {
f.con <-
How can I cluster and order within part of a previous clustering result?
For example, I am clustering and ordering results as follows:
> rows <- 30
> cols <- 3
> x <- matrix(sample(-1:1,rows*cols,replace=T), nrow=rows,
> ncol=cols,dimnames=list(c(paste("R",1:rows,sep="")),c(paste("C",1:cols,sep=
5 matches
Mail list logo