Re: [R] hit return key before next gaph appears

2006-10-19 Thread Jan T. Kim
)); plotAllColumns(dframe); I find this useful to keep track of what the current plot actually is displaying. Furthermore, it's possible to run a simplistic kind of animation, as in plotAllColumns(dframe, function(msg) { print(msg); Sys.sleep(3); }); Best regards, Jan -- +- Jan T. Kim

Re: [R] OT UNIX grep question

2006-08-10 Thread Jan T. Kim
, but not all shells are insisting on linguistic correctness the way [t]csh does. bash leaves constructs that it cannot expand as they are, so the variant with double quotes does work as expected with bash (although through a mechanism that might be unexpected by most). Best regards, Jan -- +- Jan T

Re: [R] VERY TINY question: missing function to clear the console?

2006-07-13 Thread Jan T. Kim
be that writing that in a multi-platform portable way is actually a somewhat more laborious thing to do than it seems. Best regards, Jan -- +- Jan T. Kim ---+ | email: [EMAIL PROTECTED] | | WWW: http

Re: [R] PowerPoint - eps not suitable

2006-06-26 Thread Jan T. Kim
-dNOPAUSE myfile.ps -c quit Apologies if this has been mentioned in this thread already. Best regards, Jan -- +- Jan T. Kim ---+ | email: [EMAIL PROTECTED] | | WWW: http://www.cmp.uea.ac.uk

Re: [R] Pipelining programs in R

2006-05-19 Thread Jan T. Kim
http://www2.cmp.uea.ac.uk/~jtk/software/ The filterpipe patch is against an older version of R, though. Best regards, Jan -- +- Jan T. Kim ---+ | email: [EMAIL PROTECTED] | | WWW: http

Re: [R] Can't there be a cd command?

2006-05-10 Thread Jan T. Kim
regards, Jan -- +- Jan T. Kim ---+ | email: [EMAIL PROTECTED] | | WWW: http://www.cmp.uea.ac.uk/people/jtk | *-= hierarchical systems are for files, not for humans

Re: [R] Can't there be a cd command?

2006-05-10 Thread Jan T. Kim
On Wed, May 10, 2006 at 12:56:23PM -0400, Duncan Murdoch wrote: On 5/10/2006 12:15 PM, Jan T. Kim wrote: On Wed, May 10, 2006 at 11:26:55AM -0400, Duncan Murdoch wrote: On 5/10/2006 11:10 AM, Gabor Grothendieck wrote: On 5/10/06, Duncan Murdoch [EMAIL PROTECTED] wrote: What

Re: [R] scoping issues?

2005-12-08 Thread Jan T. Kim
effectively calls mean with one argument of length 5, as opposed to 5 arguments of length 1, as your call does. Best regards, Jan -- +- Jan T. Kim ---+ | email: [EMAIL PROTECTED] | | WWW: http

Re: [R] R is GNU S, not C.... [was how to get or store .....]

2005-12-07 Thread Jan T. Kim
not work interactively (or at the top level of a script). Best regards, Jan -- +- Jan T. Kim ---+ | email: [EMAIL PROTECTED] | | WWW: http://www.cmp.uea.ac.uk/people/jtk

Re: [R] R is GNU S, not C.... [was how to get or store .....]

2005-12-06 Thread Jan T. Kim
for finding a style that is good because it is widely used and therefore familiar to a large number of readers. Best regards, Jan -- +- Jan T. Kim ---+ | email: [EMAIL PROTECTED] | | WWW: http

Re: [R] Long lines with Sweave

