Re: [R] Loading Dataset into R continual issue

2012-03-21 Thread Paul Hiemstra
e is also better from a design point of view: having them in one data.frame already groups together variables (columns) that share a common background. In addition: PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, *repro

Re: [R] How can we access element(s) of a time series object?

2012-02-16 Thread Paul Hiemstra
On 02/16/2012 08:08 AM, jpm miao wrote: > FRW<-ts(FRW0, frequency=4, start=c(1978,1)) Please make your example reproducible, we do not have FRW0. cheers, Paul -- Paul Hiemstra, Ph.D. Global Climate Division Royal Netherlands Meteorological Institute (KNMI) Wilhelminalaan 10 | 3732 GK | D

Re: [R] R enterprise for linux

2012-02-06 Thread Paul Hiemstra
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 (KNMI) Wilhelminalaan 10 | 3732 GK | De Bilt | Kamer B 3.39 P.O. Box 201 | 3730 AE | De Bi

Re: [R] creating more vectors out of one

2012-02-06 Thread Paul Hiemstra
tps://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] Writing out data

2012-02-02 Thread Paul Hiemstra
ling 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, write.csv also supports an append argument. Maybe that is faster than usi

Re: [R] simple ggplot2 question

2011-12-23 Thread Paul Hiemstra
er done for us? > ~~ > [[alternative HTML version deleted]] > > > > __ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > P

Re: [R] GIS operations

2011-12-23 Thread Paul Hiemstra
On 12/20/2011 12:54 PM, Antonio Rodriges wrote: > Hello, > > Is there a way to find points in SpatialPoints which lie inside a given > Polygon? > Hi, Take a look at the over function from the sp-package. Paul -- Paul Hiemstra, Ph.D. Global Climate Division Royal Netherlands

Re: [R] i can't read large NETCDF file like CRU

2011-12-12 Thread Paul Hiemstra
for some more hints. regards, Paul ps This question might be more suitable for R-sig-geo ps2 You could use the raster package to analyse the data on the harddrive (not reading all data in from disk) -- Paul Hiemstra, Ph.D. Global Climate Division Royal Netherlands Meteorological Institute (KNMI)

Re: [R] Script analysing

2011-12-12 Thread Paul Hiemstra
le.com. > > __ > 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, reproducib

Re: [R] Script analysing

2011-12-12 Thread Paul Hiemstra
le.com. > > __ > 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, reproducibl

Re: [R] shorter way of coding

2011-12-12 Thread Paul Hiemstra
rah already commented, without a reproducible piece of example code we cannot present any working solutions. 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 | D

Re: [R] ggplot with geom_tile

2011-12-09 Thread Paul Hiemstra
> Saskia van Pelt > > __ > 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,

Re: [R] Problem subsetting: undefined columns

2011-12-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. -- Paul Hiemstra, Ph.D. Globa

Re: [R] R2Cuba package, failed with message ‘Dimension out of range’

2011-12-02 Thread Paul Hiemstra
//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 (KNMI) Wilhelm

Re: [R] Notation

2011-11-30 Thread Paul Hiemstra
ject.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 Netherlands Mete

Re: [R] Generalized singular value decomposition

2011-11-30 Thread Paul Hiemstra
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 (KNMI) Wilhelminalaan 10 | 3732 GK | De Bilt | Kamer B 3.39 P.

Re: [R] Reading a file w/ two delimiters

2011-11-18 Thread Paul Hiemstra
, > > Jim > > > The contents of this e-mail are intended for the named a...{{dropped:6}} > > __ > 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 >

Re: [R] libpng warning: Application built with libpng-1.2.26 but running with 1.5.2

2011-11-18 Thread Paul Hiemstra
`svn rev` > [1] "57496" > > $language > [1] "R" > > $version.string > [1] "R version 2.14.0 (2011-10-31)" > >> RStudio.version() > [1] "0.94.84" > > [[alternative HTML version deleted]] > > ____

Re: [R] libpng warning: Application built with libpng-1.2.26 but running with 1.5.2

2011-11-18 Thread Paul Hiemstra
`svn rev` > [1] "57496" > > $language > [1] "R" > > $version.string > [1] "R version 2.14.0 (2011-10-31)" > >> RStudio.version() > [1] "0.94.84" > > [[alternative HTML version deleted]] > > ____

Re: [R] Apply functions along "layers" of a data matrix

2011-11-18 Thread Paul Hiemstra
plyr) ddply(daf, .(rep), summarise, mn = mean(v1)) hope this helps, 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

