Hello everybody
If
R a - 1i+(1:10)
I would like to say
R Im(a) - 1:10
R a
[1] 1+ 1i 2+ 2i 3+ 3i 4+ 4i 5+ 5i 6+ 6i 7+ 7i 8+ 8i 9+ 9i
10+10i
But there does not seem to be a Im- function.
How about this:
Im- - function(x,value){
if(is.complex(value)){stop(value must be real)}
Hello sir:
If there's a data frame(with name df):
a b c d e f
1 10 12 20 30 100
2 3 15 16 40 200
..
If I wanna change the last 3 colunm namesd e f respectively into x y
zrespectively,the following is what I do:
colnames(df[4:6])-c(x,y,z)
But no change to the colnames of df.
And if I
Try
colnames(df)[4:6] - c(x,y,z)
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
[EMAIL PROTECTED]
Sent: 21 December 2004 09:45
To: [EMAIL PROTECTED]
Subject: [R] about colnames
Hello sir:
If there's a data frame(with name df):
a b c d e f
1 10
hello,
I am encoutering problems with a function of R.
The function is for classification trees.
I am working on datas of this kind:
X1X2X3X4X5 class
1 2.092 1.902 2.779 2.944 1.946 1
for 200 observations and 4 differents classes.
What i would like to do is
Is there a reliable way to link to a vignette or other overview
document, which has been included in the inst/doc directory of a
source package, within a package help file in Rd format?
or maybe link to an index of such documents?
David
Professor David Firth
Dept of Statistics
University of
On Tue, 21 Dec 2004 12:47:44 +1300, you wrote:
|=[:o) Hi
|=[:o)
|=[:o)
|=[:o) Uwe Ligges wrote:
|=[:o) Tiago R Magalhaes wrote:
|=[:o)
|=[:o) I am trying to make a graph with 4 scatter matrixes plots and
couldn't
|=[:o) do it. While trying to find a solution for this I also came
Dear all,
I installed Mandrakelinux 10.1 (community) on my notebook. Before, I
used Mandrakelinux 9.1 (and later 10.0 as an update).
Now I wanted to compile, as before, R.
In the beginning, nothing worked but it seemed to be the problem of GCC
3.4.1 which was shipped with my distribution. After
Dear R-Community,
[EMAIL PROTECTED] wrote:
tree). There used to be an alpha verision of byte-compiler for R - is
it
now included into official version of R?
Is this byte-compiler publicly available (even if it is only an
alpha-version)?
Thanks,
Roland
I was searching the R-help archives.
Hi
I want to create a vector of colors that are as different from one
another as possible. ?rainbow states Conceptually, all of these
functions actually use (parts of) a line cut out of the 3-dimensional
color space This suggests to me that the resulting colors are all
placed on this line
Rau, Roland wrote:
Is this byte-compiler publicly available (even if it is only an
alpha-version)?
Hello!
Compiler is on the home page of Luke Tierney
http://www.stat.uiowa.edu/~luke/R/compiler/
Good luck!
__
[EMAIL PROTECTED] mailing list
I am trying to use the function aggregate with the median function but I
get the following error:
Error in FUN(X[[1]], ...) : Argument INDEX
When I replace median by mean, it works perfectly
Can someone tell me where the problem comes from?
Thx
I am running R 2.0.0 on SunOS 5.9
--
Philippe Hupé
You might need to install devel package(s) for X, which contain header files
that are needed. When configure finished, do you see `X11' among the final
output? If not, that may very well be the problem.
Andy
From: Rau, Roland
Dear all,
I installed Mandrakelinux 10.1 (community) on my
Dear list members,
Where can I find code for computing the p*p variance-covariance
matrix given a vector of p variances (ordered varA, varB, ...,
varp) and a vector of all possible correlations (ordered corAB,
corAC, ..., corp-1,p)?
I know that the covariance between 2 variables is equal to
On 21 Dec 2004 at 12:46, Philippe Hup wrote:
I am trying to use the function aggregate with the median function but
I get the following error:
Error in FUN(X[[1]], ...) : Argument INDEX
When I replace median by mean, it works perfectly
Hi Philippe
I suppose that you have some typo in
On 21-Dec-04 michael watson \(IAH-C\) wrote:
Hi
I want to create a vector of colors that are as different
from one another as possible. ?rainbow states Conceptually,
all of these functions actually use (parts of) a line cut out
of the 3-dimensional color space This suggests to me
Follow up on my previous e-mail
I am using Affys nzwC etc. are single columns vectors length 12000
then nzw,akr,bas are 12000 by 6 matrices
Thanks again for any help, now I resend the e-mail to Gordon with the correct
address I hope.
Heberto Ghezzo
McGill - Canada
Greg Blevins wrote:
Dear R Masters,
I have searched high and low (the help archives and my various R reference
material and help files) for a solution to what appears to me to be quite a
simple problem. In the following syntax, variable n10 has three levels. I
would like the symbols that
Haynes, Maurice (NIH/NICHD) [EMAIL PROTECTED] writes:
If the vector of variances were
var.vec - c(14, 12, 7)
and the vector of correlations were
cor.vec - c(.4, .2, .5),
then the vector of covariances would be:
covAB(c(.4, .2, .5),c(14, 14, 12), c(12, 7, 7))
[1] 5.184593 1.979899
On 21 Dec 2004 at 11:05, michael watson (IAH-C) wrote:
Hi
I want to create a vector of colors that are as different from one
another as possible. ?rainbow states Conceptually, all of these
functions actually use (parts of) a line cut out of the 3-dimensional
color space This
On 21 Dec, 2004, at 13:09, Haynes, Maurice (NIH/NICHD) wrote:
Dear list members,
Where can I find code for computing the p*p variance-covariance
matrix given a vector of p variances (ordered varA, varB, ...,
varp) and a vector of all possible correlations (ordered corAB,
corAC, ..., corp-1,p)?
On 21-Dec-04 Haynes, Maurice (NIH/NICHD) wrote:
Dear list members,
Where can I find code for computing the p*p variance-covariance
matrix given a vector of p variances (ordered varA, varB, ...,
varp) and a vector of all possible correlations (ordered corAB,
corAC, ..., corp-1,p)?
[...]
Hi,
where is my mistake?
i have done follow comand-lines.
export PKG_LIBS=-L/usr/lib/myslq
export PKG_CPPFLAGS=-I/usr/include/mysql
R CMD INSTALL RMySQL_0.5-5.tar.gz
i'm using R-2.0.1 , suse 9.2, 5.0.0-alpha-standard , and after a succefuel
compilaition i get when im type in R
Hi,
I'm not sure where is/are your mistake(s). But you could try finding
whether you installed the MySQL shared libraries (as of 4.1.8 there
are separate RPMs for these), and/or whether you need to add to your
LD_LIBRARY_PATH the directory where these reside.
Regards,
--
David
christian
Hi all,
I've downloaded
http://cran.cict.fr/bin/macosx/R-2.0.1.dmg
Installed all the packages (except Aqua) (no error message occured)
In my application folder, I find R only and I'm having the following message
when processing R :
Error in rm(rlibs) : can't remove variables from base
I have installed Parallel R on a LINUX Cluster and I am trying to initiate
the Parallel engine function in pR but I am receiving this error
Error in namespaceExport(ns, exports) : undefined exports: fixPre1.8
StartPE(2)
chr [1:2]
On Tue, 21 Dec 2004, michael watson (IAH-C) wrote:
Conceptually I guess what I want is colors from a 3D polygon in 3D
colour space, where the number of vertices in the polygon is n,
resulting in a color palette where the colors are all quite different
from one another. Is this possible or am I
PD == Peter Dalgaard [EMAIL PROTECTED]
on 21 Dec 2004 14:34:59 +0100 writes:
PD Haynes, Maurice (NIH/NICHD) [EMAIL PROTECTED] writes:
If the vector of variances were
var.vec - c(14, 12, 7)
and the vector of correlations were
cor.vec - c(.4, .2, .5),
then the
With lm it works.
With ppr and nnet it gives exactly the same error as in svm.
I did:
lm(Duracao ~ ., data= orig.data[1:874,])
ppr(Duracao ~ ., nterms=3, data=orig.data[1:874,],
na.action=na.omit, max.terms=6, optlevel=3,
sm.method='supsmu', bass=5, span=3/10)
nnet(Duracao ~ .,
Excellent Gabor. Thanks. I had seen the
withCallingHandlers function, but I did not
understand how it was to be used. Thanks for the
example.
John
__
[EMAIL PROTECTED] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the
There should be a caveat with psycho-visual experimentation:
Tufte (1983, p. 183) says that 5-10 percent of viewers are color
deficient or color blind. He (pp. 153-154) argues strongly against
color puzzles that look pretty but are extremely difficult to decode.
He says, Shades of gray
Hello:
I am new to R and am going through the growing pains,
wonder if you could help alleviate some.
I wished to find the estimate for a categorical
variable without it being broken into levels but dont
know how to.
if I use the following example:
$data(iris)
$g=lm(Sepal.Length~.,iris)
I'm trying to schedule R tasks in Windows Server 2003.
I can run the following from the DOS prompt without
any difficulty:
c:\Reportsc:\r\rw2001\bin\rterm.exe --no-restore
--no-save test.R test.out
where test.r has two lines: library(tools);
Sweave(rlr.Rnw).
When I try to run the same from the
On Tue, 21 Dec 2004 12:06:47 -0800 (PST) avneet singh wrote:
Hello:
I am new to R and am going through the growing pains,
wonder if you could help alleviate some.
I wished to find the estimate for a categorical
variable without it being broken into levels but dont
know how to.
if I
Save the command(s) in a batch (.bat) file, and then run the .bat
file from the task scheduler.
-Original Message-
From: Mikkel Grum [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 21, 2004 3:18 PM
To: RHelp
Subject: [R] scheduling R tasks under windows
I'm trying to schedule R tasks
Patrick Burns wrote:
I'm in the process of researching problems with Excel. The references
given by Tim and Marc seem to lead to discussions of most of the problems
with statistical procedures in Excel. The executive summary is that if
it is in Excel and it looks like statistics, then avoid it.
(Ted Harding) wrote:
On 20-Dec-04 Douglas Bates wrote:
This is a new version of SASmixed that was uploaded a couple of days
ago. I changed it so that the fits are done with the lme4 version of
lme. It should be faster and more reliable than the version of lme in
the nlme package.
This
Hello,
I am working with maQualityPlots.
I would like to change colors of graphs of 'Spatial:Rank(M-Raw)' and
'Spatial:Rank(M-Norm)' from blue-yellow to green-red.I think I need to change
col=NULL in :
maQualityPlots(mrawObj, headerInfo = , save = TRUE, dev = png, col=NULL,
badspotfunction=NULL,
On Wed, December 22, 2004 12:11 am, [EMAIL PROTECTED] said:
- Forwarded message from [EMAIL PROTECTED] -
Date: Mon, 20 Dec 2004 15:45:11 -0500
From: [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
Subject: [R] problems with limma
To: [EMAIL PROTECTED]
I try to send
Hello,
if I try to tune my svm with the code:
Tune - tune.svm(Data.Train, Class.Train, type=C-classification,
kernel=radial, gamma = 2^(-1:1), cost = 2^(2:4))
i get a windows Messagebox with a error in the application Rgui.exe and
the message: Die Anweisung in 0x6c48174d verweist auf Speicher
Some years ago when I used S-PLUS, I seem to remember, there was a
discussion about a simple method of removing trailing spaces from
vector elements. I'd be fairly sure the same would work in R, but I
can't find any mention of anything like it in the R archives or with
help.search().
There are
Use regular expressions: ?regexpr
e.g. if myvec is your original vector of strings
notrlblanks-sub('[[:blank:]]+?','',myvec)
-- Bert Gunter
Genentech Non-Clinical Statistics
South San Francisco, CA
The business of the statistician is to catalyze the scientific learning
process. - George E.
On Wed, 2004-12-22 at 11:38 +1300, Patrick Connolly wrote:
Some years ago when I used S-PLUS, I seem to remember, there was a
discussion about a simple method of removing trailing spaces from
vector elements. I'd be fairly sure the same would work in R, but I
can't find any mention of
On Tue, 2004-12-21 at 16:34 -0400, Kjetil Brinchmann Halvorsen wrote:
Patrick Burns wrote:
I'm in the process of researching problems with Excel. The references
given by Tim and Marc seem to lead to discussions of most of the problems
with statistical procedures in Excel. The executive
I generally use sub like so sub( *$,,vector)
x - c(this one ,and that one ,plus this)
sub( *$,,x)
[1] this one and that one plus this
Tom
Patrick Connolly wrote:
Some years ago when I used S-PLUS, I seem to remember, there was a
discussion about a simple method of removing trailing spaces
On Tue, 21-Dec-2004 at 05:19PM -0600, Marc Schwartz wrote:
| On Wed, 2004-12-22 at 11:38 +1300, Patrick Connolly wrote:
| Some years ago when I used S-PLUS, I seem to remember, there was a
| discussion about a simple method of removing trailing spaces from
| vector elements. I'd be fairly
Patrick Connolly [EMAIL PROTECTED] writes:
Some years ago when I used S-PLUS, I seem to remember, there was a
discussion about a simple method of removing trailing spaces from
vector elements. I'd be fairly sure the same would work in R, but I
can't find any mention of anything like it in
On Tue, 21 Dec 2004 23:29:11 +0100, Andreas [EMAIL PROTECTED]
wrote:
Hello,
if I try to tune my svm with the code:
Tune - tune.svm(Data.Train, Class.Train, type=C-classification,
kernel=radial, gamma = 2^(-1:1), cost = 2^(2:4))
i get a windows Messagebox with a error in the application
What you've shown us looks inconsistent: The data frame you show has
variables X1 through X5 and `class'. If this is a data frame named `data',
why do you call tree() with the formula V1 ~ X1? Where is V1?
`data' is the name of a built-in R function. Try using some other name for
the data
Hi,
I am trying to convert the SPSS data that I imported using the package foreign
into a matrix form in R. I tried using write.table() and cbind() but the output
still looks bizzarre. I have about 104 columns and 21143 rows. Is the size of
the the data causing a problem?
Here was my approach
I am new to R. I'm using the function GAM and wanted to get standard errors
and p-values for the parametric terms (I fitted a semi-parametric models).
Using the function anova() on the object from GAM, I only get p-values for
the nonparametric terms.
Does anyone know if and how to get
You probably want something like this:
library(foreign)
mydata - read.spss(c:\\myfolder\\mydata.sav, to.data.frame=TRUE)
- Original Message -
From: UW Email (yunt) [EMAIL PROTECTED]
Date: Tuesday, December 21, 2004 8:17 pm
Subject: [R] how do I get my data in matrix form?
Hi,
I am
I am analyzing particulate matter data (PM10) on a small data set (147
observations). I fitted a semi-parametric model and am worried about
overfitting. How can one check for model fit in GAM?
Jean G. Orelien
__
[EMAIL PROTECTED] mailing list
On Tue, 21 Dec 2004 17:17:54 -0800 UW Email \(yunt\) wrote:
Hi,
I am trying to convert the SPSS data that I imported using the package
foreign into a matrix form in R. I tried using write.table() and
cbind() but the output still looks bizzarre. I have about 104 columns
and 21143 rows. Is the
Jean G. Orelien wrote:
I am analyzing particulate matter data (PM10) on a small data set (147
observations). I fitted a semi-parametric model and am worried about
overfitting. How can one check for model fit in GAM?
Jean G. Orelien
It's good to separate 'model fit' (or lack of fit) from
Thank you, Dr. Meyer. I updated the e1071 package but still can't find
the other three arguments for plot.svm. In addition, I can plot a
gray-colored contour region by adding the argument col = c(gray(0.2),
gray(0.8)). But I failed to change those colored x or o points
into the shapes I want.
I would like to request help for coding the lme for the following:
Soils from 14 Regions (fixed) were sampled every Year (fixed) during three
years. Each Year each Region was sampled at several Points (random), and two
Cores (random) were taken at each Point. Each Core was split into five
Depths
Answering on a mail from
From Keith Wong keithw_at_med.usyd.edu.au
Date Sun 04 Jul 2004 - 17:21:36 EST
Subject [R] Random intercept model with time-dependent
covariates, results different from SAS
Hi all
I've got a question about the degrees of freedom in a mixed model,
57 matches
Mail list logo