RE: [R] Can't load rgl library

2004-10-01 Thread antonio rodriguez
Hi Thomas, Yes I have the xlibmesa-gl, libglu1-mesa, libglu1-mesa-dev, etc, libraries. But no way. You mentioned TLS (transport Layer Security?), is this OK? I'm working on a Toshiba laptop with graphics driver I852GM Cheers, Antonio -Mensaje original- De: [EMAIL PROTECTED]

RE: [R] Can't load rgl library

2004-10-01 Thread antonio rodriguez
Hi Thomas antonio rodriguez schrieb: Hi Thomas, Yes I have the xlibmesa-gl, libglu1-mesa, libglu1-mesa-dev, etc, libraries. But no way. You mentioned TLS (transport Layer Security?), is this OK? I'm working on a Toshiba laptop with graphics driver I852GM No, just look at /usr/share

RE: [R] memory and swap space in ncdf

2005-01-21 Thread antonio rodriguez
Hi Manuel, Look at your memory.limit() and run R with '--mem-max=' option Try also to use the simpler netCDF library Antonio -Mensaje original- De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] nombre de Manuel Gutierrez Enviado el: viernes, 21 de enero de 2005 10:03 Para:

Re: [R] how to read hdf files under R?

2006-06-07 Thread antonio rodriguez
Nicolas Degallier wrote: Hi! I am trying to install in my R environment the rhdf5 package and library but it seems to have vanished from either the CRAN or BioConductors sites. Can you tell me where it would be possible to find it or any R library (or function) able to read hdf

[R] appending arrays

2006-06-09 Thread antonio rodriguez
Hi All, I have 2 arrays: dim(a1) [1] 3 23 23 dim(a2) [1] 3 23 23 And I want a new array, to say, a3, where: dim(a3) [1] 6 23 23 where the first dimension is supposed to be (months) so the resultating array would start in jan and finish in june. Best regards, Antonio

[R] appending arrays

2006-06-09 Thread antonio rodriguez
Hi All, I have 2 arrays: dim(a1) [1] 3 23 23 dim(a2) [1] 3 23 23 And I want a new array, to say, a3, where: dim(a3) [1] 6 23 23 where the first dimension is supposed to be (months) so the resultating array would start in jan and finish in june. Best regards, Antonio -- = Por favor,

Re: [R] how to make a contour plot in R?

2006-03-14 Thread antonio rodriguez
Arnau Mir Torres wrote: Uwe Ligges wrote: Arnau Mir Torres wrote: Hello. I am an nxn data frame in the variable frame. I want to make a contour plot with it. That is, I want to plot a square of dimensions [1,n]x[1,n] with the gray level of square [i,i+1]x[j,j+1] equal to

Re: [R] filling a matrix with data

2006-03-16 Thread antonio rodriguez
[EMAIL PROTECTED] wrote: Hi, I've extracted netcdf data in R, and am trying to output it in a matrix format. I can make the matrix, and I have the data, but I can't get the matrix to include the data... I'm not very experienced at using R, so please forgive the crudeness of these

Re: [R] Spectra for continious time

2006-03-28 Thread antonio rodriguez
?spectrum ?spec.ar Martin Albers wrote: Is there any way to apply a spectra or periodogramm to my time series. My first problem is, that I do not know how to get a spectra/periodogramm for my data. I have found time series tools but nothing for spectral analysis. My second problem:

Re: [R] R in climatology (RClimdex, RHTest)

2006-04-17 Thread antonio rodriguez
Have you look at clim.pact() Sorin Cheval wrote: Hello, I have some problems in using R for specific climatological aplications. I would appreciate a lot if anybody could help me a bit. All the best, Sorin Cheval __

RE: [R] Factor loadings and principal component plots

2004-05-04 Thread antonio rodriguez
Hi Neil, -Mensaje original- De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] nombre de [EMAIL PROTECTED] Enviado el: lunes, 03 de mayo de 2004 23:22 Para: [EMAIL PROTECTED] Asunto: [R] Factor loadings and principal component plots Hi- Can anyone tell me the command(s) to

