Re: [R] error on Windows OS [SEC=UNCLASSIFIED]

2010-05-31 Thread Augusto.Sanabria
Hi M. Ribeiro, For Windows you need to download the correct package (*.zip) not the Linux package. Once the windows package has been downloaded into a directory, you can install it directly from the R shell, see Packages > install packages from local zip files. Once the package has been installed

Re: [R] How could I use a function saved in one file ? [SEC=UNCLASSIFIED]

2010-05-02 Thread Augusto.Sanabria
Lowie, You can save the function in a file called 'P_value.txt' or something like it (I prefer 'P_value.r'). Then you load the function into your R session by Using: Source("P_value.txt",sep="") ). It is better if you keep all your R functions into The same directory, say directory "my_rfunc", T

Re: [R] Loading data from folder [SEC=UNCLASSIFIED]

2010-01-31 Thread Augusto.Sanabria
Hi Mark, You can use: all_files <- dir(pattern="Data") One_file <- all_files[1] Is this what you want? Cheers, Augusto Augusto Sanabria. MSc, PhD. Mathematical Modeller Risk & Impact Analysis Group Geospatial & Earth Monitoring Division Geoscience A

Re: [R] Installling source package [SEC=UNCLASSIFIED]

2010-01-31 Thread Augusto.Sanabria
Steven, Package 'XML_2.6-0.tar.gz' is the Linux version, it doesn't unpack in Windows. For Windows you need to download and instal: 'XML_2.6-0.zip'. Which is available from: http://www.stats.ox.ac.uk/pub/RWin/bin/windows/contrib/2.10/ Cheers, Augusto

[R] Problem with EXtRemes GUI [SEC=UNCLASSIFIED]

2010-01-17 Thread Augusto.Sanabria
Dear list-members, I am moving some of my heavy processing to a new machine (running SuSE Enterprise Linux 10 SP2) and I need packages 'extRemes' and 'ismev'loaded within a BATCH process (to calculate a confidence interval in a GPD model using the profile likelihood method). My problem is that

[R] Overlying a map on top of an image [SEC=UNCLASSIFIED]

2009-03-26 Thread Augusto.Sanabria
Good day everyone, I have a *.jpeg map and I want to display it on top of an existing image (created using 'image'), Is there an easy way to do it? "map" does the job but only with pre-existing maps (from its database) not with my map. I would greatly appreciate any help in this matter. Thanks,

Re: [R] roll weekly data to monthly level [SEC=UNCLASSIFIED]

2009-01-12 Thread Augusto.Sanabria
Julia, I had a similar query a while ago which I solved using a suggestion from Gabor, have a look at: http://finzi.psych.upenn.edu/R/Rhelp02a/archive/69597.html Hope it helps, Augusto Augusto Sanabria. MSc, PhD. Mathematical Modeller Risk & Impact

Re: [R] How to fetch specific part from a number of Text files? [SEC=UNCLASSIFIED]

2008-12-15 Thread Augusto.Sanabria
Megh, You can capture all your external files into R using: All_files <- dir(pattern="txt") Then read files one by one and insert the contents from section 2, say, in line 10, to section 3, say in line 40, into file "cont": no_files <- length(All_files) cont <- vector("list",no_files) for(i in 1:

[R] Complex demodulation [SEC=UNCLASSIFIED]

2008-12-14 Thread Augusto.Sanabria
I am trying to complex demodulate a time-series data (eg geomagnetic field time series) at different frequencies. I wonder whether there is an R package implementing the complex demodulation method. Any information about this would be greatly appreciated. Regards, Augusto ---

Re: [R] simulation study using R [SEC=UNCLASSIFIED]

2008-03-03 Thread Augusto.Sanabria
Davood, I developed an MC simulation model for wind hazard analysis last year. I found three important issues to increase efficiency: 1) Reuse most variables in each loop 2) Write results (1000 stats) to external files, perhaps one file for each condition. (a good ID for each file can be implement

[R] R workshop in Canberra (Australia) [SEC=UNCLASSIFIED]

2008-02-19 Thread Augusto.Sanabria
A one-day workshop on the R programming environment has been organised by the Centre for Mathematics and its Applications (Australian National University) and Geoscience Australia in Canberra on Monday 3-March 2008. Registration fee is AUD$150 (students: $100). The workshop will be conducted by