2005-09-14 Thread Jan T. Kim
by parentheses rather than by curly braces. The code formatting done by the print method inserts the newline after { and before }. Best regards, Jan -- +- Jan T. Kim ---+ |*NEW*email: [EMAIL PROTECTED

Re: [R] Long lines with Sweave

2005-09-14 Thread Jan T. Kim
On Wed, Sep 14, 2005 at 02:49:56PM +0200, Henrik Andersson wrote: Jan T. Kim wrote: On Wed, Sep 14, 2005 at 10:14:59AM +0200, Henrik Andersson wrote: I have used Sweave a lot the latest year, but never really used any long function calls. If I have code which look like

[R] Semicolons (was: clip to keep coordinate system?)

2005-08-15 Thread Jan T. Kim
without doing any harm. Best regards, Jan -- +- Jan T. Kim ---+ |*NEW*email: [EMAIL PROTECTED] | |*NEW*WWW: http://www.cmp.uea.ac.uk/people/jtk | *-= hierarchical systems

Re: [R] debian vcd package

2005-07-21 Thread Jan T. Kim
the R CMD INSTALL command on it, e.g. R CMD INSTALL vcd_0.9-0.tar.gz This requires having a number of development Debian packages installed, such as gcc, g77 etc (installing r-base-dev will automatically resolve such dependencies). Best regards, Jan -- +- Jan T. Kim

Re: [R] Random seed problem in MCMC coupling of chains

2005-06-08 Thread Jan T. Kim
are not entirely uncorrelated to the seed. But I'd be very surprised if that was a problem with R's RNGs -- I guess it's memories of lousy implementations C library rand() functions that make me write this remark. Best regards, Jan -- +- Jan T. Kim

Re: [R] Increasing Console Paste Buffer

2005-06-01 Thread Jan T. Kim
() instead... ;-) Best regards, Jan -- +- Jan T. Kim ---+ |*NEW*email: [EMAIL PROTECTED] | |*NEW*WWW: http://www.cmp.uea.ac.uk/people/jtk | *-= hierarchical systems are for files

Re: [R] parsing speed

2005-05-17 Thread Jan T. Kim
in R. However, with regard to execution time, modularisation that involves passing of large amounts of data (100 x 1000 data frames etc.) can cause problems. Best regards, Jan -- +- Jan T. Kim ---+ |*NEW*email: [EMAIL PROTECTED

Re: [R] inserting R code in a latex document

2005-05-11 Thread Jan T. Kim
has enabled me to use LaTeX much more effectively over time. Best regards, Jan -- +- Jan T. Kim ---+ |*NEW*email: [EMAIL PROTECTED] | |*NEW*WWW: http://www.cmp.uea.ac.uk/people/jtk

Re: [R] Simple methods question

2005-04-21 Thread Jan T. Kim
calls, as in stuff1 - function(x) { ...stuff 1... } stuff2 - function(x) { ...stuff 2... } setMethod('foo', 'numeric', stuff1); setMethod('foo', 'logical', stuff1); setMethod('foo', 'matrix', stuff1); Best regards, Jan -- +- Jan T. Kim

Re: [R] Simple methods question

2005-04-21 Thread Jan T. Kim
On Thu, Apr 21, 2005 at 04:35:07PM +0100, Jan T. Kim wrote: On Thu, Apr 21, 2005 at 03:00:07PM +0200, Uwe Ligges wrote: Sean Davis wrote: I would like to create a function with methods with the same behavior for both numeric and logical arguments (using S4 methods) and different

Re: [R] line numbers and file names in error messages

2005-04-15 Thread Jan T. Kim
for investigating execution time errors. Best regards, Jan -- +- Jan T. Kim ---+ |*NEW*email: [EMAIL PROTECTED] | |*NEW*WWW: http://www.cmp.uea.ac.uk/people/jtk

Re: [R] line numbers and file names in error messages

2005-04-15 Thread Jan T. Kim
On Fri, Apr 15, 2005 at 12:37:46PM -0400, Gabor Grothendieck wrote: On 4/15/05, Jan T. Kim [EMAIL PROTECTED] wrote: On Fri, Apr 15, 2005 at 11:27:13AM -0400, Gabor Grothendieck wrote: On 4/15/05, Vivek Rao [EMAIL PROTECTED] wrote: Many of my R scripts call other R scripts using

Re: [R] Printing integers in R as is

2005-04-14 Thread Jan T. Kim
-- +- Jan T. Kim ---+ |*NEW*email: [EMAIL PROTECTED] | |*NEW*WWW: http://www.cmp.uea.ac.uk/people/jtk | *-= hierarchical systems are for files, not for humans

Re: [R] R as programming language: references?

2005-04-12 Thread Jan T. Kim
overlooked, of course. Best regards, Jan -- +- Jan T. Kim ---+ |*NEW*email: [EMAIL PROTECTED] | |*NEW*WWW: http://www.cmp.uea.ac.uk/people/jtk | *-= hierarchical systems are for files

Re: [R] how to print error message in batch mode

2005-04-07 Thread Jan T. Kim
, as in R -q --no-save prova prova.out 21 Best regards, Jan -- +- Jan T. Kim ---+ |*NEW*email: [EMAIL PROTECTED] | |*NEW*WWW: http://www.cmp.uea.ac.uk/people/jtk

Re: [R] hex format

2005-04-07 Thread Jan T. Kim
, as C does, making 007 legal and 008 not. ;-) ) Best regards, Jan -- +- Jan T. Kim ---+ |*NEW*email: [EMAIL PROTECTED] | |*NEW*WWW: http://www.cmp.uea.ac.uk/people/jtk

