Displaying 20 results from an estimated 3000 matches similar to: "How to use install.packages()"
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
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:
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 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 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 Apr 05
1
No subject
R-helpers,
Beginner in R language, I have a problem to install a package (multiv) in R
for Windows 98 (R-Gui)
First I have got the multiv.zip file from the CRAN precompiled contributed
packages for Windows and put this file in C:/Program Files/rw1022.
in R-Gui I tried to install it as following
> install.packages("C:/Program Files/rw1022/multiv.zip")
I received the following
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
2001 May 22
2
MASS data sets
I'm running R 1.2.2 under windows 98 on a Pentium 133 laptop.
I can't seem to retrieve the package MASS data sets:
> library(MASS)
> data(wtloss)
Warning message:
Data set `wtloss' not found in: data(wtloss)
> data(abbey)
Warning message:
Data set `abbey' not found in: data(abbey)
And yet all the .rda files for the MASS datasets are in
D:\Program
2001 Mar 07
1
Windows: updating to R 1.2.2
Forgive me, but while I find the documentation for initially installing R
to be clear, I'm not so happy about updating.
I want to update from R 1.2.1 to R 1.2.2 (mainly so I can get the debugged
version of pictex() ).
Now I have downloaded the base zip files, say to Z:\Program Files and my
existing installation of R 1.2.1 is sitting in
Z:\Program Files\rw1021.
Running rwinst.exe I need to
2002 May 11
4
Is this a bug of pweibull()?
In rw1050, I found that
> pweibull(3:10, 2)
[1] 0.9998766 0.9999999 1.0000000 1.0000000 NaN NaN
[7] NaN NaN
Warning message:
NaNs produced in: pweibull(q, shape, scale, lower.tail, log.p)
more surprisingly,
> pweibull(3:10, 2.1)
[1] 0.9999566 1.0000000 1.0000000 -Inf NaN NaN
[7] NaN NaN
Warning message:
NaNs produced in: pweibull(q,
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
2001 Mar 22
1
Preview of an alternative R for Windows installer
I have built a version of the current 1.2.2 patched version of R using
Inno Setup2 (http://www.jrsoftware.org/isinfo.htm). (That toolkit is
open source (in Delphi) and was fairly easy to tame. Full details are
in the R-patched sources.) This gives a single ~10Mb file, at
http://www.stats.ox.ac.uk/pub/bdr/RWin/SetupR.exe
The idea is that it should look very like a Windows 2000-style install,
and
2001 Apr 27
1
INSTALL Problems
Dear All,
I have tried to install the tensor package (from:
http://cran.r-project.org/src/contrib/PACKAGES.html#tensor ), using the
comand:
"
shell("Rcmd INSTALL tensor")
"
then I got the following mensage:
----------------------------------------------------------------------------------
make: Entering directory `/d/bin/cran/rw1022/src/gnuwin32'
make DLLNM= EXTRADOCS= \
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
* * * * *
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
_______________________________________________________________________
2002 Jan 10
1
When the "official" copy will be corrected?
Since I just experienced another crash on R 1.4.0 for Windows
(this time is on plot(x, y) after using gls() of package nlme) and
am told (thanks Andy) that is might due to the "official" version
of binary copy.
I am also told that
"The one provided by Prof. Ripley is known to work.
This has been asked several times on the list."
Then, I am wondering when the
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="$") ->