Re: [R] R and HDF5 Question

2009-11-14 Thread Paul Hiemstra
ject.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Drs. Paul Hiemstra Department of Physical Geography Faculty of Geosciences University of Utrecht Heidelberglaan 2 P.O. Box 80.115 3508 TC Utrecht Phone: +3130 274

Re: [R] in excel i can sort my dataset, what do i use in R

2009-11-17 Thread Paul Hiemstra
Hi, Take a look at sort_df from the reshape package. cheers, Paul frenchcr schreef: In excel a handy tool is the sort data by column ...i.e. i can highlight the whole dataset and sort it according to a particular column...like sort the data in a column in acending or decending order where all

Re: [R] How to install older version of R?

2009-11-19 Thread Paul Hiemstra
code. -- Drs. Paul Hiemstra Department of Physical Geography Faculty of Geosciences University of Utrecht Heidelberglaan 2 P.O. Box 80.115 3508 TC Utrecht Phone: +3130 274 3113 Mon-Tue Phone: +3130 253 5773 Wed-Fri http://intamap.geo.uu.nl/~paul __ R-h

Re: [R] 2 functions in xyplot

2009-11-20 Thread Paul Hiemstra
on to panel.xyplot. hope this helps, Paul -- Drs. Paul Hiemstra Department of Physical Geography Faculty of Geosciences University of Utrecht Heidelberglaan 2 P.O. Box 80.115 3508 TC Utrecht Phone: +3130 274 3113 Mon-Tue Phone: +3130 253 5773 Wed-Fri http://intamap.geo.uu.nl/~paul __

Re: [R] AKIMA: z values at a set coordinate

2009-11-21 Thread Paul Hiemstra
.html and provide commented, minimal, self-contained, reproducible code. -- Drs. Paul Hiemstra Department of Physical Geography Faculty of Geosciences University of Utrecht Heidelberglaan 2 P.O. Box 80.115 3508 TC Utrecht Phone: +3130 274 3113 Mon-Tue Phone: +3130 253 5773 We

Re: [R] python