[R] solved: extracting columns with NA's

2003-09-19 Thread antonio rodriguez
Many, many thanks to everybody. It helped a lot Cheers Antonio --- __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help

RE: [R] animated plot

2003-11-11 Thread antonio rodriguez
in one file all your newly created individuals files (jan.gif, feb.gif,...), and you will get an animated plot. Saludos! Antonio Rodriguez -Mensaje original- De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] nombre de Jesus Fernandez Galvez Enviado el: lunes, 10 de noviembre de 2003 17

[R] overlay a filled contour on world()

2003-01-10 Thread antonio rodriguez
Hi, Is it possible to overlay over a world region drawn by function world(), a filled.contour for that specific region? I've managed to do the inverse, add world to a filled.contour, but the appearence of the map is not the one I would like. With contour() is easy to do the task, but with

Re: [R] Confused by SVD and Eigenvector Decomposition in PCA

2003-02-07 Thread antonio rodriguez
Hi Feng, AFIK SVD analysis provides a one-step method for computing all the components of the eigen value problem, without the need to compute and store big covariance matrices. And also the resulting decomposition is computationally more stable and robust. Cheers, Antonio Rodriguez

RE: [R] Rcmdr on Debian

2003-05-30 Thread antonio rodriguez
Hi Peter, Thanks it works fine now with this little trick Cheers Antonio -Mensaje original- De: Peter Dalgaard BSA [mailto:[EMAIL PROTECTED] Enviado el: martes, 27 de mayo de 2003 10:04 Para: [EMAIL PROTECTED] CC: R Help Asunto: Re: [R] Rcmdr on Debian [EMAIL PROTECTED] writes: Hi,

[R] Error in .C(open_netcdf

2003-06-16 Thread antonio rodriguez
Hi, Running R 1.7.0 on Win XP I'm getting the following error message: library(netCDF) a-read.netCDF(c:/data/fnmoc/individuales/sst_rey.nc) Error in .C(open_netcdf, filename, id = as.integer(verbose)) : C/Fortran function name not in load table Don't know what is going wrong. With

RE: [R] Error in .C(open_netcdf

2003-06-16 Thread antonio rodriguez
-Mensaje original- De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] nombre de Duncan Murdoch Enviado el: lunes, 16 de junio de 2003 14:43 Para: antonio rodriguez CC: R-help; Thomas Lumley Asunto: Re: [R] Error in .C(open_netcdf On Mon, 16 Jun 2003 13:38:28 +0200, you wrote: Hi

Re: [R] Error in .C(open_netcdf: SOLVED

2003-06-16 Thread antonio rodriguez
Hi, The problem was the way I installed the netCDF package. Within the R environment and invoking Install package from CRAN makes (at least for me) that the netCDF library doesn't work. But if I download it and Install from local zip file the problems are gone. Cheers Antonio Rodríguez ---

RE: [R] Loading packages at startup

2004-01-20 Thread antonio rodriguez
Hi, go to your C:/R/rw1080/etc directory and edit the Rprofile file adding (e.g.): library(foreign) library(survival) cheers, antonio rodriguez -Mensaje original- De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] nombre de imap Enviado el: martes, 20 de enero de 2004 16:16 Para

RE: [R] filled maps

2004-02-03 Thread antonio rodriguez
-Mensaje original- De: Janus Larsen [mailto:[EMAIL PROTECTED] Enviado el: martes, 03 de febrero de 2004 11:36 Para: antonio rodriguez Asunto: RE: [R] filled maps Hi Antonio, Thanks for your prompt answer - but I can't see how that will solve my problem (which is overlaying

RE: [R] filled maps

2004-02-03 Thread antonio rodriguez
Hi, Some time ago, Roger Peng posted this solution, which I found very useful: junk.mat - matrix(rnorm(1600), 16, 100) contour.mat - ifelse(junk.mat 2, 0, junk.mat) filled.contour(junk.mat, color = terrain.colors, plot.axes = contour(contour.mat, levels = 1,

RE: [R] Statistiques avec R

2004-03-04 Thread antonio rodriguez
Trés bien!! Antonio -Mensaje original- De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] nombre de Shigeru Mase Enviado el: jueves, 04 de marzo de 2004 12:36 Para: r-help Asunto: [R] Statistiques avec R Dear R users, I want to share my joy with you. Please see the following

RE: [R] time-series

2004-03-08 Thread antonio rodriguez
Hi Eduardo, Probably a good idea is to do a multivariate analysis through spectral analysis. With function spectrum you can look for coherence and phase between several time series. In your case with different lengths, you can use the option: na.action=na.omit

RE: [R] Débutant R

2004-03-22 Thread antonio rodriguez
And in: http://zoonek2.free.fr/UNIX/48_R/all.html an excellent starting point (in french) Salut Antonio -Mensaje original- De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] nombre de Stephane DRAY Enviado el: lunes, 22 de marzo de 2004 17:33 Para: mathieu chausson ; Aide R Asunto:

[R] extract certain values from a ts

2006-10-24 Thread antonio rodriguez
Hi, Having several daily wind speed time series I want to extract those consecutive days over and below certain values (i.e. 5 x 8) Don't know which funtion to use (aggregate, lapply?) and how to do it. Thanks in advance Antonio __

Re: [R] extract certain values from a ts

2006-10-24 Thread antonio rodriguez
PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of antonio rodriguez Sent: Tuesday, October 24, 2006 1:57 PM To: r-help@stat.math.ethz.ch Subject: [R] extract certain values from a ts Hi, Having several daily wind speed time series I want to extract those consecutive days over and below

Re: [R] extract certain values from a ts

2006-10-24 Thread antonio rodriguez
. -Original Message- From: antonio rodriguez [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 24, 2006 2:22 PM To: Leeds, Mark (IED); R-Help Subject: Re: [R] extract certain values from a ts Leeds, Mark (IED) escribió: I don't think it matters whether it's a ts or a vector

Re: [R] extract certain values from a ts

2006-10-24 Thread antonio rodriguez
Leeds, Mark (IED) escribió: maybe subset works. I'm not familiar with that. neither me -Original Message- From: antonio rodriguez [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 24, 2006 2:49 PM To: Leeds, Mark (IED); R-Help Subject: Re: [R] extract certain values from a ts

Re: [R] extract certain values from a ts

2006-10-24 Thread antonio rodriguez
- From: antonio rodriguez [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 24, 2006 2:49 PM To: Leeds, Mark (IED); R-Help Subject: Re: [R] extract certain values from a ts Leeds, Mark (IED) escribió: take your ts object and convert it to a zoo object ( you need to have the zoo package

Re: [R] extract certain values from a ts

2006-10-25 Thread antonio rodriguez
Gabor Grothendieck escribió: There was still a typo in this so here it is again: # Consider the builtin in nhtemp ts series # Then the runs below above and below the mean are r - rle(as.vector(nhtemp mean(nhtemp))) r # with the first and last indexes of each # runs being given by:

[R] subsetting, aggregating and zoo

2006-10-28 Thread antonio rodriguez
Hi, Having an zoo object I can subset it to obtain the days where I have the values within some range: is.zoo(z) TRUE subset(z[,1], z[,1]=5 z[,1]= 10) #Yields: Year(day) 1988(13) 1988(14) 1988(16) 1988(20) 1988(21) 1988(22) 1988(25) 1988(26) 7.973946 9.933518 7.978227 7.512960

Re: [R] subsetting, aggregating and zoo

2006-10-28 Thread antonio rodriguez
Gabor Grothendieck escribió: On 10/28/06, antonio rodriguez [EMAIL PROTECTED] wrote: Hi, Having an zoo object I can subset it to obtain the days where I have the values within some range: is.zoo(z) TRUE subset(z[,1], z[,1]=5 z[,1]= 10) #Yields: Year(day) 1988(13) 1988(14) 1988(16

Re: [R] subsetting, aggregating and zoo

2006-10-29 Thread antonio rodriguez
Gabor Grothendieck escribió: Try this: # test data x - c(1:4, 6:8, 10:14) z - zoo(x, as.Date(x)) # idx is 1 for first run, 2 for second run, etc. idx - cumsum(c(1, diff(z) != 1)) # starts replaces each time with the start time of that run # ends is similar but for ends starts -

Re: [R] subsetting, aggregating and zoo

2006-10-29 Thread antonio rodriguez
in a form easily pastable by someone else into their session. Thanks Gabor! Now it's OK (nice the output of dput. I was reluctant to paste all data because is 6575 days long!) Best regards Antonio On 10/29/06, antonio rodriguez [EMAIL PROTECTED] wrote: Gabor Grothendieck escribió: Try

Re: [R] subsetting, aggregating and zoo

2006-10-29 Thread antonio rodriguez
Gabor Grothendieck escribió: On 10/29/06, antonio rodriguez [EMAIL PROTECTED] wrote: Gabor Grothendieck escribió: Thanks Gabor! Now it's OK (nice the output of dput. I was reluctant to paste all data because is 6575 days long!) You can write the following, say, to display just a bit

[R] matrix manipulation with a for loop

2006-11-01 Thread antonio rodriguez
Hi, Having a matrix F.zoo (6575,189) with NA's in some columns I'm trying to extract from each column the percent of days within an specific range, so I've wrote this procedure: length(subset(F.zoo[,86],(F.zoo[,86]=5) (F.zoo[,86]=

Re: [R] matrix manipulation with a for loop

2006-11-01 Thread antonio rodriguez
Spector Statistical Computing Facility Department of Statistics UC Berkeley [EMAIL PROTECTED] On Wed, 1 Nov 2006, antonio rodriguez wrote: Hi, Having a matrix F.zoo (6575,189) with NA's in some columns

Re: [R] matrix manipulation with a for loop

2006-11-01 Thread antonio rodriguez
Gabor Grothendieck escribió: Try this where m is the matrix: 100 * colMeans(m 5 m 9, na.rm = TRUE) Dear Gabor, Just perfect! Thanks a lot, Antonio On 11/1/06, antonio rodriguez [EMAIL PROTECTED] wrote: Hi, Having a matrix F.zoo (6575,189) with NA's in some columns I'm trying

Re: [R] matrix manipulation with a for loop

2006-11-01 Thread antonio rodriguez
understand now. Many thanks!! Best regards, Antonio On Wed, 1 Nov 2006, antonio rodriguez wrote: Phil Spector escribió: Antonio - When you're operating on each column of a matrix, you really should consider the apply() function, which was written for the task. Also, it's usually

Re: [R] subsetting, aggregating and zoo

2006-11-01 Thread antonio rodriguez
) will output variable v in a form easily pastable by someone else into their session. On 10/29/06, antonio rodriguez [EMAIL PROTECTED] wrote: Gabor Grothendieck escribió: Try this: # test data x - c(1:4, 6:8, 10:14) z - zoo(x, as.Date(x)) # idx is 1 for first run, 2 for second run, etc

Re: [R] subsetting, aggregating and zoo

2006-11-02 Thread antonio rodriguez
Brandt, T. (Tobias) escribió: I think the following does what you want: (d - structure(c(6586, 6586, 6589, 6593, 6593, 6593, 6598, 6598, 6598, 6598), class = Date)) [1] 1988-01-13 1988-01-13 1988-01-16 1988-01-20 1988-01-20 1988-01-20 1988-01-25 [8] 1988-01-25 1988-01-25 1988-01-25

Re: [R] subsetting, aggregating and zoo

2006-11-02 Thread antonio rodriguez
or read.zoo and operated on by aggregate.zoo though most other zoo operations will not accept them. On 11/2/06, antonio rodriguez [EMAIL PROTECTED] wrote: Brandt, T. (Tobias) escribió: I think the following does what you want: (d - structure(c(6586, 6586, 6589, 6593, 6593, 6593, 6598, 6598

[R] subsetting a matrix and filling other

2006-11-07 Thread antonio rodriguez
Hi, Having a matrix F(189,6575) I want to do this: z1-subset(F[,1], F[,1] = 5 F[,1] = 10) . . . z189-subset(F[,189], F[,189] = 5 F[,189] = 10) I would prefer to have an empty matrix, say 'z' in order to fill its columns with the output of subsetting F. But each of the subsets can differ in

Re: [R] subsetting a matrix and filling other

2006-11-07 Thread antonio rodriguez
) and a pretty good processor (P4, 2.8) Antonio -Christos -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of antonio rodriguez Sent: Tuesday, November 07, 2006 2:01 PM To: R-Help Subject: [R] subsetting a matrix and filling other Hi, Having a matrix F

Re: [R] subsetting a matrix and filling other. Solved

2006-11-07 Thread antonio rodriguez
antonio rodriguez escribió: Christos Hatzis escribió: Use a list to store the partial matrices: z - vector(list, 189) for(i in 1:189) z[[i]] - subset(...) Hi Christos, I've tried it but it died unexpectedly with a (Killed) message and the linux console prompt again. I think I

[R] how to merge these dataframes

2006-11-22 Thread antonio rodriguez
Hi, Having 3 dataframes with different row numbers, but equal column names (see below) I want to merge them by Var1 so I've tried: merge(j1,j2,j3,by=Var1) merge(j,j1,j2,by=names(Var1)) But always got the same message: Erro en fix.by(by.x, x) : 'by' must specify column(s) as numbers, names or

Re: [R] how to merge these dataframes [Solved]

2006-11-22 Thread antonio rodriguez
(or omit all=TRUE if you only want columns which are in all 3 data frames). On Wed, 22 Nov 2006, antonio rodriguez wrote: Hi, Having 3 dataframes with different row numbers, but equal column names (see below) I want to merge them by Var1 so I've tried: merge(j1,j2,j3,by=Var1) merge(j

[R] dataframe manipulation

2006-11-22 Thread antonio rodriguez
Hi, Having a dataframe 'l1' (dput output is below): dim(l1) 1274 2 l1[1:12,] Var1 Freq 1 1988-01-131 2 1988-01-161 3 1988-01-203 4 1988-01-252 5 1988-01-301 6 1988-02-015 7 1988-02-084 8 1988-02-141 9 1988-02-161 10 1988-02-184

Re: [R] dataframe manipulation

2006-11-22 Thread antonio rodriguez
Marc Schwartz escribió: Using just the example data: table(substr(DF$Var1, 1, 7)) 1988-01 1988-02 1988-03 5 6 1 This is just what I wanted! Many thanks Marc! BR Antonio See ?substr for more information. HTH, Marc Schwartz

Re: [R] dataframe manipulation[Solved]

2006-11-22 Thread antonio rodriguez
and time(out) are the corresponding year-months. See ?yearmon On 11/22/06, antonio rodriguez [EMAIL PROTECTED] wrote: Hi, Having a dataframe 'l1' (dput output is below): dim(l1) 1274 2 l1[1:12,] Var1 Freq 1 1988-01-131 2 1988-01-161 3 1988-01-203 4 1988-01-25

Re: [R] data in form of a date

2006-11-22 Thread antonio rodriguez
James J. Roper escribió: Dear all, I often use dates and times in analyses. I just can't figure out how to format my date or time column in R. So, apparently R sees the date as something other than date (character). Let's say I am opening a CSV file, one of the columns of which is a

Re: [R] how to loop this?[Solved]

2006-11-24 Thread antonio rodriguez
output. HTH Petr Dear Petr, It works great!! Many Thanks, Antonio On 23 Nov 2006 at 21:06, antonio rodriguez wrote: Date sent:Thu, 23 Nov 2006 21:06:18 +0100 From: antonio rodriguez [EMAIL PROTECTED] To: R-Help r-help@stat.math.ethz.ch

[R] adding elemens to a list

2006-11-26 Thread antonio rodriguez
Hi, I have a list of 20 elements, each of them of variable length and with a structure like this: lasker[[1]][1:10,] Var1 Freq 1 1988-023 2 1988-031 3 1988-041 4 1988-052 5 1988-063 6 1988-071 7 1988-081 8 1988-091 9 1989-031 10 1989-04

Re: [R] adding elemens to a list

2006-11-26 Thread antonio rodriguez
(zz)] - 0 Suggest you read the zoo vignette: vignette(zoo) Gabor, Once again, thanks! BR Antonio On 11/26/06, antonio rodriguez [EMAIL PROTECTED] wrote: Hi, I have a list of 20 elements, each of them of variable length and with a structure like this: lasker[[1]][1:10

[R] filled.contour and NA's

2006-11-29 Thread antonio rodriguez
Hi, I'm trying to do a filled.contour plot where some points are labelled as NA. How do I could plot this kind of graphics, so NA points are coloured black, keeping the levels of remaining points. NA's values represent land points (meaningless), and what I want to plot is the levels of a

Re: [R] filled.contour and NA's

2006-12-08 Thread antonio rodriguez
Hi Gustaf I'm having the same issue myself. What I've ended up doing is replacing NA's with a big negative value, define levels as one color for negative values, and a regular scale above. How to define 'levels' as one color for negative values and a regular scale above? I don't know how

[R] na.approx and columns with NA's

2007-05-27 Thread antonio rodriguez
Hi, I have a object 'zoo': dim(zz) [1] 720 5551 where some columns only have NA's values (representing land data in a sea surface temperature dataset) I find straightforward the use of 'na.approx' for individual columns from the zz matrix, but when applied to the whole matrix:

Re: [R] na.approx and columns with NA's

2007-05-28 Thread antonio rodriguez
# TRUE for each column that has more than 1 non-NA idx - colSums(!!z, na.rm = TRUE) 1 idx [1] TRUE FALSE FALSE TRUE z[,idx] - na.approx(z[,idx]) z 1 1 3 NA 19 2 2 NA NA 20 3 3 NA NA 21 4 4 NA NA 22 5 5 NA NA 23 6 6 NA NA 24 On 5/27/07, antonio rodriguez [EMAIL PROTECTED] wrote

[R] zoo matrix manipulation

2007-06-01 Thread antonio rodriguez
Hi, I have this dataset where columns z1.3 and z1.4 are full of NA's. I want to perform some calculations in the remaining columns, but after doing this, I want to recontruct the original matrix. I can with: out - which( colMeans( is.na( z ) ) == 1 ) gd-z[, - out] select the columns full of

[R] aggregating daily values

2007-06-26 Thread antonio rodriguez
Hi, I swear I have read almost all the posted messages about this issue, but it's evident I couldn't find an answer (surely esay) to my problem. What I want is the following: Make 8 days aggregates from a daily series like this (dput output): structure(c(6.91777181625366, 0.79051125049591,

Re: [R] aggregating daily values

2007-06-26 Thread antonio rodriguez
Achim Zeileis escribió: On Tue, 26 Jun 2007, antonio rodriguez wrote: Hi, I swear I have read almost all the posted messages about this issue, but it's evident I couldn't find an answer (surely esay) to my problem. What I want is the following: Make 8 days aggregates from a daily

Re: [R] Aggregate daily data into weekly sums

2007-07-23 Thread antonio rodriguez
Or, z-mydata #zoo object new.time - as.Date(7 * floor(as.numeric(time(z))/7) + 7) z2 - aggregate(z, new.time, mean) Henrique Dallazuanna escribió: Hi, Perhaps you can try: df Date Amount 1 2007-06-01 1 2 2007-06-01 1 3 2007-06-04 2 4 2007-06-05