Re: [R] Spatial Statistics using R

2011-11-17 Thread Paul Hiemstra
online course by the ITC: http://www.itc.nl/Pub/Study/Courses/C12-GFM-DE-02 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

Re: [R] troubles installing R

2011-11-01 Thread Paul Hiemstra
On 11/01/2011 09:50 AM, Prof Brian Ripley wrote: > On Tue, 1 Nov 2011, Paul Hiemstra wrote: > >> On 10/31/2011 06:30 PM, Cable, Sam B Civ USAF AFMC AFRL/RVBXI wrote: >>> I am trying to install R on a pretty up-to-date CentOS system. I have >>> tried installing 2.1

Re: [R] troubles installing R

2011-11-01 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 Division Royal Neth

Re: [R] rle for non concecutive

2011-10-31 Thread Paul Hiemstra
R >> Alex >> >>[[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.ht

Re: [R] 3 Overlayed simple plots

2011-10-31 Thread Paul Hiemstra
x(value), min_power = min(value), mean_power = mean(value)) # Reorder dataset for ggplot dat_ggplot = melt(dat_power, id.vars = c("tstep")) ## Make the plot ggplot(aes(x = tstep, y = value, color = variable), data = dat_ggplot) + geom_line() To change the colors of th

Re: [R] plotting large time series

2011-10-28 Thread Paul Hiemstra
>>> myts = as.ts(start=myDate[1],end=myDate[length(myDate)],x=myFile[,1]) >>> plot.ts(myts,xlab="Date") >>> >>> produces the same file size. >>> >>> for storing the PDF I use: >>> pdf(file=paste(outpath,"myPDF.pdf",sep=&#

Re: [R] Problem Installing a local package in linux

2011-10-27 Thread Paul Hiemstra
/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 Insti

Re: [R] Fitting Maximums of data series with cubic spline

2011-10-27 Thread Paul Hiemstra
ake a look at the splines package. 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://intamap.geo.uu.nl/~paul

Re: [R] Using functions written in Fortran in R

2011-10-27 Thread Paul Hiemstra
On 10/27/2011 12:13 PM, Duncan Murdoch wrote: > On 11-10-27 8:02 AM, Paul Hiemstra wrote: >> On 10/27/2011 04:24 AM, John Sorkin wrote: >>> Windows XP >>> R 2.12 >>> >>> I am trying to understand how I can take a subroutine (i.e. >>> function)

Re: [R] Using functions written in Fortran in R

2011-10-27 Thread Paul Hiemstra
On 10/27/2011 04:24 AM, John Sorkin wrote: > Windows XP > R 2.12 > > I am trying to understand how I can take a subroutine (i.e. function) I have > written in Fortran, and call the function in R. I need to know (1) where I > should store the Fortran subroutine (2) how to prepare the function for

Re: [R] listing all occurrences in a vector

2011-10-19 Thread Paul Hiemstra
t; D +45 32 34 15 10 > www.iva.dk/jf > > > > > > __ > 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 prov

Re: [R] Histogram for each ID value

2011-10-17 Thread Paul Hiemstra
data[,1] == "chr7", 2]) > hist(mydata[mydata[,1] == "chr9", 2]) > hist(mydata[mydata[,1] == "chr22", 2]) > > > So obviously that is completely untested because I don't have your > sample data, but might give you the idea. > > Sarah -- P

Re: [R] is there an option to "turn off" scientific notation in write.csv

2011-10-14 Thread Paul Hiemstra
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, sel

Re: [R] Analysis

2011-10-14 Thread Paul Hiemstra
osting-guide.html > and provide commented, minimal, self-contained, reproducible code. -- 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 2

Re: [R] US States percentage change plot

2011-10-13 Thread Paul Hiemstra
Hi, Please provide a reproducible example (up to the point where you are stuck), as suggested in the posting guide. 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

Re: [R] Parallel processing for R loop

2011-10-12 Thread Paul Hiemstra
use the foreach package... 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.geo.uu.nl/~paul http://nl.linkedin.

Re: [R] apply and functions with many arguments

2011-10-06 Thread Paul Hiemstra
commented, minimal, self-contained, reproducible code. Hi, Take a look at 'expand.grid' and 'ddply' from the plyr package or foreach from the foreach package. cheers, Paul -- Paul Hiemstra, Ph.D. Global Climate Division Royal Netherlands Meteorological Institute (KNMI)

Re: [R] reporting multiple objects out of a function

2011-10-06 Thread Paul Hiemstra
ng environment. Setting n = 0 > seemed to limit the assignment to the interior of andrewFun: none of the > printed obj values were affected. > > Help? > > andrewH > > > -- > View this message in context: > http://r.789695.n4.nabble.com/reporting-multiple-obje

Re: [R] kriging shapefiles

2011-10-06 Thread Paul Hiemstra
thz.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. ...you could also take a look at the automap package (some blatant self promotion ;)). This builds on gstat... Pau