2009-11-21 Thread Paul Hiemstra
Hi Jean, You can integrate R and Python using RSPython or Rpy. But why would Python be faster than R? Both are interpreted languages and probably about as fast (please someone correct me if I'm wrong). It probably only help if there is a C mcmc implementation linked to python (that you link t

Re: [R] compiling addons

2009-11-23 Thread Paul Hiemstra
stephen sefick schreef: I am trying to compile the r.stream* set of addons. Ubuntu 9.10 64 bit I have installed the grass packages from the repositories I have also compiled grass 6.5 from source. I have taken the r.stream* from the addons svn and placed the sources in the grass source tree - in

Re: [R] problem selecting 330 to 30 longitude

2009-11-23 Thread Paul Hiemstra
Hi Nora, Take a look at using the sp-classes to represent spatial data. Take a look at the spatial task view [1] for some pointers on how to read data into sp-objects (rgdal package) and at solving your particular problem (overlay from the sp-package). Also you could consider reposting your q

Re: [R] Trellis Plot

2009-11-24 Thread Paul Hiemstra
ychu066 wrote: anyone know how to add text in the Trellis plot panel ?? i want to add things eg: dot dot dot. in the headrer of the panel. eg: http://old.nabble.com/file/p26486579/hist1.png hist1.png see panel.text() cheers, Paul -- Drs. Paul Hiemstra Department of Physical Geography

Re: [R] 11 distinguishable colors

2009-11-25 Thread Paul Hiemstra
ode. [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-co

Re: [R] Learning R - View datasets

2009-11-27 Thread Paul Hiemstra
uction to R [1]? cheers, Paul [1] http://cran.r-project.org/doc/manuals/R-intro.pdf -- Drs. Paul Hiemstra Department of Physical Geography Faculty of Geosciences University of Utrecht Heidelberglaan 2 P.O. Box 80.115 3508 TC Utrecht Phone: +3130 274 3113 Mon-Tue Phone: +3130 253 5773 Wed-Fri

Re: [R] Learning R

2009-11-30 Thread Paul Hiemstra
imal, self-contained, reproducible code. -- Drs. Paul Hiemstra Department of Physical Geography Faculty of Geosciences University of Utrecht Heidelberglaan 2 P.O. Box 80.115 3508 TC Utrecht Phone: +3130 274 3113 Mon-Tue Phone: +3130 253 5773 Wed-Fri http://intamap.geo.u

Re: [R] sequence of commands in R

2009-11-30 Thread Paul Hiemstra
print statements on both lines, as the others suggested. cheers, Paul -- Drs. Paul Hiemstra Department of Physical Geography Faculty of Geosciences University of Utrecht Heidelberglaan 2 P.O. Box 80.115 3508 TC Utrecht Phone: +3130 274 3113 Mon-Tue Phone: +3130 253 5773 Wed-Fri http://intamap.geo.uu.nl

Re: [R] Logistic geographical weighted regression

2009-12-04 Thread Paul Hiemstra
Paul -- Drs. Paul Hiemstra Department of Physical Geography Faculty of Geosciences University of Utrecht Heidelberglaan 2 P.O. Box 80.115 3508 TC Utrecht Phone: +3130 274 3113 Mon-Tue Phone: +3130 253 5773 Wed-Fri http://intamap.geo.uu.nl/~paul __ R-h

Re: [R] Saving predict

2009-12-04 Thread Paul Hiemstra
-- __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Drs. Paul Hiemstr

Re: [R] Please help with a basic function

2009-12-11 Thread Paul Hiemstra
ion deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Drs. Paul Hi

Re: [R] R & very large files

2009-12-16 Thread Paul Hiemstra
g guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Drs. Paul Hiemstra Department of Physical Geography Faculty of Geosciences University of Utrecht Heidelberglaan 2 P.O. Box 80.115 3508 TC Utrecht Phone: +3130 274 3113 Mon-Tue Ph

Re: [R] Exchange NAs for mean

2009-12-17 Thread Paul Hiemstra
d for a loop # Loops over the columns X2 = apply(X,2,function(column) { column[is.na(column)] = mean(column, na.rm = TRUE) return(column) }) X X2 Is this ok barry :). cheers, Paul -- Drs. Paul Hiemstra Department of Physical Geography Faculty of Geosciences University of Utrecht

Re: [R] Nested For loops

2009-12-22 Thread Paul Hiemstra
icial position of INBO, as long as the message is not confirmed by a duly signed document. __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and

Re: [R] moving from Windows to Linux - need help

2009-05-26 Thread Paul Hiemstra
ng-guide.html and provide commented, minimal, self-contained, reproducible code. -- Drs. Paul Hiemstra Department of Physical Geography Faculty of Geosciences University of Utrecht Heidelberglaan 2 P.O. Box 80.115 3508 TC Utrecht Phone: +3130 274 3113 Mon-Tue P

Re: [R] R-windows unsuccessful

2009-05-26 Thread Paul Hiemstra
.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Drs. Paul Hiemstra Department of Physical Geography Faculty of Geosciences University of Utrecht Heidelberglaan 2 P.O. Box 80.115 3508 TC Utrecht Phone: +3130 274 3113 Mon-Tue Phone: +3130 25

Re: [R] moving from Windows to Linux - need help

2009-05-26 Thread Paul Hiemstra
agree with Paul, right ? > Of course :-) BR Jarle Bjørgeengen -- Drs. Paul Hiemstra Department of Physical Geography Faculty of Geosciences University of Utrecht Heidelberglaan 2 P.O. Box 80.115 3508 TC Utrecht Phone: +3130 274 3113 Mon-Tue Phone: +3130 253 5773 Wed-Fri h

Re: [R] How to exclude a column by name?

2009-05-27 Thread Paul Hiemstra
nif(10), b = runif(10)) df[,-which(names(df) == "a")] cheers, Paul -- Drs. Paul Hiemstra Department of Physical Geography Faculty of Geosciences University of Utrecht Heidelberglaan 2 P.O. Box 80.115 3508 TC Utrecht Phone: +3130 274 3113 Mon-Tue Phone: +3130 253 5773 Wed-Fri http://int

Re: [R] Editor R

2009-06-02 Thread Paul Hiemstra
rg mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Drs. Paul Hiemstra Department of Physical Geography Faculty of Geosciences University

Re: [R] Good Programming Practice Question - Functions in Different Files

2009-06-09 Thread Paul Hiemstra
-guide.html and provide commented, minimal, self-contained, reproducible code. -- Drs. Paul Hiemstra Department of Physical Geography Faculty of Geosciences University of Utrecht Heidelberglaan 2 P.O. Box 80.115 3508 TC Utrecht Phone: +3130 274 3113 Mon-Tue Phone: +3130 253 57

