search for: hedderik

Displaying 20 results from an estimated 23 matches for "hedderik".

2004 Dec 09
3
US 2004 Elections map
...t have been a joy to see all the nice (and not so nice) graphs that were shown. As an exercise, I recreated the map shown on the NY-Times website [ http://www.nytimes.com/packages/khtml/2004/11/03/politics/ 20041103_px_ELECT_GRAPHIC.html ] If you're interested, http://www.ai.rug.nl/~hedderik/R/US2004 contains the created maps, the data and the code. Note that there are some differences in the R map and the NYT map (most notably with respect to some missing data in some New England states, some mismatches in county names, and the representation of NYC), but I was quite satisfie...
2002 Dec 20
3
Sweave & xtable
...mp; 0.00 & 1000.00 & 542.00 & 181.00 & 858.00 & 4 62.00 & 103.00 & 744.00 & 449.00 & 93.00 \\ 6 & 201.00 & 400.00 & 0.00 & xtable(counts[1:4,]) does work. Do I have to flush the output of xtables in some way? Or is my table just too large? - Hedderik.
2008 Dec 03
3
Help with maps
...(1) How can I find a listing of the internal data sets that map() from the maps library contains? For example, "usa", "county", "state", "nz" all work. Are there any others? (2) Is there an easier, more generalized way to produce this (http://www.ai.rug.nl/~hedderik/R/US2004/ ) type of plot than this (http://www.ai.rug.nl/~hedderik/R/US2004/map.r ) ? I have geographic (e.g. country, state, county, zip code) count data in a data frame that I would like to represent on a map, but still need to study how map.r works, especially the map.center function... (3) Th...
2003 Aug 10
1
read.spss doesn't work anymore
...ntaneously, after the second x contains all original SPSS variable/column names but no data, after the last read.spss - it takes a while before R returns with the Segmentation fault. During that time, the harddisk seems to be working quite hard. Does anyone know what the problem might be? - Hedderik. > version _ platform i386-pc-linux-gnu arch i386 os linux-gnu system i386, linux-gnu status major 1 minor 7.1 year 2003 month 06 day 16 language R
2002 Jul 28
1
[R] bug in unsplit()? (PR#1843)
Hedderik van Rijn <hedderik@cmu.edu> writes: > If the second argument to unsplit is not a simple vector (but a "list > containing multiple lists"), the function seems to have some problems. > > Given a slight modification of the examples in help(split): > > > xg <-...
2000 Jul 28
2
Loop removal?
...6 bindata } for (i in unique(stor$subject)) { stor[stor$subject == i,]$bin <- bindata(stor[stor$subject == i,]$rt) } Although this code works fine, it does not "feel" very R'ish. Is there a more elegant solution for this, especially one that removes the for-loop? Thanks, Hedderik. -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at sta...
2002 Jul 28
0
[R] bug in unsplit()? (PR#1845)
Hedderik van Rijn <hedderik@cmu.edu> writes: > > Thanks for pointing this out. I think your code should work, although > > I'm slightly uneasy about actually modifying f, so how about > > Just curious, why are you uneasy about that? Does it have side effects? It is largely due...
1999 Jan 04
1
Names of data frame columns in an apply
...e } apply(data,1,recode) I don't get what I want, because dataline$var1 always evaluates to NULL. Is is at all possible to use the $xxx method of refering to columns when using apply? And if not, is there another way by means of which I can use column names instead of numbers? Greetings, Hedderik. > version _ platform i586-unknown-linux arch i586 os linux system i586, linux status status.rev 0 major 0 minor 63.1 year 199...
2001 Mar 07
4
R.xpm?
I use AfterStep on Linux. I made an R.xpm file (attached) and put this icon in the "wharf". To invoke R I click on the R icon. I did not find an offical R.xpm, and so I am submitting this one for your collective consideration.... The idea behind the icon is that it looks like a scatterplot, which is "statistical". My main beefs with my R.xpm are that it doesn't have a
1998 Jun 18
0
R-beta: netscape/R interaction [color allocation]
Thanks to Martin Maechler, Douglas Bates, Peter Dalgaard, and Hedderik van Rijn for pointing out the problem is with the color resource demands of the two applications and for their suggested possible solutions. A 24 bit monitor would be ideal and maybe someday I'll have the $$$ to upgrade. "netscape -install" works with the attendant flashing screen col...
1999 Jan 11
0
Bug in axis(...,tcl=0)?
...-0.5 axis(1,c(1:10),tcl=0) par()$tcl # [1] -0.5 # I expected the next command to draw tick marks, but they don't show axis(2,c(1:10)) # Draw them anyway axis(2,c(1:10),tcl=-0.5) # Show that other arguments are not "remembered" axis(3,c(1:10),tck=0.5) axis(4,c(1:10)) Greetings, Hedderik. -- http://www.swi.psy.uva.nl/usr/rijn -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not...
2000 Jul 06
0
Scoping problem?
...ined in the "global scope", the function does not complain about undefined variables. However, in the scripts I'm writing, I would like to be able to construct the filename "online". Can anyone suggest a solution to, or explain how I should approach this problem? Thanks, Hedderik. P.S. I'm using the following version of R: > version _ platform i686-pc-linux-gnu arch i686 os linux-gnu system i686, linux-gnu status major 1 minor 1.0 year 2000...
2001 Feb 15
1
Re: Question "kill-buffer"
I would be very thankfull for such a solution, too .... "R.E. Darnell" wrote: > > Would introducing a "Are you sure?" question after kill the *R* ( or > whatever) buffer with a hasty C-x k be a popular default > "feature". How can I include this for my own use? > > Thanks > > Ross Darnell --
2001 Feb 23
0
Prevent killing an ESS *R* buffer unintentionally
..." (buffer-name))))) (add-hook 'kill-buffer-query-functions 'h-kill-buffer-query-function) Probably, this functionality already exists in emacs but after searching for some time, it seemed faster to write it myself. (That is, I copy-paste-and-adapted it from gnuserv.el.) Groet, Hedderik. -- http://swipc30.swi.psy.uva.nl/~rijn -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not...
2003 Jan 20
2
ave across columns
Hi: How do I find average across three columns such as weight1, weight2, weight3 (20 people, each person has three different measures)? They have NA's also. Thanks Tom, Univ of Pittsburgh, ttrut at yahoo.com
2003 Feb 13
2
legend
I think I'm missing something tonight in the usage of 'legend': plot(0, type="n") legend(locator(1), month.abb[1:5], pch=15, col=1:5) gives me something similar to what I want. But legend(locator(1), month.abb[1:5], fill=T, col=1:5) gives me 5 black boxes. What am I doing wrong? Thank you, > version _ platform i686-pc-linux-gnu arch i686 os
2003 Jun 02
2
Rounding problem R vs Excel
For numbers ending in 5 Excel always rounds up and I want to reproduce this in R rather than use the round function. I have tried: x<-as.integer(x*100+0.5)/100 and x<-floor(x*100+0.5)/100 However, some values of x cause problems e.g x<-floor(4.145*100+0.5)/100 4.14 I have tried breaking it down into steps and force the results to 10 significant figures in the following function,
2010 Jul 01
2
Plot map Brazil and documentation
...tabases *and more (see the package index).* * * *My doubt is: what it means with see the package index? Should I find a Brazilian map on the index?* * * *If not, can someone help me to find some brazilian map (with states)?* * * *I'm trying to plot something similar to it: http://www.ai.rug.nl/~hedderik/R/US2004/* * * *Also, can someone suggest me some good site with documentation about plotting graphics in R? I'd like to read more about this amazing tool.* * * *Thanks in advanced, again,* * * *best regards* -- Pablo de Camargo Cerdeira pablo.cerdeira@gmail.com +55 (21) 3799-6065 [[alterna...
2001 Feb 21
1
Specification of factors in tapply
...y help file nor in "An Introduction to R" (Version 1.2.1 (2001-01-15), PDF file p17), it might prove useful to include some information about this. (Especially since the help text for functions like order do include information how to specify the factors: slowest-cycling first.) Groet, Hedderik. -- http://swipc30.swi.psy.uva.nl/~rijn -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not...
2002 Sep 27
4
r-help search
I'd like to search the r-help archives. Is there a way? I want to find out how to impute missing values. -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: