Displaying 20 results from an estimated 10000 matches similar to: "When the "official" copy will be corrected?"
2005 Oct 11
3
Is this correct?
Dear userR,
With the following results, are they correct or acceptable?
> x <- c(1.4, 1.2, 2.8)
> sum(x)
[1] 5.4
> sum(x) == 5.4
[1] FALSE
> (1.4 + 1.2 + 2.8) - 5.4
[1] -8.881784e-16
> (1.4 + 1.2) - 2.6
[1] -4.440892e-16
> 2.6 - 1.5 - 1.1
[1] 0
> version
_
platform i386-pc-mingw32
arch i386
os mingw32
system i386, mingw32
status
major 2
minor
2000 Aug 04
1
xlab=expression(...) won't work.
Dear all,
I found that the plotmath seems won't work on xlab in plot
(and other plot functions including matplot, contour, ...):
> plot(1:10, 1:10, xlab=expression(alpha))
the plot shows nothing for x-label.
My R-version is R.1.1.0
> version
_
platform Windows
arch x86
os Win32
system x86, Win32
status
major 1
2002 Sep 08
2
Error on "Load source file" of iESS
Dear R and ESS users,
I got the following error when trying to load a source file
(smart.R in directory E:\R\)
into XEmacs through the menu iESS and "Load source file":
Error in file(file, "r") : unable to open connection
In addition: Warning message:
cannot open file `E:Rsmart.R'
It seems the slash "/" or "\" being missing, but I don't know
2000 Dec 26
1
A "bug" in Rconsole?
Dear R-friends,
After change (and saved) font style to "bold" in GUI preferences from
menu-bar Edit,
R 1.2.0, Win98, the "buflines" in the file Rconsole changed to "bufiles"
and that causes
error in invoking R next time.
Is this a bug?
Merry Christmas & Best regards,
C. Joseph Lu
Department of Statistics
National Cheng-Kung University
Tainan, Taiwan
2000 Dec 22
1
Do we have similar function to Minitab's INDICATOR?
Dear R-Friends,
Do we have a similar R function to work like Minitab's INDICATOR?
INDICATOR C2, C11-C15
C2 C11 C12 C13 C14 C15
2 1 0 0 0 0
2 1 0 0 0 0
5 ------> 0 0 0 1 0
3 0 1 0 0 0
6 0 0 0 0 1
5 0 0 0 1 0
* * * * *
2000 Dec 20
1
Question about coplot() ...
Dear R-friends,
For the following data:
> xy
x y i
1 731 0.313 2
2 739 0.340 2
3 790 0.373 2
4 855 0.451 2
5 980 0.608 2
6 575 0.156 1
7 608 0.207 1
8 630 0.249 1
9 670 0.332 1
10 838 0.377 1
11 964 0.466 1
> coplot(y ~ x|i, data=xy)
coplot gives 3 panels, rather than 2, namely one for i=1 and one for
i=2.
Futhermore, when I extand data fram xy to have i=3 as follows:
2002 Jan 10
0
xyplot() in Package lattice seems won't work?!
Please forgive me if this has been asked and answered,
since I just can't find out.
As I try the example given in the help page of xyplot() as follows:
> library(lattice)
Loading required package: grid
Attaching package `lattice':
The following object(s) are masked from package:base :
levels
> data(quakes)
> xyplot(long ~ lat , data = quakes)
R crashed!
2003 Oct 04
1
How to use panel.qqmathline?
Dear R users:
How can I use panel.qqmathline, in package lattice, to add
straight lines onto the plots generated by qqmath?
I read help pages of qqmath, panel.qqmathline, xyplot, ...,
but just can't one example that shows how to make it work.
For example,
> data(sleep)
> qqnorm(~ extra | group, data=sleep, aspect=1)
how can I use panel.qqmathline?
Thanks very much for your help,
2005 Mar 07
2
How can we ring a bell in Windows?
Hello useRs,
Is there a way to write code in R
to ring a bell in Windows?
Best regards,
C. Joseph Lu
Department of Statistics
National Cheng-Kung University
Tainan, Taiwan
ROC
_______________________________________________________________________
2001 May 31
1
Why color changed in ps.file?
Dear R-friends,
When I selected "Save as postscript" via mouse left-button on the active
"R Graphics" window, those colored lines I made in the plot changed in
the saved postscript file, e.g., color blue becomes green, red becomes blue,
...
I have not changed any setting/options.
What's going on?
My version of R is
> version
_
platform i386-pc-mingw32
arch
2000 Dec 18
1
How can I get "A$Title"?
Dear R-friends,
I have whole bunch of objects, say, A, B, ..., Z,
all of them are "list" and haveing "Title" (a character string)
as their first element.
E.g.,
> A$Title
[1] "Airplane Component"
What I like to do is to find a way to printout all the Titles at one
time.
I tried the following:
> paste(LETTERS, "Title", sep="$") ->
2000 Dec 22
1
Found "answer" to my question on MTB's INDICATOR
Dear R-Friends,
Sorry to bother everyone with my earlier question:
"Do we have similar R function to work like Minitab's INDICATOR?"
I found the way to make things work: e.g.,
> x <- c(2,2,5,3,6,5,NA)
> model.matrix(~ factor(x) - 1)
factor(x)2 factor(x)3 factor(x)5 factor(x)6
1 1 0 0 0
2 1 0 0 0
2001 May 01
1
How to use install.packages()
Dear R-friends,
As the binary windows version of R being distributed,
what is the correct way to install contributed packages without
using winst.exe as before?
The answer in "R for Windows FAQ" says:
"You can install pre-compiled packages either from CRAN
or from a local .zip file by using install.packages: see its help page."
But the information available in
2002 Aug 06
1
Questions about lexical scope
Dear R-users,
The numerical integration example given in Gentleman and Ihaka (2000),
"Lexical Scope and Statistical Computing," JCGS, 9, 491-508,
is very interesting and helpful in understanding how lexical scope
is about.
However, I got some questions that I just can't figure out.
First all, allow me to copy the two functions given by the authors:
midpoint <- function(f, a,
2002 Jan 02
0
Status of "Official" Win Binaries for 1.4.0
Hello Everyone,
Just a note to inquire about the status of the "official" RWin release. I
downloaded the binaries from CRAN using the link provided by Guido Masarotto
<http://sirio.stat.unipd.it/RWin> soon after they appeared on CRAN.
However, following R help, it seems that there are some problems with that
compilation, particularly related to GRID and Lattice. Sure enough, I
2001 Dec 27
5
new lattice/grid
I just installed R-1.4.0 on my Win2k machine from SetupR.exe. Everything
seems to be fine with the base and recommended packages. However, when I
install the lattice and grid packages they do not seem to work. Everything
I try results in something like this:
Instruction 0x00543f06 refernced memory 0x00000000. The memory cannot
be "read".
and I am getting kicked out of R.
Has
2004 Oct 21
2
How to calculate a double integral ...?
Dear R-Friends,
How can I calculate a double integral like
\int_a^b \int_c^y g(x, y) dx dy
where a, b, c are constants, g(x, y), e.g.,
g(x, y) = tan(x + y).
I tried to nested integrate() and adapt(),
but none of them working, seemingly due to the
limits can not be specified constants.
Best regards,
C. Joseph Lu
Department of Statistics
National Cheng-Kung University
Voice:
2001 Dec 27
1
Binaries of R-1.4.0 for Windows
A binary distribution of R-1.4.0 to run on Windows 95, 98, NT4.0, 2000
and XP on Intel/clone chips is available at
http://sirio.stat.unipd.it/RWin
It will be mirrored at a CRAN site near you in a couple of days.
See http://sirio.stat.unipd.it/RWin/CHANGES for a list of
Windows-specific changes.
guido masarotto
2001 Dec 27
1
Binaries of R-1.4.0 for Windows
A binary distribution of R-1.4.0 to run on Windows 95, 98, NT4.0, 2000
and XP on Intel/clone chips is available at
http://sirio.stat.unipd.it/RWin
It will be mirrored at a CRAN site near you in a couple of days.
See http://sirio.stat.unipd.it/RWin/CHANGES for a list of
Windows-specific changes.
guido masarotto
2005 Feb 10
2
correcting for autocorrelation in models with panel data?
Hi
I have some panel data for the 50 US states over about 25 years, and I
would like to test a simple model via OLS, using this data. I know how
to run OLS in R, and I think I can see how to create Panel Corrected
Standard Errors using
http://jackman.stanford.edu/classes/350C/pcse.r
What I can't figure out is how to correct for autocorrelation over
time. I have found a lot of R stuff on