Re: [R] Precision

2005-04-06 Thread Jan T. Kim
-- +- Jan T. Kim ---+ |*NEW*email: [EMAIL PROTECTED] | |*NEW*WWW: http://www.cmp.uea.ac.uk/people/jtk | *-= hierarchical systems are for files, not for humans

Re: [R] Introduce a new function in a package?

2005-04-06 Thread Jan T. Kim
! http://www.R-project.org/posting-guide.html -- +- Jan T. Kim ---+ |*NEW*email: [EMAIL PROTECTED] | |*NEW*WWW: http://www.cmp.uea.ac.uk/people/jtk | *-= hierarchical systems

Re: [R] off-topic question: Latex and R in industries

2005-04-06 Thread Jan T. Kim
, Jan -- +- Jan T. Kim ---+ |*NEW*email: [EMAIL PROTECTED] | |*NEW*WWW: http://www.cmp.uea.ac.uk/people/jtk | *-= hierarchical systems are for files, not for humans

Re: [R] about get stdout from other program

2005-04-01 Thread Jan T. Kim
/software/ Best regards, Jan -- +- Jan T. Kim ---+ |*NEW*email: [EMAIL PROTECTED] | |*NEW*WWW: http://www.cmp.uea.ac.uk/people/jtk | *-= hierarchical systems are for files

Re: [R] r under linux: creating high quality bmp's for win users

2005-03-22 Thread Jan T. Kim
encapsulated postscript. With all that OLE and whatever, it can't be impossible to do as LaTeX / xdvi does...? -- +- Jan T. Kim ---+ |*NEW*email: [EMAIL PROTECTED] | |*NEW*WWW: http

Re: [R] Sweave/margin

2005-03-21 Thread Jan T. Kim
shorter lines. Best regards, Jan -- +- Jan T. Kim ---+ |*NEW*email: [EMAIL PROTECTED] | |*NEW*WWW: http://www.cmp.uea.ac.uk/people/jtk | *-= hierarchical systems are for files

Re: [R] removing message: [Previously saved workspace restored]

2005-03-08 Thread Jan T. Kim
and removing objects in the R-intro. If you don't want the saved stuff anymore, simply delete that file. Best regards, Jan -- +- Jan T. Kim ---+ |*NEW*email: [EMAIL PROTECTED] | |*NEW*WWW: http

Re: [R] simple if...else causes syntax error

2005-03-07 Thread Jan T. Kim
why the R parser was designed this way? Personally, I have been coding in R for years in the belief that newline is whitespace, and never even noticed any problems because all my ifs with elses were within functions and thus enclosed in curly braces. Best regards, Jan -- +- Jan T. Kim

Re: [R] return from nested function?

