As with most of the replies so far, I enjoy the way the list works.
A couple of observations however are that it is evident that off list
replies already happen and imho more importantly is the fact that
initially quite straightforward queries can turn into something much
more interesting. I find
I have always been intrigued by why ?for (or ?if,?while,etc) leave R wanting for more:
?for
+
I know the help for these is in ?Control, but I sometimes make the mistake of typing
?for instead. What is R expecting me to say to finish the statement?
Thanks,
Angel
[[alternative HTML
You have typed a syntactically incomplete statement: this is explained in
?help.
Hint: ?for and help(for) work.
On Sun, 16 Nov 2003, Angel wrote:
I have always been intrigued by why ?for (or ?if,?while,etc) leave R
wanting for more:
?for
+
I know the help for these is in ?Control, but I
I need informations about the clara routine. The on-line doc say that the
argument stand is a logical, indicating if the measurements in x are
standardized before calculating the dissimilarities. Measurements are
standardized for each variable (column), by subtracting the variable's mean
Hi Folks,
I am using Windows 2000 and was wondering what (Open Source) software R
users use or might recommend for symbolic computations (aside from the ol'
noggin, e.g., Maxima, Mathomatic) .
Thanks,
Hank
Dr. Martin Henry H. Stevens, Assistant Professor
338 Pearson Hall
Botany Department
Miami
Prof Brian Ripley [EMAIL PROTECTED] writes:
You have typed a syntactically incomplete statement: this is explained in
?help.
Hint: ?for and help(for) work.
Further hint: ? is an operator, syntactically similar to + and -. You
can apply operators to the result of a for loop. Consider for
How can I control the size of the characters when using the function identify() ?
Many thanks in advance.
alain GUERREAUCNRS-Paris
[EMAIL PROTECTED]
[[alternative HTML version deleted]]
__
[EMAIL PROTECTED] mailing list
Hi,
I sometimes use MuPAD (www.mupad.com). Unfortunately, it is not Open Source,
but most versions are free of charge for non-commercial use (see http://
www.sciface.com/personal.shtml).
Arne
On Monday 17 November 2003 11:37, Hank Stevens wrote:
Hi Folks,
I am using Windows 2000 and was
Paul == Paul Murrell [EMAIL PROTECTED]
on Mon, 17 Nov 2003 09:07:29 +1300 writes:
Paul Hi
Paul Remington, Richard wrote:
Wolfgang Zocher wrote:
Hi,
using par() a window is opened which is too large for my monitor. Is
there any
chance to change
I cannot discover how to set or find the working directory in
Rweb, so that I can source() a file from the server. The file I
source() must refer to a data file in its directory.
setwd() does not do anything, and getwd() says that the working
directory is in /var/www/cgi-bin/ (on Linux).
(I
the function
confint
uses the profiling method of the function of the package MASS
confint.glm
even after the package has been detached!
1: might this be the intenden behavior?
2. How does the function remember its 'MASS' functionality after detaching the package?
R: 1.8.0; Windows 2000
On Mon, 17 Nov 2003, guerreau wrote:
How can I control the size of the characters when using the function identify() ?
You cannot and found the bug mentioned in PR#660.
Uwe Ligges
Many thanks in advance.
alain GUERREAUCNRS-Paris
[EMAIL PROTECTED]
[[alternative HTML
I think I do understand how difficult dates are. All I'm saying is
that by adopting a standard that is OS dependent (and hence,
almost by definition, OS varying) you make R behave differently
on different OSs - and that is NOT making R portable across
multiple OSs.
This is a theoretical whinge.
On Mon, 17 Nov 2003, Ulrich Halekoh wrote:
the function
confint
uses the profiling method of the function of the package MASS
confint.glm
even after the package has been detached!
Why the exclamation mark? Note profile.glm is not actually in package:MASS
(sic). Try looking for it:
It seem a user-permission problem.
May be some mistake at Rweb configuration
level (look at the RwebConfig file)?
First you have to try R standalone.
A.S.
Alessandro Semeria
Models and Simulations Laboratory
Montecatini Environmental Research Center (Edison Group),
Hi all!
I am fitting a Poisson model, using the following command:
fit2-glm(canc~id1+year1+time+lnpa,family=poisson)
where 'id1', 'year1' and 'time' are factors. I defined them with:
id1-C(factor(id1), treatment)
and 'lnpa' is a continuous variable.
The 'summary' function
I have followed with interest the discussion on date handling.
I am no expert in these things; all I want to do is convert a character
vector that has been read into R (and which may contain some erroneous
dates) to a date format, and then do some work with it [e.g., use it in a
plot].
Classes
The second fit appeared to use a dataframe and the first did not. Try
fit2-glm(canc~id1+year1+time+lnpa,family=poisson, subset=-18)
On Mon, 17 Nov 2003, Marcos Sanches wrote:
Hi all!
I am fitting a Poisson model, using the following command:
Ok, it worked!!!
But what would be the command if I want to eliminate another point? I
mean, two points at the same time.
Thanks,
Marcos
-Original Message-
From: Prof Brian Ripley [mailto:[EMAIL PROTECTED]
Sent: Monday, November 17, 2003 1:02 PM
To: Marcos Sanches
Cc:
Dear all,
I am thinking of writing my own functions in s-plus (or in R). I just
know how to work with S-plus / R built-in functions. Therefore, I'm a
beginner in S programming.
I am looking for some on-line documentation that is well written about
Programming in S language where
On Mon, 17 Nov 2003, Marcos Sanches wrote:
Ok, it worked!!!
But what would be the command if I want to eliminate another point? I
mean, two points at the same time.
subset=-c(18,27)
Thanks,
Marcos
-Original Message-
From: Prof Brian Ripley [mailto:[EMAIL
Dear list members,
I am trying to use nlm function to maximize a mixture likelihood of beta
densities. There are five unknown parameters in the likelihood. Since I can
get the analytic gradient, I attach the gradient attribute in my target
likehood function. The code is as the following
Look at http://cran.r-project.org/other-docs.html
A.S.
Alessandro Semeria
Models and Simulations Laboratory
Montecatini Environmental Research Center (Edison Group),
Via Ciro Menotti 48,
48023 Marina di Ravenna (RA), Italy
Tel. +39 544 536811
Fax. +39 544 538663
From ?glm, I find the following:
subset: an optional vector specifying a subset of observations to be
used in the fitting process.
Thus, to delete observations 16 and 18, I can use the following:
fit2-glm(canc~id1+year1+time+lnpa,family=poisson, subset=-c(16,18))
Hi,
How can I include accents and signs like 'ñ' 'à' in the plots generated by R?
I try, but R automatically transforms the name
ex:
countries - c(México, España)
countries
[1] M\216éxico Espa\216ña
I've seen in some Spanish texts about R how is it normal to include labels of
the plots and
On Mon, 17 Nov 2003 [EMAIL PROTECTED] wrote:
Dear list members,
I am trying to use nlm function to maximize a mixture likelihood of beta
densities. There are five unknown parameters in the likelihood. Since I can
get the analytic gradient, I attach the gradient attribute in my target
Oh, that's a typo. I passed the function target. Seems to me R requires
some kind of specific syntex.
Yuan Ji, Ph.D.
Assistant Professor
Department of Bistatistics
The University of Texas M.D. Anderson Cancer Center
1515 Holcombe Blvd. - Unit 447
Cf. expression()
On Monday 17 November 2003 17:14, Xavier Fernández i Marín wrote:
Hi,
How can I include accents and signs like 'ñ' 'à' in the plots generated by
R?
I try, but R automatically transforms the name
ex:
countries - c(México, España)
countries
[1] M\216éxico Espa\216ña
Depending on what you want to do
?deriv
in R may be enough.
---
Date: Mon, 17 Nov 2003 05:37:22 -0500
From: Hank Stevens [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: [R] Symbolic math?
Hi Folks,
I am using Windows 2000 and was wondering what (Open Source) software R
users use or
Xavier Fernández i Marín [EMAIL PROTECTED] writes:
Hi,
How can I include accents and signs like 'ñ' 'à' in the plots generated by R?
I try, but R automatically transforms the name
ex:
countries - c(México, España)
countries
[1] M\216éxico Espa\216ña
I've seen in some Spanish
Hi,
Have you tried Yacas?
Yacas is a general purpose easy to use Computer Algebra System . It is built on top
of its own programming language designed for this purpose, in which new algorithms can
easily be implemented. In addition, it comes with extensive documentation on the
functionality
For the code, just copy and paste it through the clipboard
into Rweb.
For the data, you enter the URL in the area where Rweb says
External Data Entry. Alternately, you can use the R dput command
on your machine to turn the data into an R statement and then add it
to the source file,
Here's a faster version of most.recent. It uses rep() in a vectorized
manner.
# Gabor Grothendieck's function:
most.recent.cut - function(x)
+ as.numeric(as.vector(cut(seq(x),c(which(x),Inf),lab=which(x),right=F)))
# Version that uses which() and vectorized rep()
most.recent -
Hello!
If you are using a GNOME-Terminal or if you are running R inside Emacs
just make yourself sure that you change the UTF-8 encoding before starting
R.
On Mon, 17 Nov 2003, Salvatore Barbaro wrote:
Cf. expression()
On Monday 17 November 2003 17:14, Xavier Fernández i Marín
On 17 Nov 2003 at 15:08, Ted Harding wrote:
On 15-Nov-03 Ted Harding wrote:
And the following (in today's ?for thread) is a perfect example of
what I mean:
===
From: Peter Dalgaard [EMAIL PROTECTED] To: Angel
[EMAIL PROTECTED],
[EMAIL PROTECTED] wrote:
Indeed! look at the following:
test - function(x) invisible(x)
test(9)
- test(9)
[1] -9
or even:
+test(9)
[1] 9
__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
***
Sigrid M. Volko, Ph.D.
Assistant Director
Office of Licensing and Technology Development
Johns Hopkins University
100 N. Charles Street, 5th Floor
Baltimore, MD 21201
phone: 410-516-4962
fax: 410-516-5113
This e-mail message
On Mon, 17 Nov 2003 18:30:08 -, Monica Palaseanu-Lovejoy
[EMAIL PROTECTED] wrote :
hi y'all,
I am wondering if there is any special command, function,
package, etc to help me doing a cumulative distribution function,
with y-scale - probability scale.
I tried the help in R and i got the
Well ^C or ESC (on Windows GUI) is the answer I would give.
On Tue, 18 Nov 2003, Ray Brownrigg wrote:
Peter Dalgaard [EMAIL PROTECTED] writes:
Prof Brian Ripley [EMAIL PROTECTED] writes:
You have typed a syntactically incomplete statement: this is explained in
?help.
Hint:
Greetings, R-ians:
I am embarking on a project that I anticipate will require cleaning up some
noisy 2-D images, and would like to use MCMC to that end. But I don't want
to start from scratch if someone if the R-community has already plowed that
field. (I love mixed metaphors.) Anyway, any
I am running R on Mac OS X 10.2x. When I create
postscript graphics of rpart tree objects, a tiny part
of the tree gets trimmed off, even when it has only a
few terminal nodes. This happens even without fancy
but worse if fancy=T. (This doesn't happen with
boxplot, scatter plots, etc.) How do
On Mon, 2003-11-17 at 14:27, Prof Brian Ripley wrote:
Well ^C or ESC (on Windows GUI) is the answer I would give.
On Tue, 18 Nov 2003, Ray Brownrigg wrote:
Peter Dalgaard [EMAIL PROTECTED] writes:
Prof Brian Ripley [EMAIL PROTECTED] writes:
You have typed a syntactically
Hi,
I have been developing a package in R and have been working on
documentation. I have a \details function that contains the following:
\details{
some text
\preformatted{
[my-section]
user = apv
host = 127.0.0.1
}
}
When I run R CMD check I get an error while checking the manual. If I
We have a Windows 2000 operating system and I need to configure the
workstations. What are your recommendations for users with very large data
sets (300Mb)? The systems are Dell GX240s with 512 Mbs of Ram. What
command line or environment variables work best?
Sincerely,
Joe Busch
Urban
Suppose you initially create a vector a-c(5,1,3,4).
You want to sort the vector before performing specific
calculations to the numbers. You now have the vector
[1,3,4,5]. How can you now revert back to your
initial ordering of [5,1,3,4]? Is there a specific
command or 'sort by' command that one
Merrill Birkner wrote:
Suppose you initially create a vector a-c(5,1,3,4).
You want to sort the vector before performing specific
calculations to the numbers. You now have the vector
[1,3,4,5]. How can you now revert back to your
initial ordering of [5,1,3,4]? Is there a specific
command or
If you need only to sort a vector, then sort() does the job.
To go back to the original vector, the following may work:
x - unique(rpois(30,5))
x
[1] 8 5 3 4 6 9 2 7
x.sorted - sort(x)
x.sorted
[1] 2 3 4 5 6 7 8 9
x.sorted[order(order(x))]
[1] 8 5 3 4 6 9 2 7
HTH,
Giovanni
Date: Mon, 17
Hi,
I'm trying to write a function that will divide a given range of
numbers into 3 sets using sample(), without repetition. Currently I'm
trying this approach:
r - 1:10
s1 - sample(r,size=3)
Next, I want to remove the selected elements from r and sample() from
the remainder.
r - r[ -(r=s1) ]
Rajarshi -
Do you want three sets, three disjoint sets, or sets of
size three ? It's not clear what you are attempting to do.
- tom blackwell - u michigan medical school - ann arbor -
On Mon, 17 Nov 2003, Rajarshi Guha wrote:
Hi,
I'm trying to write a function that will divide a
On Mon, 2003-11-17 at 20:01, Thomas W Blackwell wrote:
Rajarshi -
Do you want three sets, three disjoint sets, or sets of
size three ? It's not clear what you are attempting to do.
Sorry about that. I wanted to select 3 disjoint sets from a supplied
vector of numbers. My initial example
Rajarshi -
To obtain three disjoint subsets, I would do
indic - sample(seq(3), length(r), TRUE)
s1 - r[indic == 1]
s2 - r[indic == 2]
s3 - r[indic == 3]
Note that the sizes of the three subsets have a
joint multinomial distribution with parameters
prob = c(1/3, 1/3, 1/3) and n = length(r).
r - 1:30
# Random allocation to sets
tapply(r, sample(1:3,length(r),rep=T), c)
$1
[1] 1 3 8 12 15 16 18 20 21 25 29
$2
[1] 2 5 6 7 9 10 13 14 17 19 22 27 30
$3
[1] 4 11 23 24 26 28
# Equal size sets (approximately)
tapply(r, sample(seq(length(r))%%3), c)
$0
[1] 1 6 9 10 12 15
On 17 Nov 2003 20:07:08 -0500, you wrote:
Sorry about that. I wanted to select 3 disjoint sets from a supplied
vector of numbers. My initial example had
r - 1:300
but there is no guarantee that r will contain a consecutive sequence of
numbers.
It's still not clear whether the 3 sets should
Hi
Kaiser Fung wrote:
I am running R on Mac OS X 10.2x. When I create
postscript graphics of rpart tree objects, a tiny part
of the tree gets trimmed off, even when it has only a
few terminal nodes. This happens even without fancy
but worse if fancy=T. (This doesn't happen with
boxplot,
I am trying to find a way to obtain the fitted values for a model fit
using arima() in the ts package. I came across a suggestion in the
mailing list archive that these values can be simply calculated as:
model-arima(t, order = c(1,1,0));
fitted-t-model$residuals;
But, the help file for
On Mon, 2003-11-17 at 20:31, Duncan Murdoch wrote:
On 17 Nov 2003 20:07:08 -0500, you wrote:
Sorry about that. I wanted to select 3 disjoint sets from a supplied
vector of numbers. My initial example had
r - 1:300
but there is no guarantee that r will contain a consecutive sequence
Further to my queries re relating discrete variables I have had a couple of
tips on things I could try. This has lead me to attempt a marginal
homogeneity test
(http://ourworld.compuserve.com/homepages/jsuebersax/margin.htm).
o Does anyone have an opinion on whether this approach would be
On Mon, 17 Nov 2003, Busch, Joe wrote:
We have a Windows 2000 operating system and I need to configure the
workstations. What are your recommendations for users with very large data
sets (300Mb)? The systems are Dell GX240s with 512 Mbs of Ram. What
command line or environment variables
58 matches
Mail list logo