Re: [R] reporting multiple objects out of a function

2011-10-05 Thread Paul Hiemstra
rit of fortune(106), "If <<- is the answer, rethink your question...". Why is it important that your objects are not part of a larger object, which is standard practice in R. You could also take a look at the attach() command: bla = fun1(x,y,z) attach(bla) Note that in fun1 you do need

Re: [R] Problems loading package hydroTSM

2011-10-05 Thread Paul Hiemstra
gt; > > > > > [[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

Re: [R] experimenting (like Weka Experimenter)

2011-10-05 Thread Paul Hiemstra
ct.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. Hi, When you want to use pure R look at the plyr package and the foreach package. good luck, Paul -- Paul Hiemstra, Ph.D. Global Climate Division Royal Netherlands Meteorological Institute (K

Re: [R] need help on melt/cast

2011-10-05 Thread Paul Hiemstra
wrong. Especially because a simple (as David mentioned): melt(dat) got you the right answer. 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 Bil

Re: [R] how do i put two scatterplots on same graph

2011-10-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. Hi, You could take a look at the ggplot

Re: [R] shapefile kriging

2011-10-04 Thread Paul Hiemstra
to SpatialPointsDataFrame's. For reading shapefiles, see the rgdal package. 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://intam

Re: [R] ggplot2 - extracting values of smooth

2011-10-03 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. ...and if you want to extract the smoothed lines per factor (as when using facet_wrap) use d

Re: [R] ggplot2 - extracting values of smooth

2011-10-03 Thread Paul Hiemstra
details. You can run these command outside ggplot to the values of the smoothed line. e.g.: library(ggplot2) # Make the plot ggplot(aes(x = speed, y = dist), data = cars) + geom_point() + stat_smooth(method = "loess") # Get the values smooth_vals = predict(loess(dist~speed,cars), cars$speed

Re: [R] patients.txt data

2011-10-03 Thread Paul Hiemstra
osting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. 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 |

Re: [R] Gstat - Installation Fail _ download source and compile help ...

2011-10-03 Thread Paul Hiemstra
p@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 Netherlands Meteor

Re: [R] Homography with R

2011-09-26 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. The rgl package might also be of use

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

2011-09-22 Thread Paul Hiemstra
sario de papel. >> >>[[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.or

Re: [R] Data

2011-09-21 Thread Paul Hiemstra
om. > > __ > 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

Re: [R] Statmath-R-Forge: Request denied

2011-09-21 Thread Paul Hiemstra
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. I think your problem is that: "This list is not public" Just my 2c

Re: [R] Plot map by region using kasc and adehabitat

2011-09-21 Thread Paul Hiemstra
html > and provide commented, minimal, self-contained, reproducible code. ...to make us more willing to answer the question: PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and *provide commented, minimal, self-contained, reproducible code.* Paul -- Paul Hiemstr

Re: [R] joint histogram for image comparison

2011-09-20 Thread Paul Hiemstra
melt) + geom_histogram(fill = "white", col = "black") + facet_wrap(~ variable) # Change the theme a bit theme_set(theme_bw()) ggplot(aes(x = value), data = dat_melt) + geom_histogram(fill = "lightgrey", col = "black") + facet_wrap(~ variable) hope this helps, Paul

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

2011-09-19 Thread Paul Hiemstra
, thanks for taking the time to respond. > > On Sep 19, 2011, at 1:49 AM, "Paul Hiemstra" wrote: > >> What do you want with the row names? The help file for ?write.table >> lists a row.names argument which can be set to FALSE. >> >> regards, >> Paul

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

2011-09-19 Thread Paul Hiemstra
a simple > matrix with row and column names in ascii format. "write.matrix" does exactly > what I want except for the row names. It baffles me that this is not an > option… > > > On Sep 6, 2011, at 8:22 AM, Paul Hiemstra wrote: > >> On 09/06/2011 06:24 AM, Mark Ebber

Re: [R] £50 for help in my masters dissertation kalman filter forecasting

2011-09-19 Thread Paul Hiemstra
, reproducible code. ...it would probably have been a better idea not to offer any money. Nerds are not motivated by cash, but by a challenge :). Isn't there a supervisor you can ask to help out? They are payed to supervise you during your master's. good luck, Paul -- Paul Hiemstra, Ph

Re: [R] Optimization package

2011-09-15 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. Google for "R optimization&q

Re: [R] how to get a row with its its p value below 0.01 ??

2011-09-14 Thread Paul Hiemstra
> cheers, > > Rolf Turner > > __ > 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 comment

Re: [R] SVD Memory Issue

2011-09-14 Thread Paul Hiemstra
gt; 4: In matrix(0, n, np) : > Reached total allocation of 3583Mb: see help(memory.size) > > > Thank you. > > Ravi > > > > -- > View this message in context: > http://r.789695.n4.nabble.com/SVD-Memory-Issue-tp3809667p3809667.html > Sent from the R help mailing list archive at Nabble

Re: [R] On-line machine learning packages?

2011-09-13 Thread Paul Hiemstra
; r-h...@r-project.org mailing list >>>>> https://stat.ethz.ch/mailman/listinfo/r-help >>>>> PLEASE do read the posting >>>>> guidehttp://www.R-project.org/posting-guide.html >>>>> and provide commented, minimal, self-contained, repr

Re: [R] On-line machine learning packages?

2011-09-12 Thread Paul Hiemstra
g-guide.html > and provide commented, minimal, self-contained, reproducible code. http://lmgtfy.com/?q=R+machine+learning 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 |

Re: [R] General help - online statistics courses?

2011-09-09 Thread Paul Hiemstra
And do take a look at Open Courseware: http://ocw.mit.edu/index.htm cheers, Paul On 09/09/2011 09:30 AM, Paul Hiemstra wrote: > Hi, > > You could also consider following a statistics course at a university > near you, if you can convince your boss to give you the ti

Re: [R] General help - online statistics courses?

2011-09-09 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 Clim

Re: [R] prcomp: results with reversed sign in output?

2011-09-09 Thread Paul Hiemstra
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 (KNMI) Wilhelminalaan 10 | 3732 GK | De Bilt | Kamer B 3.39 P.O. Box 20

Re: [R] diversity map in r

2011-09-07 Thread Paul Hiemstra
estions you need to go to your supervisor for advice. In addition: PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. regards, Paul -- Paul Hiemstra, Ph.D. Global Climate Division Royal Netherlands Met

Re: [R] How does one start R within Emacs/ESS with root privileges?

2011-09-07 Thread Paul Hiemstra
nsical to expereinced ESS/R users. If so > i'd really appreciate tips on efficient package > installation/maintenance using Emacs/ESS. > > TIA, > > karl > -- Paul Hiemstra, Ph.D. Global Climate Division Royal Netherlands Meteorological Institute (KNMI) Wilhelminala

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

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] 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] 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] 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] 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] 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] !!!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] 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] 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] 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] 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] 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] 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] 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] 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
> 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] 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] 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
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] 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] 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] 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] 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] 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] Clean up a scatterplot with too much data

