[R] Retrieving data from rotated netCDF-file

2013-12-03 Thread Sandra Stankowski
I’m trying to read some data from a NetCDF file with a rotated coordinate system using the function retrieve.nc() from the clim.pact package. I know, that the rotated pole is supposed to be at 198.0 E and 39.25 N, the top left corner is at 331.79 E and 21.67 N. The grid resolution is 0.44°x0.44°

Re: [R] nrow()

2011-02-22 Thread Sandra Stankowski
Thanks. I made it! Best wishes, S. Am 22.02.2011 17:41, schrieb Erik Iverson: Sandra Stankowski wrote: is.na function does'nt seem to work, but maybe I'm just dealing with it in a wrong way. here's an example > m <- c(2, 3, 5, 6, 3, 7, -99, -99, 6) > n <-

Re: [R] nrow()

2011-02-22 Thread Sandra Stankowski
e. You probably want to use ?is.nan and not the inequality operator. Similar example, contrast: x <- NA is.na(x) x == NA Sandra Stankowski wrote: Hey there, I tried to count the number of rows, where my data isn't NaN in a certain column. this was my guess: (given is a data frame wi

[R] nrow()

2011-02-22 Thread Sandra Stankowski
Hey there, I tried to count the number of rows, where my data isn't NaN in a certain column. this was my guess: (given is a data frame with 2069 rows and 17 cols) NROW(data[jan,16] != NaN) ("jan" is defined this way: jan <- which(data[,2]==1, arr.ind= TRUE)) but I only get the number of c