Displaying 20 results from an estimated 9000 matches similar to: "question related to S-Plus"
2003 Dec 09
3
axes that meet
R v. 1.7.1, Windows 2000.
A particular journal wants me to provide scatter plots with no box, but
with axes that meet in the lower left corner. It seems as though there must
be an easy way of doing this, but my reading the help on plot.default,
axis, and box have not provided any clues. I would be most appreciative of
any feedback.
Thank you,
Hank Stevens
Dr. Martin Henry H. Stevens,
2003 Nov 01
3
Calling R from PHP on Win2K?
Hi everyone,
I'd like to call R from a PHP script to draw graphs (using data selected
from a MySQL database) on Windows 2000. I think what I need to do is:
1) Install R for Windows
2) Install Perl
3) From PHP make a system call to Rcmd.exe
4) ???
Does this seem right and/or possible? I'm not sure how PHP can "receive" the
graphic generated by R. I have Apache/PHP/MySQL
2003 Jul 17
3
univariate normal mixtures
Hello,
I have a concrete statistical question:
I have a sample of an univariate mixture of an unknown number (k) of
normal distributions, each time with an unknown mean `m_i' and a
standard deviation `k * m_i', where k is known factor constant for all
the normal distributions. (The `i' is a subscript.)
Is there a function in R that can estimate the number of normal
distributions k
2003 Jan 29
2
browser() misbehavior ?
Under v1.6.2, Windows NT4 OS, when a function contains an execution error
and I have placed browser() in inside the function body, the call to browser
is ignored. A brief example to illustrate:
> foo <- function(x) {
+ y <- x ^ 2
+ browser()
+ foo2(x) ## Intentional error
+ x ^ 3
+ }
>
> foo(30)
Called from: foo(30)
Browse[1]>
Error in foo(30) : couldn't find
2004 Jan 29
3
Running R remotely in Windows Environment?
We are considering setting up a fast, RAM loaded machine as an "R-server"
to handle the big problems not suitable for individual desktops and, also,
to process ad hoc analysis requests via our portal. We are 99% a Windows
shop, so first choice is a windows server. We'll use (D)COM for the portal
interface and understand that.
What has me stumped is how to easily interface
2004 Oct 20
7
Q about strsplit and regexp
Dear R-help,
This one is probably a piece of cake for regexp masters. I'd like to split
a character vector (for simplicity, say of length one for now) that contains
fields that are delimited by arbitrary number of white spaces (e.g., " a b
c "). How do I get the character vector that contain the fields? In the
example I gave, I've tried:
> strsplit(" a b c
2003 Jul 29
5
Sending emails from R under Windows
Hi
Does anyone know of any R routines to send emails from R, under Windows?
I thought about writing such a facility using the R(D)COM package to
drive e.g. MS Outlook, but I don't want to reinvent the wheel. I have
found a function Sys.mail in the library syskern, but this only works
under Unix by shelling out a mail command.
Thanks,
David
2003 Jul 29
5
Sending emails from R under Windows
Hi
Does anyone know of any R routines to send emails from R, under Windows?
I thought about writing such a facility using the R(D)COM package to
drive e.g. MS Outlook, but I don't want to reinvent the wheel. I have
found a function Sys.mail in the library syskern, but this only works
under Unix by shelling out a mail command.
Thanks,
David
2002 Jun 05
2
par(new=T) with xyplot
I know I should not mix base plotting functions with grid/lattice functions,
but I have used a "quick-and-dirty" trick of par(new=T) in the past for
annotating a trellis-drawn graph in various versions of S-PLUS. The
sequence goes something like this:
> windows(width = 5, height = 5, pointsize = 10) # open up the device
> xyplot(y ~ x)
> par(new=T)
> xyplot(y2 ~ x)
>
2005 Feb 07
5
R on Beowulf cluster?
Dear R-help,
Has anyone tried running R on a Beowulf-type cluster? I can get R to run in
batch (using R CMD BATCH) on a cluster, but am wondering if it is possible
to get an interactive R session on a compute node. Right now, if I run:
beorun --nolocal R
I just get the R start-up message and back to the shell prompt. If I try
bpsh 0 R
I can get R started (but the R prompt does not
2003 Jan 15
2
Exception Handling
R Users:
How can I catch R errors and depend on this error call other R
functions in Perl?
The foolowing is the error message when I use perl call R.
Error in nls(modout ~ exp(-b1 * modin)/(b2 + b3 * modin), trace = F,
start = c(b1 = 0.005, :
singular gradient
Segmentation fault
Thanks,
Zhongming
2003 May 06
3
how to read a web page and extract an html table?
Hello all,
I want to read a table from a given web page.
If I do something like
> str="http://www...." # this is the web address
> aux1 <- url(str,open="rt")# open connection
> aux2 <- readLines(aux1) # read web page
aux2 contains the html file.
I want to extract the table from the html file.
Is there a function html2R, the opposite of R2html?
2003 Jun 23
2
Lwd ignored when printing on Windows
Dear R-help,
Has anyone notice the problem that, on Windows (NT and XP), when printing a
graph using the "File -> Print..." menu in the graphics window to print the
graph, that line width seemed to be ignored in the printed output? For
example, if I make a plot with plot(1:10, type="l", lwd=5), it looks right
on screen, but when printed out using the menu, it looks like
2003 Apr 01
2
Autogenerated png, bitmap images
I have two questions -
1. I am trying to create R png graphs via cron. I have this part working
using Xvfb (X virtual frame buffer). One problem that I have, though, is
that all the fonts on my graphs get messed up. Anybody have any nija R
commands to make all fonts look great? Anybody have any idea how to fix
this? So far, no luck on Solaris or Linux making the Xvfb fonts look
good.
I was
2003 Aug 26
4
R on Linux/Opteron?
Dear R-help:
Has anyone tried using R on the the AMD Opteron in either 64- or 32-bit
mode? If so, any good/bad experiences, comments, etc? We are considering
getting this hardware, and would like to know if R can run smoothly on such
a beast. Any comment much appreciated.
Best,
Andy
Andy Liaw, PhD
Biometrics Research PO Box 2000, RY33-300
Merck Research Labs Rahway, NJ
2004 Jan 09
2
debugging strange segfault
Dear R-devel,
Can anyone give me some hints on how to go about debugging a strange
segfault in my randomForest package? Here's the scoop:
A user reported segfault when running predict() in the randomForest package.
I asked for the data and code. The combination runs fine under WinXPPro,
but does give segfault on one of our Linux boxes running R (1.7.0 through
R-devel_2004-01-08) on
2004 Jun 04
5
How to Describe R to Finance People
> the main advantage it has over SPSS-like software is that you do not
> need to explicitly create dummy variables. You only need to specify
> your dependent variable and independent variables and R will fit it
> (and create dummy variables automatically) for you.
Does the audience know exactly what the creation of dummy variables
in SPSS is and means?
If not, they might consider
2004 Apr 15
7
all(logical(0)) and any(logical(0))
Dear R-help,
I was bitten by the behavior of all() when given logical(0): It is TRUE!
(And any(logical(0)) is FALSE.) Wouldn't it be better to return logical(0)
in both cases?
The problem surfaced because some un-named individual called randomForest(x,
y, xtest, ytest,...), and gave y as a two-level factor, but ytest as just
numeric vector. I thought I check for that in my code by testing
2005 Sep 23
1
undocumented objects in a package
Dear R-devel,
I recall that there used to be a mechanism to get around the requirement
that all objects in a package have associated documentation; i.e., a way to
specify a list of objects (mostly functions) that are not considered as part
of the package API. Is this still available? I cannot find any mention in
R-exts.
I realize that the way to go is to have a name space, and eventually
2008 Mar 19
1
how to exclude terms preceded by - from model frame
[I believe few users manipulate formulae and model frames like this, so
I'm posting here instead of R-help.]
I just found out that model.frame() includes all terms, including those
preceded by "-" in the formula, in its output (as mentioned on its help
page). Is there a recommended way of excluding "negative" terms? My
guess is that I can use info in the terms attribute