2011-08-02 Thread Paul Hiemstra
k of as a 3D histogram projected to 2D with color > corresponding to (relative) frequency, as suggested by Paul Hiemstra. > geom_tile() is a discretized, gridded version of a hexbin plot, but I When using geom_tile you need to bin the data yourself. I much prefer using stat_bin2d which does al

Re: [R] Errors, driving me nuts

2011-08-02 Thread Paul Hiemstra
in inherits(x, "data.frame") : object 'tt_pvalue' not found > # No idea?? > > What is going wrong?? > M > > > Matt Curcio > M: 401-316-5358 > E: matt.curcio...@gmail.com > > __ > R-help@r-project.org m

Re: [R] Standard Deviation of a matrix

2011-08-02 Thread Paul Hiemstra
p > 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 (KNMI) Wilhelminalaan 10 | 3732 GK | De Bilt

Re: [R] Clean up a scatterplot with too much data

2011-08-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. -- Paul Hiemstra, Ph.D. Global Climate Divi

Re: [R] help with algorithm

2011-08-01 Thread Paul Hiemstra
L 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-contained, rep

Re: [R] Spatial Data Interpolation

2011-08-01 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,

Re: [R] R on Multicore for Linux

2011-07-21 Thread Paul Hiemstra
.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 (KNMI) Wilhelminalaan 10 |

  1   2   3   4   >