Re: [R] [R-help] how to install own R withour root?

2009-06-09 Thread Paul Hiemstra
newer version. Make the name of the link in ~/bin/ something slightly different from R, such as RR or whatever you fancy. You then start R with that name. HTH -- Drs. Paul Hiemstra Department of Physical Geography Faculty of Geosciences University of Utrecht Heidelberglaan 2 P.O. B

Re: [R] plot two variograms on a same graph

2009-06-10 Thread Paul Hiemstra
! Cordialement Damien Landais __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible cod

Re: [R] Integrate function in R

2009-06-11 Thread Paul Hiemstra
]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Drs. Paul Hiemstra Department of Physical

Re: [R] 'Errors' with Ubuntu

2009-06-14 Thread Paul Hiemstra
Hi, As Uwe said, this is not really the place to get support for Ubuntu. They have excellent forums. But the problem seems to be that GRUB was not correctly installed. Run an ubuntu live cd and reinstall GRUB from that. The command might be grub-install, but i'm not sure cheers, Paul Le

Re: [R] Markov chains

2009-06-15 Thread Paul Hiemstra
the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. RSiteSearch("markov chain") -- Drs. Paul Hiemstra Department of Physical Geography Faculty of Geosciences University of Utrecht Heidelberglaan 2 P.O. Box 8

Re: [R] A beginner's question

2009-03-27 Thread Paul Hiemstra
1) cheers, Paul -- Drs. Paul Hiemstra Department of Physical Geography Faculty of Geosciences University of Utrecht Heidelberglaan 2 P.O. Box 80.115 3508 TC Utrecht Phone: +3130 274 3113 Mon-Tue Phone: +3130 253 5773 Wed-Fri http://intamap.geo.uu.nl/~paul _

Re: [R] Sweave, using xtable in a loop doesnt work?

2009-04-02 Thread Paul Hiemstra
R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Hi, Try adding a print statement around the xtable command. cheers, Paul -- Dr

Re: [R] Installation of all packages under Unix

2009-04-02 Thread Paul Hiemstra
sk View, a sizeable amount. A question: why would you want to install all R pacakges. It is not very likely that you are going to use them all. cheers, Paul -- Drs. Paul Hiemstra Department of Physical Geography Faculty of Geosciences University of Utrecht Heidelberglaan 2 P.O. Box 80.115 3508 TC Utr

Re: [R] downloading r 2.9.0

2009-04-28 Thread Paul Hiemstra
-- Drs. Paul Hiemstra Department of Physical Geography Faculty of Geosciences University of Utrecht Heidelberglaan 2 P.O. Box 80.115 3508 TC Utrecht Phone: +3130 274 3113 Mon-Tue Phone: +3130 253 5773 Wed-Fri http://intamap.geo.uu.nl/~paul __ R-help@r

Re: [R] Giving parameters from shell

2010-01-14 Thread Paul Hiemstra
reproducible code. Hi, Add the following shebang line at the top of your script: #! /path/to/Rscript The following lines will get you the parameters passed on by the user: args = commandArgs(TRUE) cheers, Paul -- Drs. Paul Hiemstra Department of Physical Geography Faculty of Geosciences

Re: [R] Can I save R graphs as a R objects

2010-01-15 Thread Paul Hiemstra
pt to just before making the graph and save all the appropriate objects to disk. Next time you only need to load your data (see ?load) and make the plot. cheers, Paul -- Drs. Paul Hiemstra Department of Physical Geography Faculty of Geosciences University of Utrecht Heidelberglaan 2 P.O. Box 80.115

Re: [R] Updating R on Linux

2010-01-21 Thread Paul Hiemstra
ld be fine using the package manager. cheers, Paul [1] http://cran.r-project.org/bin/linux/suse/ -- Drs. Paul Hiemstra Department of Physical Geography Faculty of Geosciences University of Utrecht Heidelberglaan 2 P.O. Box 80.115 3508 TC Utrecht Phone: +3130 274 3113 Mon-Tue Phone: +3130 253 57

Re: [R] Extract R-squared from summary of lm