2005-03-02 Thread Jan T. Kim
) + } g=function(x) {print(g) + x + print(end of g) + } f(1) [1] f [1] g NULL I may be dumb today, but doesn't that beg the question of how does g cause f not to return? Best regards, Jan -- +- Jan T. Kim ---+ |*NEW*email

Re: [R] basic question about changing limits on generated plots

2005-02-24 Thread Jan T. Kim
(1:100 / 100, list(sqrt, log, exp, function(x) {3 / (x + 1)})) Perhaps, that's what you have in mind, and probably, that's what (some) others do... Best regards, Jan -- +- Jan T. Kim ---+ |*NEW*email: [EMAIL PROTECTED

Re: [R] Getting *types* of arguments?

2005-02-17 Thread Jan T. Kim
Clearly, no (finite) amount of syntactic analysis of a function's code can produce such a result, such information has to be provided in the docs. If you look for more strict typing, the methods package may be of interest, methods of S4 classes allow that. Best regards, Jan -- +- Jan T. Kim

Re: [R] Passing colnames to graphics title

2005-02-16 Thread Jan T. Kim
like colnames(foo)[i] where foo is the matrix or data.frame you use. Best regards, Jan -- +- Jan T. Kim ---+ |*NEW*email: [EMAIL PROTECTED] | |*NEW*WWW: http://www.cmp.uea.ac.uk/people/jtk

Re: [R] graphics - current filename

2005-02-14 Thread Jan T. Kim
, Jan -- +- Jan T. Kim ---+ |*NEW*email: [EMAIL PROTECTED] | |*NEW*WWW: http://www.cmp.uea.ac.uk/people/jtk | *-= hierarchical systems are for files, not for humans

Re: [R] Using a number as a name to access a list

2005-02-10 Thread Jan T. Kim
string or a symbol as the index, according to the R language definition, but [[ indexing does the same as $ and can be used for computed indexing. So as.list(KEGGPATHID2NAME)[[path]] should do what you want. Greetinx, Jan -- +- Jan T. Kim

Re: [R] Function to modify existing data.frame--Improving R Language

2005-01-30 Thread Jan T. Kim
... Best regards, Jan -- +- Jan T. Kim ---+ |*NEW*email: [EMAIL PROTECTED] | |*NEW*WWW: http://www.cmp.uea.ac.uk/people/jtk | *-= hierarchical systems are for files, not for humans

Re: [R] How to replace slashes with back slashes

2005-01-19 Thread Jan T. Kim
assignment. You could convince yourself with cat(gsub('/', '', 'c:/dir1/dir2/file.ext')) which actually does dump the string. Greetinx, Jan -- +- Jan T. Kim ---+ |*NEW*email: [EMAIL PROTECTED

Re: [R] Function to modify existing data.frame

2005-01-18 Thread Jan T. Kim
programming cannot fully be resolved, however. Best regards, Jan -- +- Jan T. Kim ---+ |*NEW*email: [EMAIL PROTECTED] | |*NEW*WWW: http://www.cmp.uea.ac.uk/people/jtk

Re: [R] Function to modify existing data.frame

2005-01-18 Thread Jan T. Kim
technique, if I dereference this call by reference correctly ;-) Best regards, Jan -- +- Jan T. Kim ---+ |*NEW*email: [EMAIL PROTECTED] | |*NEW*WWW: http://www.cmp.uea.ac.uk/people/jtk

Re: [R] thanks

2005-01-12 Thread Jan T. Kim
. I'd like to encourage you to automate your calculations, as this enhances not only convenience but also reproducibility of your results. Best regards, Jan -- +- Jan T. Kim ---+ |*NEW*email: [EMAIL PROTECTED

Re: [R] thanks

2005-01-12 Thread Jan T. Kim
, and most inexplicable erroneous results. Best regards, Jan -- +- Jan T. Kim ---+ |*NEW*email: [EMAIL PROTECTED] | |*NEW*WWW: http://www.cmp.uea.ac.uk/people/jtk | *-= hierarchical