Displaying 20 results from an estimated 7000 matches similar to: "How to do this "combination" ?"
2001 Nov 12
3
histogram question
hist(rbinom(1000,10,0.5),col=2,xlim=c(0,10),ylim=c(0,300))
gives a histogram with "touching bars"
hist(rbinom(100000,10,0.5),col=2,xlim=c(0,10),ylim=c(0,30000))
gives a histogram with space between the bars.
is there a way to control the space betweent he bars easily?
--
Erich Neuwirth, Computer Supported Didactics Working Group
Visit our SunSITE at http://sunsite.univie.ac.at
2000 Feb 25
1
r-excel interface code
some of you might be interested.
i just uploaded the first release of my
r-excel interface package to CRAN.
it is in
contributed extensions
nonstandard extensions
erich neuwirth
--
Erich Neuwirth, Computer Supported Didactics Working Group
Visit our SunSITE at http://sunsite.univie.ac.at
Phone: +43-1-4277-38624 Fax: +43-1-4277-9386
2000 Feb 25
1
r-excel interface code
some of you might be interested.
i just uploaded the first release of my
r-excel interface package to CRAN.
it is in
contributed extensions
nonstandard extensions
erich neuwirth
--
Erich Neuwirth, Computer Supported Didactics Working Group
Visit our SunSITE at http://sunsite.univie.ac.at
Phone: +43-1-4277-38624 Fax: +43-1-4277-9386
2004 Jul 14
5
RGui Titlebar
In the windows version (RGui), is there a way to set
the text displayed in the titlebar of the R window?
When I have 2 instances of RGui running, it would be helpul
if the titlebar could help to understand which is which.
--
Erich Neuwirth, Computer Supported Didactics Working Group
Visit our SunSITE at http://sunsite.univie.ac.at
Phone: +43-1-4277-38624 Fax: +43-1-4277-9386
2004 Sep 08
4
factor always have type integer
typeof applied to a factor always seems to return "integer",
independently of the type of the levels.
This has a strange side effect.
When a variable is "imported" into a data frame,
its type changes.
character variables automatically are converted
to factors when imported into data frames.
Here is an example:
> v1<-1:3
>
2002 Mar 07
2
Statconnector and Excel
Hi,
I'm trying to combine a VBA macro and a R package. I've installed the R-(D)COM and the R-excel interface by Neuwirth. They seem to work both. However I would like to display the r-generated data in an Excel sheet as an array but I don't manage.
Here is an example of my source:
Sub doR()
Call RInterface.StartRServer
Call RInterface.RRun("library(mdnn)")
Call
2002 Oct 31
1
new package RColorBrewer available
RColorBrewer 0.1-1
is available on CRAN.
The packages provides palettes for drawing nice maps
shaded according to a variable as an R function.
The palettes have been designed by and are copyrighted by the
ColorBrewer project.
An interactive palette selection tool byt the original designers is
available at
http://colorbrewer.org
--
--
Erich Neuwirth, Computer Supported Didactics Working Group
2002 Oct 31
1
new package RColorBrewer available
RColorBrewer 0.1-1
is available on CRAN.
The packages provides palettes for drawing nice maps
shaded according to a variable as an R function.
The palettes have been designed by and are copyrighted by the
ColorBrewer project.
An interactive palette selection tool byt the original designers is
available at
http://colorbrewer.org
--
--
Erich Neuwirth, Computer Supported Didactics Working Group
2001 Dec 13
1
windows build
with todays r-devel..tar.gz
make distribution
hangs on my win98 machine.
this is the las message i see
MAKE[2]: Leaving directory
`/cygdrive/c/devel/R-devel/src/gnuwin32/bitmap/jpeg-6
b'
cp Rbitmap.dll ../../../bin
MAKE[1]: Leaving directory
`/cygdrive/c/devel/R-devel/src/gnuwin32/bitmap'
after that, the it seems that sed is running
and somehow hangs.
i do have the tools from brians
2001 Nov 24
4
about the function order()
Dear all,
I have recently experienced something with the function order I cannot
explain:
The help(order) (which I admit having overlooked before) rises even more
my confusion...
The following lines made me think order() was returning the 'order' each
value in a vector would take when sorted.
> a <- c(4.1, 3.2, 6.1)
> order(a)
[1] 2 1 3
Doing
> plot(a,
2001 Dec 16
1
windows testing, internet
doing
make -f Makewfile.win test-Internet
in tests
gave
make[1]: Leaving directory `/cygdrive/d/Work/R-devel/tests'
D:/Work/R-devel/bin/Rterm --vanilla LC_ALL=C --internet2 --vanilla <
internet.R
> internet.Rout2
diff internet.Rout internet.Rout2
99,100c99,100
< unable to resolve 'foo.bar'.
< Error in url("http://foo.bar", "r") : cannot open URL
2004 Apr 19
3
New unique name
In some languages there is a function
gensym()
which returns a new unique name (in the current environment).
This is quite helpful when one has to do temporary assignments.
I could not find such a function in R.
Is there one?
--
Erich Neuwirth, Computer Supported Didactics Working Group
Visit our SunSITE at http://sunsite.univie.ac.at
Phone: +43-1-4277-38624 Fax: +43-1-4277-9386
2002 Mar 29
3
system in windows
i want to call
"c:/Program Files/Netscape/Communicator/Program/netscape.exe"
with system
but
system("c:/Program Files/Netscape/Communicator/Program/netscape.exe")
does not work because of the blank.
system('"c:/Program
Files/Netscape/Communicator/Program/netscape.exe"',wait=FALSE)
works exactly like i want.
when i set
options(browser="c:/Program
2002 Jul 19
3
controling graphic window size and asprec ratio in windows
i am using the rarcinfo package
to draw maps.
for maps, th aspect ratio is quite important.
how can i control the aspect ratio and the size of a graphics window
in the mswindows version of R and more generally in R in general.
i would like to e able to both set the size before or while the window
is corrected,
and also for a window which already exists.
--
--
Erich Neuwirth, Computer Supported
2002 May 15
2
combining vectors to matrices or data frames
hi,
during a for(i in 1:xx]) loop I always newly calculate a vector
(e.g. tmp<-c(a,b,c,d,e) )
now i need that vector to be attached at the bootom of a matrix (or
data.frame).
e.g.
m<-matrix()
for(i in 1:5]){
#some calculations for a,b,c,d,e
a<- ... b<- ... c<- .. ....
tmp<-c(a,b,c,d,e)
??? now I need to attach this tmp to the matrix m ???
}
i couldn't get rbind
2001 Dec 05
9
Windows testing
R 1.4.0 is now sinking into feature freeze, and we'd like some help
testing it under Windows. Duncan Murdoch and Uwe Ligges have already
volunteered.
I've put a copy of SetupR140.exe at
http://www.stats.ox.ac.uk/pub/bdr/RWin
Also in that directory is a file TESTING suggesting some tests, not all of
which have been run on this build. As the graphics internals have been
changed a lot
2002 Oct 28
1
R as a library
I would like to write a stand-alone application (in C) using R's
statistical and graphical capabilities. To make it more challenging I
would have to do it using Windows 2000 platform. I seem to remember that R
can be compiled into a library of subroutines and linked to an external
program. Is this true or is my memory playing tricks on me? I scanned the
FAQs and the "extensions"
2004 Feb 16
4
Questions about Matrix
How to Generate the Matrix (t+1)*m ?
(0-1)^n (0-2)^n ,,,, (0-m)^n
(1-1)^n (1-2)^n ,,,, (1-m)^n
(2-1)^n (2-2)^n ,,,, (2-m)^n
.. ... ,,,, .......
(t-1)^n (t-2)^n ,,,, (t-m)^n
Appreciate your kindly help!
---------------------------------
[[alternative HTML version deleted]]
2001 Dec 07
2
question
Isn't anything in a data frame that is not explicitly numeric a *factor*?
-Greg
> -----Original Message-----
> From: Peter Dalgaard BSA [mailto:p.dalgaard@biostat.ku.dk]
> Sent: Friday, December 07, 2001 5:32 PM
> To: Erich Neuwirth
> Cc: r-devel@stat.math.ethz.ch
> Subject: Re: [Rd] question
>
>
> Erich Neuwirth
2001 Nov 22
2
optim ???
Hola!
santes<-c(210,169,187,160,167,176,185,206,173,146,174,201,198,148,154)
sdespues<-c(201,165,166,157,147,145,168,180,147,136,151,168,179,129,131)
dantes<-c(130,122,124,104,112,101,121,124,115,102,98,119,106,107,100)
ddespues<-c(125,121,121,106,101,85,98,105,103,98,90,98,110,103,82)
presion<-data.frame( santes, sdespues, dantes, ddespues)
logvero <-