2010-01-22 Thread Paul Hiemstra
summary(lm(speed~dist, cars))$r.squared summary(lm(speed~dist, cars))$adj.r.squared cheers, Paul -- Drs. Paul Hiemstra Department of Physical Geography Faculty of Geosciences University of Utrecht Heidelberglaan 2 P.O. Box 80.115 3508 TC Utrecht Phone: +3130 274 3113 Mon-Tue Phone: +3130 253

Re: [R] read multiple large files into one dataframe

2010-01-25 Thread Paul Hiemstra
})) Now d has an additional column identifying which filename it originally belonged to. cheers, Paul -- Drs. Paul Hiemstra Department of Physical Geography Faculty of Geosciences University of Utrecht Heidelberglaan 2 P.O. Box 80.115 3508 TC Utrecht Phone: +3130 274 3113 Mon-Tue Phone: +3130

Re: [R] Matching a character in a string

2010-01-25 Thread Paul Hiemstra
king out items 1 and 4 as containing an "o". The first argument to grep is a regular expression, and this can be very powerful. For example, which words start with a "p": grep("^p", c("hello","pizza", "spam", "ogle")) Check o

Re: [R] R Output and ArcGIS

2010-01-25 Thread Paul Hiemstra
etter place to ask these kind of specific questions. good luck! Paul -- Drs. Paul Hiemstra Department of Physical Geography Faculty of Geosciences University of Utrecht Heidelberglaan 2 P.O. Box 80.115 3508 TC Utrecht Phone: +3130 274 3113 Mon-Tue P

Re: [R] How to sort data.frame

2010-01-27 Thread Paul Hiemstra
-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Drs. Paul Hiemstra Department of Physical Geography Faculty of Geosciences University of Utrecht Heidelberglaan 2 P.O. Box 80.115 3508 TC Ut

Re: [R] sp package coordinates and gridded problems with as.list()

2010-01-27 Thread Paul Hiemstra
vide commented, minimal, self-contained, reproducible code. -- Drs. Paul Hiemstra Department of Physical Geography Faculty of Geosciences University of Utrecht Heidelberglaan 2 P.O. Box 80.115 3508 TC Utrecht Phone: +3130 274 3113 Mon-Tue Phone: +3130 253 5773 Wed-Fri http://intamap.geo.uu

Re: [R] plotting the coordinates versus dates

2010-01-27 Thread Paul Hiemstra
f question. cheers, Paul -- Drs. Paul Hiemstra Department of Physical Geography Faculty of Geosciences University of Utrecht Heidelberglaan 2 P.O. Box 80.115 3508 TC Utrecht Phone: +3130 274 3113 Mon-Tue Phone: +3130 253 5773 Wed-Fri http://intamap.geo.u

Re: [R] NA Replacement by lowest value?

2010-01-28 Thread Paul Hiemstra
l, self-contained, reproducible code. -- Drs. Paul Hiemstra Department of Physical Geography Faculty of Geosciences University of Utrecht Heidelberglaan 2 P.O. Box 80.115 3508 TC Utrecht Phone: +3130 274 3113 Mon-Tue Phone: +3130 253 5773 Wed-Fri http://intamap.geo.uu.nl/~paul ___

Re: [R] contour function: changing colour according to different levels

2010-02-03 Thread Paul Hiemstra
/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Please read the posting guide and provide a small working example of your problem. My guess would be to look at the col= argument. cheers, Paul -- Drs. Paul Hiemstra Department of Physical Geography Faculty of

Re: [R] Changing fonts of axis labels in Histogram() function

2010-02-04 Thread Paul Hiemstra
eleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Drs. Paul Hiemstra D

Re: [R] evolution of Nelder-Mead process

2010-02-08 Thread Paul Hiemstra
() function, it has Nelder-Mead implemented. cheers, Paul -- Drs. Paul Hiemstra Department of Physical Geography Faculty of Geosciences University of Utrecht Heidelberglaan 2 P.O. Box 80.115 3508 TC Utrecht Phone: +3130 274 3113 Mon-Tue Phone: +3130 253 5773 Wed-Fri http://intamap.geo.uu.nl/~paul

Re: [R] Graphics question: How to create a changing "smudge factor" for overlapping lines?

2010-06-16 Thread Paul Hiemstra
- [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/post

Re: [R] an alternative to R for nonlinear stat models

2010-06-16 Thread Paul Hiemstra
ways, where the first takes minutes and the second 1-2 seconds. Furthermore, you are giving us no option to defend R ;). cheers, Paul -- Drs. Paul Hiemstra Department of Physical Geography Faculty of Geosciences University of Utrecht Heidelberglaan 2 P.O. Box 80.115 3508 TC Utrecht Phone:

