));
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
, 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
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
-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
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
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
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
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
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
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
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
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
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
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
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
() 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
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
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
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
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
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
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
--
+- 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
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
, 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
, 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
--
+- 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
!
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
, 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
/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
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
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
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
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
)
+ }
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
(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
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
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
, 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
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
...
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
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
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
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
.
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
, 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
46 matches
Mail list logo