Displaying 20 results from an estimated 10000 matches similar to: "capturing output from Win 98 shell"
2003 Jul 31
6
Problem with data.frames
Hi,
I just encountered a problem in R that may easily be fixed: If one uses
attach for a data.frame e.g. 10000 times and forgets detach, then R gets
incredibly slow (less then 10% of the original speed).
My system:
platform powerpc-apple-darwin6.0
arch powerpc
os darwin6.0
system powerpc, darwin6.0
status
major 1
minor 6.1
year 2002
2003 Nov 18
3
plot, plot, methods, crash (PR#5173)
(If this only happens in Win 98, I'm sure I could live with it. Just
may be helpful to report it, I hope.)
Start up R GUI, then
> plot(1:4,1:4) # then close manually by clicking X
> plot(1:4,1:4) # ditto
> methods(plot)
sometimes produces normal output and even the following prompt,
but then crashes immediately, or more often, crashes immediately with
no output.
I can do any
2003 Nov 19
5
ISOdate returns incorrect date?
Dear all,
I have found the following (for me) incomprehensible behaviour of
ISOdate (POSIXct):
> ISOdate(1900,6,16)
[1] "1900-06-15 14:00:00 Westeurop?ische Sommerzeit"
> ISOdate(1950,6,16)
[1] "1950-06-16 14:00:00 Westeurop?ische Sommerzeit"
Note that in the first case I get the 15th of June back, not the 16th as
I would have expected!
This happened under R-1.7.1 on
2003 Jun 11
2
scan() crash in Windows 98 (PR#3234)
# Your mailer is set to "none" (default on Windows),
# hence we cannot send the bug report directly from R.
# Please copy the bug report (after finishing it) to
# your favorite email program and send it to
#
# r-bugs@r-project.org
#
######################################################
scan() (and so also of course read.table, read.csv etc) crashes right
out of
R (GUI)
if it
2003 Jun 24
8
excel files and R
Greetings everyone,
I am new at R. My questions is rather basic. Looking R manuals looks
like there should be a way to read MS excel files into R. Could
somebody tell me which library should I use for that?
Thanks in advance
Victor H. Marín
Laboratorio de Modelación Ecológica
Depto. de Ciencias Ecológicas, Fac. de Ciencias,
Universidad de Chile
Casilla 653 Santiago, Chile
2003 Nov 18
3
Copula calculation in R?
Hello
Anyone that now of any function in R that can calculate copulas?
Or if anyone have any code avaible I would be more than interested.
Thank you in advance
/Thomas
______________________________________________
R-help at stat.math.ethz.ch mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
2003 Dec 22
2
Problems with read.table()
R version 1.8.1, OS Windows 98
Dear colleagues,
if I import vegetation data (first row with column labels and first column
with row labels) like
7MYRGERM;7AGRGIGA;7DRYOCTO;5MYRGERM;7SALELEA;7CHOCHON;7SALNIG?;.......
t401;5;2;2;3;4;2;2;2;1;2;1;2;2;1;2;2;2;1;2;1;0;0;......
t403;3;0;0;6;4;0;3;0;0;3;0;0;0;0;3;0;0;0;2;0;2;0;.....
with read.table("data.file", header=TRUE,
2004 Mar 04
10
"Statistiques avec R"
Dear R users,
I want to share my joy with you. Please see the following
excellent introduction to R "Statistiques avec R " by
Vincent Zoonekynd
http://zoonek2.free.fr/UNIX/48_R/all.html
In paticular, you can see a lot of fascinating graphics
examples of R from which you can get many hints.
Soryy if this is already well-known, but the CRAN search
did not show nothing with the keyword
2003 May 28
2
Numbers that look equal, should be equal, but if() doesn'tsee as equal (repost with code included)
Try the following function (the name is supposed to be a joke, by the
way),
which will also do the right thing with NAs and characters. Use it as
if(equal.enough(x,y)) rather than if(x==y), e.g.
> equal.enough(0.1+0.2, 0.3)
[1] TRUE
My default of 15 significant figures may be overkill in many
applications; be
prepared to reduce this.
Simon Fear
"equal.enough" <- function(x, y,
2003 Nov 18
4
address for bug reports? (PR#5171)
bug.report() tells me to email to r-bugs@r-project.org, whereas
the Web site http://www.r-project.org/ points me to
r-bugs@biostat.ku.dk.
Which should I believe?
Simon Fear
Senior Statistician
Syne qua non Ltd
Tel: +44 (0) 1379 644449
Fax: +44 (0) 1379 644445
email: Simon.Fear@synequanon.com
web: http://www.synequanon.com
Number of attachments included with this message: 0
This
2004 Aug 31
2
I've forgotten, why is box("") the default?
I've searched on CRAN for axes, axis, and other terms
I've already forgotten, without (re)discovering the
reason for S using "non-joining" axes by default, instead
of box("l").
MASS points me towards Cleveland (1993) but I don't
have ready access to this any more. Could someone
give me a one-liner to justify this choice to a sceptic?
It's something to do
2003 Oct 30
7
Weird problem with median on a factor
Hi all,
I hope this isn't a naive newbie question again. Here you can see column 264 of
a data frame containing data of the same interview in May and September. Column
264 contains the answers of 49 persons to a question in May.
> fbhint.spss1[,264]
[1] teils/teils sehr wichtig <NA> <NA> sehr wichtig
[6] sehr wichtig sehr wichtig sehr wichtig <NA>
2003 Sep 17
1
Just don't do it, surely? (was RE: Retrieve ... argument values)
Tony, I don't understand what you mean. Could you give
an example?
> -----Original Message-----
> From: Tony Plate [mailto:tplate at blackmesacapital.com]
> > ... I'm not saying "never write functions that use ...",
> >I'm just saying "never write functions that depend on a particular
> >argument being passed via ...".
>
> Several
2003 Sep 16
7
Retrieve ... argument values
Dear R users,
I want to retrieve "..." argument values within a function. Here is a small
exmaple:
myfunc <- function(x, ...)
{
if (hasArg(ylim)) a <- ylim
plot(x, ...)
}
x <- rnorm(100)
myfunc(x, ylim=c(-0.5, 0.5))
Error in myfunc(x, ylim = c(-0.5, 0.5)) : Object "ylim" not found
>
I need to retrieve values of "ylim" (if it is defined
2004 Jan 12
1
source problem
Hi,
I'm trying to call an R script from the command-line ("firstScript.r"
below). This script then sources another script in another directory
using the absolute path to the file
("/home/john/R_script/secondScript.r"). That script then needs to
source an R script in the same directory using a relative path
("thirdScript.r"). Neither script should know that it
2003 Aug 12
3
grep and gsub on backslash and quotes
The following code works, to gsub single quotes to double quotes:
line <- gsub("'", '"', line)
(that's a single quote within doubles then a double within singles if
your
viewer's font is not good).
But The R Language Manual tells me that
Quotes and other special characters within strings
are specified using escape sequences:
\' single quote
\"
2003 Aug 27
3
seeking help with with()
I tried to define a function like:
fnx <- function(x, by.vars=Month)
print(by(x, by.vars, summary))
But this doesn't work (does not find x$Month; unlike other functions,
such as
subset(), the INDICES argument to "by" does not look for variables in
dataset
x. Is fully documented, but I forget every time). So I tried using
"with":
fnxx <- function(x, by.vars=Month)
2003 Nov 14
5
ISOdate() and strptime()
Dear R-people!
I am using R 1.8.0, under Windows XP.
While using ISOdate() and strptime(), I noticed the following behaviour when
"wrong" arguments (e.g., months>12) are given to these functions:
> ISOdate(year=2003,month=2,day=20) #ok
[1] "2003-02-20 13:00:00 Westeurop?ische Normalzeit"
> ISOdate(year=2003,month=2,day=30) #wrong day, but returns a value
[1]
2003 Sep 02
8
I don't understand this
For reasons which I'll spare you, I'm writing a program to analyse
R source code. This has led me to probe some of the darker corners
of R syntax to find out what is supposed to happen.
Now, from reading the R documentation (and the New S book &c) I know
perfectly well that
f(a, b, etc) <- x
is supposed to turn into
a <- "f<-"(a, b, etc, value=x)
Except,
2003 Jul 30
2
Plotting a function with curve()
Why does
> curve(function(y) y^2, from=0,to=1)
not work, whereas
> myf <- function(y) y^2
> curve(myf, from=0,to=1)
work?
For the former, I get the error message
Error in curve(function(y) y^2, from = 0, to = 1) :
'expr' must be a function or an expression containing 'x'
I'm using R1.7.0 under Windows XP.
Damon Wischik.