Re: [R] R software

2010-06-16 Thread Paul Hiemstra
help me to download English or Russian version for Windows (intel865). You may send a link. Best regards, Hi, You could also try downloading R from different mirrors, see if that helps. cheers, Paul -- Drs. Paul Hiemstra Department of Physical Geography Faculty of Geosciences University

Re: [R] Confused: Looping in dataframes

2010-06-25 Thread Paul Hiemstra
ing? I also want to be able to extract data like coef's, errors (MAPE,MSE etc.) Thanks and regards, Phani -- Drs. Paul Hiemstra Department of Physical Geography Faculty of Geosciences University of Utrecht Heidelberglaan 2 P.O. Box 80.115 3508 TC Utrecht Phone: +3130 253 5773 http://intamap

Re: [R] POSIXlt error for 1982-01-01

2010-07-14 Thread Paul Hiemstra
ing-guide.html and provide commented, minimal, self-contained, reproducible code. -- Drs. Paul Hiemstra Department of Physical Geography Faculty of Geosciences University of Utrecht Heidelberglaan 2 P.O. Box 80.115 3508 TC Utrecht Phone: +3130 253 5773 http://intamap.geo.uu.nl/~paul http://nl.lin

Re: [R] Recommended way of requiring packages of a certain version?

2010-07-16 Thread Paul Hiemstra
Hi Allan, When you create an R package you can specify in the DESCRIPTION file that your package depends on a certain R version and versions of packages. For example: Package: automap Version: 1.0-7 Date: 2010/05/04 Title: Automatic interpolation package Author: Paul Hiemstra Maintainer

Re: [R] Saveing plot to multiple locations

2010-09-13 Thread Paul Hiemstra
'raw',1024*1024) Ive tryed to move around the png and pdf part to see if it worked better if they where in an other order but as I said without success. //Joel -- Drs. Paul Hiemstra Department of Physical Geography Faculty of Geosciences University of Utrecht Heidelberglaan 2 P.

Re: [R] Mapping the coordinates!

2010-10-11 Thread Paul Hiemstra
and provide commented, minimal, self-contained, reproducible code. -- Drs. Paul Hiemstra Department of Physical Geography Faculty of Geosciences University of Utrecht Heidelberglaan 2 P.O. Box 80.115 3508 TC Utrecht Phone: +3130 253 5773 http://intamap.geo.uu.nl/~paul http://nl.linkedin.com

Re: [R] using grib files in R

2010-08-06 Thread Paul Hiemstra
posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Drs. Paul Hiemstra Department of Physical Geography Faculty of Geosciences University of Utrecht Heidelberglaan 2 P.O. Box 80.115 3508 TC Utrecht Phone: +3130 253 5773

Re: [R] R code for EGARCH

2010-08-06 Thread Paul Hiemstra
commented, minimal, self-contained, reproducible code. -- Drs. Paul Hiemstra Department of Physical Geography Faculty of Geosciences University of Utrecht Heidelberglaan 2 P.O. Box 80.115 3508 TC Utrecht Phone: +3130 253 5773 http://intamap.geo.uu.nl/~paul http://nl.linkedin.com/pub/paul

Re: [R] Turning a source into a Package

2010-08-11 Thread Paul Hiemstra
like Jim Lemon suggested, is a better option. regards, Paul -- Drs. Paul Hiemstra Department of Physical Geography Faculty of Geosciences University of Utrecht Heidelberglaan 2 P.O. Box 80.115 3508 TC Utrecht Phone: +3130 253 5773 http://intamap.geo.uu.nl/~paul http://nl.linkedin.com/pub

Re: [R] Automated plot and linear regression line/data

2010-08-17 Thread Paul Hiemstra
?plot ?lattice:::xyplot ?lm cheers, Paul -- Drs. Paul Hiemstra Department of Physical Geography Faculty of Geosciences University of Utrecht Heidelberglaan 2 P.O. Box 80.115 3508 TC Utrecht Phone: +3130 253 5773 http://intamap.geo.uu.nl/~paul http://nl.linkedin.com/pub/paul-hiemstra/20/30b/770

Re: [R] ifelse command

