[Rd] How to loop through a set of data and to evaluate a function?

2008-07-25 Thread NicoNYC
Hi, I will explain my problem : I would like to loop through a set of data taking the set 100 points at a time. At each iteration I'd like to evaluate a function over this set. In each subsequent iteration i add the next point to my sub set and remove the oldest and evaluate the function again

[Rd] head() for files

2008-07-25 Thread Gorjanc Gregor
Hi! I was thinking about using the head and tail functions also for files i.e. show me the first/last few lines of a file. For example: zz - file(ex.data, w) # open an output file connection cat(TITLE extra line, 2 3 5 7, , 11 13 17, file = zz, sep = \n) cat(One more line\n, file = zz)

Re: [Rd] head() for files

2008-07-25 Thread Duncan Murdoch
On 25/07/2008 7:30 AM, Gorjanc Gregor wrote: Hi! I was thinking about using the head and tail functions also for files i.e. show me the first/last few lines of a file. For example: zz - file(ex.data, w) # open an output file connection cat(TITLE extra line, 2 3 5 7, , 11 13 17, file = zz, sep

Re: [Rd] head() for files

2008-07-25 Thread Gorjanc Gregor
I was thinking about using the head and tail functions also for files i.e. show me the first/last few lines of a file. For example: zz - file(ex.data, w) # open an output file connection cat(TITLE extra line, 2 3 5 7, , 11 13 17, file = zz, sep = \n) cat(One more line\n, file = zz)

[Rd] grobX for points?

2008-07-25 Thread Felix Andrews
Hi R-devel, It seems that grobX and grobY (from the grid package) do not refer to the bounding box of a grid.points object. library(grid) library(lattice) xyplot(1:10 ~ 1:10) downViewport(plot1.panel.1.1.vp) grob - grid.get(GRID.points, grep=TRUE) convertX(grobWidth(grob), cm) #

[Rd] the C function drawing a rectangle: heatmap() - image() - do_image() - GRect() - GERect() - rect() - do_rect() - GRect() ??

2008-07-25 Thread Zhaoyuan Fang
Hello anyone used to do similar things: search for the final C function that corresponding to the drawing of a rectangle? As listed in the subject, I started from heatmap() in R and after several steps reached the GRect() in C. However, then it refers to rect() which further seems to refer to