2010-08-18 Thread Paul Hiemstra
1:n){ x<-sample(1:6,n,replace=TRUE,prob=c(1,1,2,3,2,1)/10) x=runif(n) ifelse((x<=1/10),{y[i]<-1}, ifelse((x<=2/10),{y[i]<-2}, ifelse((x<=4/10),{y[i]<-3}, ifelse((x<=7/10),{y[i]<-4}, ifelse((x<=9/10),{y[i]<-5},{y[i]<-6}) } bar<-barplot(table(y)) table&l

Re: [R] how do I transform this to a for loop

2010-09-06 Thread Paul Hiemstra
arima(data.ts[10:210], order = c(1,1,1)) arima4<- arima(data.ts[15:215], order = c(1,1,1)) arima5<- arima(data.ts[20:220], order = c(1,1,1)) arima6<- arima(data.ts[25:225], order = c(1,1,1)) arima7<- arima(data.ts[30:230], order = c(1,1,1)) arima8<- arima(data.ts[35:235], order = c(

Re: [R] replacing functions

2010-09-06 Thread Paul Hiemstra
list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Drs. Paul Hiemstra Department of Physical Geography Faculty of Geosciences University of Ut

Re: [R] Finding the two most recent dates

2010-09-06 Thread Paul Hiemstra
e_1st_event-bp_date and then aggregate by min. I'm not sure how to find the two most recent dates. Are there some functions that can help me or will I have to write a function from scratch. Any help just to point me in the right direction. Thanks, Natalie -- Drs. Paul Hiemstra Departme

Re: [R] Loop over a split string

2011-05-11 Thread Paul Hiemstra
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. -- Paul Hiemstra, MSc Global Climate Division Royal Netherlands Meteorological Institute (KNMI) Wilhelminalaan 10 | 3732 GK | De Bilt | Kamer B 3.39

Re: [R] references in R

2011-05-24 Thread Paul Hiemstra
-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. -- Paul Hiemstra, Ph.D. Global Climate Division Royal Net

Re: [R] How to call an external program/web page under R for Mac OS?

2011-05-24 Thread Paul Hiemstra
ee ?system for executing external calls... cheers, Paul -- Paul Hiemstra, Ph.D. Global Climate Division Royal Netherlands Meteorological Institute (KNMI) Wilhelminalaan 10 | 3732 GK | De Bilt | Kamer B 3.39 P.O. Box 201 | 3730 AE | De Bilt tel: +31 30 2206 494 http://intamap.g

Re: [R] How could I get the percent of variance explained by each axis if I use prcomp to predict new dataset?

2010-05-06 Thread Paul Hiemstra
he pca axis, taking the square gives the variance. cheers, Paul -- Drs. Paul Hiemstra Department of Physical Geography Faculty of Geosciences University of Utrecht Heidelberglaan 2 P.O. Box 80.115 3508 TC Utrecht Phone: +3130 274 3113 Mon-Tue Phone: +3130 253 5773 Wed-Fri http://intamap.geo.uu.n

Re: [R] extracting coordinates from SpatialPolygonsDataFrame using slot functions

2010-05-06 Thread Paul Hiemstra
ore details. cheers, Paul ps The r-sig-geo list migh get you more response than R-help. -- Drs. Paul Hiemstra Department of Physical Geography Faculty of Geosciences University of Utrecht Heidelberglaan 2 P.O. Box 80.115 3508 TC Utrecht Phone: +3130 274 3113 Mon-Tue Phone: +3130 253 5773 Wed

Re: [R] x y plot with z coordinate scaling to a color value

2010-05-19 Thread Paul Hiemstra
roject.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Drs. Paul Hiemstra Department of Physical Geography Faculty of Geosciences Uni

Re: [R] This is supposed to predict a time series?!

2011-03-08 Thread Paul Hiemstra
osting-guide.html > and provide commented, minimal, self-contained, reproducible code. Are we seriously supposed to respond to this question? PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Paul

Re: [R] Error: cannot allocate vector of size

2011-03-26 Thread Paul Hiemstra
o/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Paul Hiemstra, MSc Department of Physical Geography Faculty of Geosciences University of Utrecht Heidelberglaan 2 P.O. Box 80.115 3508

Re: [R] Is function compiled code or not?

2011-04-08 Thread Paul Hiemstra
P = FALSE)$dis An easy way to look at sources is to type the command at the command line without the parentheses, e.g.: > daisy cheers, Paul -- Paul Hiemstra, MSc Global Climate Division Royal Netherlands Meteorological Institute (KNMI) Wilhelminalaan 10 | 3732 GK | De Bilt | Kamer B 3.39

Re: [R] How do I make this faster?

2011-04-11 Thread Paul Hiemstra
;> values <- values[order(correlations, decreasing=T)] >> write.table(values, file=commandArgs(trailingOnly=T)[2], sep='', >> qmethod=NULL, quote = F, row.names=F, col.names=F) >> rm('currencies', 'correlations', 'values', &#x

Re: [R] predict

2011-04-15 Thread Paul Hiemstra
mented, minimal, self-contained, reproducible code. -- Paul Hiemstra, MSc Global Climate Division Royal Netherlands Meteorological Institute (KNMI) Wilhelminalaan 10 | 3732 GK | De Bilt | Kamer B 3.39 P.O. Box 201 | 3730 AE | De Bilt tel: +31 30 2206 494 http://intamap.geo.uu.nl/~paul http://nl.linked

Re: [R] slow computation of functions over large datasets

2011-08-04 Thread Paul Hiemstra
[i-1,"orderAmount"]+exampledata2[i,"itemPrice"],exampledata2[i,"itemPrice"])}) > > > > Does someone know a way to increase the speed? > > > Thank you very much! > > Caroline > > [[alternative HTML version deleted]] > > &

Re: [R] Matlab to R

2011-08-09 Thread Paul Hiemstra
gt; R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. -- Paul Hiemstra, Ph.D. Global Climate Division Royal Ne

Re: [R] plot 3d info in 2d

2011-08-10 Thread Paul Hiemstra
ge I would use to do this kind of plots. However, without "commented, minimal, self-contained, reproducible code" I cannot provide an example of how to do it. cheers, Paul -- Paul Hiemstra, Ph.D. Global Climate Division Royal Netherlands Meteorological Institute (KNMI) Wilhelminalaan 1

Re: [R] plot 3d info in 2d

2011-08-10 Thread Paul Hiemstra
a = dat) + geom_point(size = 6) + scale_color_gradient(low = 'white', high = 'blue') cheers, Paul -- Paul Hiemstra, Ph.D. Global Climate Division Royal Netherlands Meteorological Institute (KNMI) Wilhelminalaan 10 | 3732 GK | De Bilt | Kamer B 3.39 P.O. Box 201 | 3730

Re: [R] help with loops

2011-08-12 Thread Paul Hiemstra
)} >>> Error: no function to return from, jumping to top level >>> >>> Thank you. >>> srini >>> >>> __ >>> R-help@r-project.org <http://mc/compose?to=R-help@r-project.org> mailing

Re: [R] How to apply a function to subsets of a data frame *and* obtain a data frame again?

2011-08-17 Thread Paul Hiemstra
t; https://stat.ethz.ch/mailman/listinfo/r-help >> PLEASE do read the posting guide http://www.R-project.org/posting- >> guide.html >> and provide commented, minimal, self-contained, reproducible code. > __ > R-help@r-project.org mailing li

Re: [R] how to get the result in "short cut" manner?

2011-08-17 Thread Paul Hiemstra
___ >> R-help@r-project.org mailing list >> https://stat.ethz.ch/mailman/listinfo/r-help >> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html >> and provide commented, minimal, self-contained, reproducible code. -- Paul Hie

Re: [R] How to apply a function to subsets of a data frame *and* obtain a data frame again?

2011-08-17 Thread Paul Hiemstra
= >>> Value) >> Or slightly more succinctly: >> >> ddply(df, .(Group), mutate, edf = edf(Value)) >> >> Hadley >> >> -- >> Assistant Professor / Dobelman Family Junior Chair >> Department of Statistics / Rice University >> http://had.co

Re: [R] More efficient option to append()?

2011-08-19 Thread Paul Hiemstra
> Thanks in advance. > Alex > > __ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, se

Re: [R] More efficient option to append()?

2011-08-19 Thread Paul Hiemstra
>> https://stat.ethz.ch/mailman/listinfo/r-help >> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html >> and provide commented, minimal, self-contained, reproducible code. > __ > R-help@r-project.org mailing l

Re: [R] More efficient option to append()?

2011-08-19 Thread Paul Hiemstra
ith operations on relatively large vectors. Why > is this so inefficient? And what would be the smart way to do this? > > Thanks in advance. > Alex > > __ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-h

Re: [R] ddply from plyr package - any alternatives?

2011-08-25 Thread Paul Hiemstra
___ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. -- Paul Hiemstra, Ph.D. Global Climate D

Re: [R] Regression by factor using "sapply"

2011-08-25 Thread Paul Hiemstra
gt; R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. -- Paul Hiemstra, Ph.D. Global Climate Divisi

Re: [R] apply function to spatial grid data frame to calculate CTI

2011-08-25 Thread Paul Hiemstra
kage, this might also be more intuitive for you. In addition, there is a special mailing list for spatial tasks, r-sig-geo. These kinds of questions are more suitable for that mailing list. cheers, Paul -- Paul Hiemstra, Ph.D. Global Climate Division Royal Netherlands Meteorological Institute (KNMI)

Re: [R] ddply from plyr package - any alternatives?

2011-08-26 Thread Paul Hiemstra
r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. -- Paul Hiemstra, Ph.D. Global Climate Division Royal Ne

Re: [R] algorithm to merge same entries in a matrix

2011-08-31 Thread Paul Hiemstra
#x27;d',NA,'c',NA,NA, NA, 'c'), 3,3, byrow=TRUE) ). > > > > Can perhaps someone give me some hints how to solve this efficiently? > > I think I could solve that with some loops … but I also need to make sure > that it is efficient / not taking too much tim

Re: [R] missing R.dll file

2011-09-01 Thread Paul Hiemstra
resent. If not, try reinstalling R and see if the problem persists. good luck, Paul -- Paul Hiemstra, Ph.D. Global Climate Division Royal Netherlands Meteorological Institute (KNMI) Wilhelminalaan 10 | 3732 GK | De Bilt | Kamer B 3.39 P.O. Box 201 | 3730 AE | De Bilt tel: +31 30 2206 494 http://i

Re: [R] !!!function to do the knn!!!

2011-09-01 Thread Paul Hiemstra
ally set the parameters at just "classification" in []Task > Views and []functions but that list was too long. > Candidate for fortunes? Paul -- Paul Hiemstra, Ph.D. Global Climate Division Royal Netherlands Meteorological Institute (KNMI) Wilhelminalaan 10 | 3732 G

Re: [R] save grid

2011-09-01 Thread Paul Hiemstra
rrently supported. > > Please help me > [[alternative HTML version deleted]] > > > > __ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > a

Re: [R] ggplot2 to create a "square" plot

2011-09-02 Thread Paul Hiemstra
ide commented, minimal, self-contained, reproducible code. >> >> > __ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-g

Re: [R] Hessian Matrix Issue

2011-09-06 Thread Paul Hiemstra
> https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. -- Paul Hiemstra, Ph.D. Global Climate Division Royal Netherlands Meteorological Institute

Re: [R] Receive "unable to load shared object RNetCDF.o" during R INSTALL of RNetCDF

2011-09-06 Thread Paul Hiemstra
gt; Error: loading failed > Execution halted > ERROR: loading failed > * removing ‘/soft/local/r/R-2.13.1/lib64/R/library/RNetCDF’ > [swadm@boar01]/soft/local/temp% > > __ > R-help@r-project.org mailing list > https://stat.ethz.ch

Re: [R] How do I define moving window fequency

2011-09-06 Thread Paul Hiemstra
, reproducible code. I would take a look at the 'raster' package. Furthermore, these kinds of questions might be more suitable for the r-sig-geo mailing list. Paul -- Paul Hiemstra, Ph.D. Global Climate Division Royal Netherlands Meteorological Institute (KNMI) Wilhelminalaan 10 | 37

Re: [R] ggplot2-grid/viewport and PNG

2011-09-06 Thread Paul Hiemstra
mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. see ?ggsave. btw, have you considered using facetting in stead of plotting several plots manually? Paul -- Paul Hiemstra,

Re: [R] write.matrix row names vs sink vs capture.output

2011-09-06 Thread Paul Hiemstra
a quite common format for storing data. Maybe you can even find a standard binary format which you can use. But it is impossible to comment on this because you did not provide information as to what you want to do with the saved data. good luck! Paul -- Paul Hiemstra, Ph.D. Global Climate Division

<    1   2   3   4   >