On 7/13/07, gallon li [EMAIL PROTECTED] wrote:
when producing boxplot from bwplot, I have five groups: Nitrogen, Duration,
Pressure, A, Z. I wish the graphical display is according to the original
order. But the R-function bwplot seems to automatically adjust the groups
according to the
If I do not add ress into the data frame res, there is no quote in the
data frame. However, I add ress, all column were found the quote.
How to remove it?
If you can delete the quote in the file ress, that is better.
Thanks.
ress[1:10]
[1] ABHO.ABNE ABHO.ACBA ABHO.ACGI ABHO.ACKO ABHO.ACMA
Beware: you are not working with data.frames but with a vector and a
matrice.
(see ?cbind)
Solution: convert 'res' to data.frame.
Christophe
On 7/14/07, Zhang Jian [EMAIL PROTECTED] wrote:
If I do not add ress into the data frame res, there is no quote in the
data frame. However, I add ress,
how do you create a matrix from an excel file read into R by the command
read.delim?
[[alternative HTML version deleted]]
__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide
RV == Ravi Varadhan [EMAIL PROTECTED]
on Fri, 13 Jul 2007 10:52:36 -0400 writes:
RV Martin, I sent you the Matlab code for this which I had
RV obtained from Nich Higham.
RV Cheng, Sheung Hun and Higham, Nick (1998) A Modified
RV Cholesky Algorithm Based on a Symmetric
John Kane wrote:
Thanks for your time.
Please find a small example below - the real data is MUCH bigger.
If you look at rows 5 and 6 of this and calculate the mass precision window
I have to deal with (5 ppm), you'll find the following:
Row Lower 5ppm MassHigher 5ppm
This is from a private question which I'm given permission to
answer in public:
IF == Ingo Feinerer [EMAIL PROTECTED]
on Fri, 13 Jul 2007 16:14:07 +0200 writes:
IF Hello, We tried to derive a class from Matrix but had
IF some problems. Maybe you can help us:
library(Matrix)
TS == Tavpritesh Sethi [EMAIL PROTECTED]
on Sat, 14 Jul 2007 12:59:03 +0530 writes:
TS how do you create a matrix from an excel file read into
TS R by the command read.delim?
data.matrix(.) {is typical a bit more useful than
as.matrix(.) }
--- David C. James [EMAIL PROTECTED] wrote:
I feel like I'm not firing at all cylinders with the
R language,
despite reading over the R Language Definition.
Has anyone seen something like an R for Rubyists
guide (i.e.
teaching the R language for those who are more
familar with
[EMAIL PROTECTED] wrote:
Hello, Chuck,
Thank you very much for your help! But the contrasts I want to do
simutaneously is
contrasts(B)
[,1] [,2] [,3] [,4]
b1 -4 -3 -2 -1
b21 -3 -2 -1
b312 -2 -1
b4123 -1
b51234
Could
On Fri, 13 Jul 2007, [EMAIL PROTECTED] wrote:
Hi:
We're trying to install the Hmisc package on a Solaris 9 machine.
But Solaris 9 does not come with a compiler called 'g95', as far as I
know. So what is this?
The underlying problem is that Hmisc is not written in standard Fortran.
DO ...
Hi Sir
I am very new user of R for the research project on multilevel logistic
regression.
There is confusion about bugs() function in R and BUGS software. Is there any
relation between these two? Is there any comprehensive package for Multilevel
Logistic modelling in R?
Please
Dear WizaRds,
After consulting different sources I am still unable to understand the
correct use of return() in nested functions. To illustrate the problem:
f - function(x,y,type){
est1-function(x,y){
z=x+y
out(x,y,z)}
est2-function(x,y){
z=x*y
On 14/07/2007 7:16 AM, Mark Hempelmann wrote:
Dear WizaRds,
After consulting different sources I am still unable to understand the
correct use of return() in nested functions. To illustrate the problem:
return() knows nothing about nested functions. It just returns from the
current
Hi,
I would love an easy way to extract elements from a list.
For example, if I want the first element from each of 10 arrays stored
in a list,
Lst[[1:10]][1,1] seems like a logical approach, but gives this error:
Error: recursive indexing failed at level 3
The following workaround is
Try
sapply( Lst, function(m) m[1,1] )
Also note that to subset a list, you just need Lst[ 1:10 ] and not
Lst[[ 1:10 ]] (note the double square brackets).
Regards, Adai
Forest Floor wrote:
Hi,
I would love an easy way to extract elements from a list.
For example, if I want the first
You can achieve this by cbind.data.frame()
Christophe Pallier wrote:
Beware: you are not working with data.frames but with a vector and a
matrice.
(see ?cbind)
Solution: convert 'res' to data.frame.
Christophe
On 7/14/07, Zhang Jian [EMAIL PROTECTED] wrote:
If I do not add ress into
Use lapply or sapply:
L - list(a = 1:4, b = 11:15)
lapply(L, [[, 1)
$a
[1] 1
$b
[1] 11
sapply(L, [[, 1)
a b
1 11
Also please see last line on every r-help message regarding providing
reproducible code. Lst was not defined in your post.
On 7/14/07, Forest Floor [EMAIL PROTECTED] wrote:
Chris:
In my installation, the new packages automatically get installed to the
c:\myRlib directory.
Raghu
Message: 63
Date: Fri, 13 Jul 2007 15:44:48 -0500
From: Christopher W. Ryan [EMAIL PROTECTED]
Subject: Re: [R] THANK YOU: Updating R version
To: r-help@stat.math.ethz.ch
Message-ID:
The golden rule is that [[ ]] only returns one element:
sapply(Lst, [, 1, 1)
is probably what you want.
On Sat, 14 Jul 2007, 'Forest Floor' aka 'rhago' aka 'Jeff' aka 'R User
confused about his identity' wrote:
Hi,
I would love an easy way to extract elements from a list.
For example, if
Note that the batchfiles distribution on CRAN has two batch
programs:
copydir.bat
movedir.bat
that simplify the copying portion of the procedure you
discuss below. They can copy or move (copying
preserves the old directory but moving is much faster)
each package but will not overwrite existing
Ali raza wrote:
Hi Sir
I am very new user of R for the research project on multilevel
logistic regression. There is confusion about bugs() function in R
Do you mean bugs() from package R2WinBUGS?
Yes, it is related to the software WinBUGS 1.4.x (and OpenBUGS 2.x with
package BRugs).
Uwe
On 7/14/07, Pete Kazmier [EMAIL PROTECTED] wrote:
Could someone show me how to get a blue line in this plot?
ggplot(movies, aes(x=rating)) + stat_qq(geom=line,
quantiles=seq(0,1,0.005), distribution=qunif)
It's a bug in ggplot, sorry. It will be fixed in the next version.
Hadley
Everyone using R in Windows should look at these batch files. Some of
them are pure genius and will speed the process. Thanks
John
On 14/07/07, Gabor Grothendieck [EMAIL PROTECTED] wrote:
Note that the batchfiles distribution on CRAN has two batch
programs:
copydir.bat
movedir.bat
that
Hi,
My computer has 2GB of ram and I also request 2GB of virtual ram from c
drive, therefore totally I have 4GB of ram. Before I open R workshop, I
also add C:\Program Files\R\R-2.5.0\bin\Rgui.exe
--max-mem-size=3000Mb--max-vsize=3000Mb into the target of R by right
clicking the R
I want to load many files in the R. The names of the files are Sim1.txt,
Sim2.txt, Sim3.txt, Sim4.txt, Sim5.txt and so on.
Can I read them at one time? What should I do? I can give the same names in
R.
Thanks.
For example:
tst=paste(Sim,1:20,.txt,sep=) # the file names
tst
[1] Sim1.txt
Regarding your earlier statement,
I tend to think in very data centric approach, where you first generate the
data (in a data frame) and then you plot it. There is very little data
creation/modification during the plotting itself...
Is the data generation and plotting truly separate and
On 14-Jul-07, at 6:16 PM, Zhang Jian wrote:
I want to load many files in the R. The names of the files are
Sim1.txt,
Sim2.txt, Sim3.txt, Sim4.txt, Sim5.txt and so on.
Can I read them at one time? What should I do? I can give the same
names in
R.
Thanks.
For example:
Dear list (but probably mostly Hadley):
In ggplot, operations to modify 'guides' are accessed through grid
objects, but I did not find mention of creating new guides or possibly
removing them altogether using ggplot functions. I wonder if this is
something I need to learn grid to learn more about
This should do it:
allData - sapply(paste(Sim,1:20,sep=),
function(.x) read.table(paste(.x,txt,sep=.)),
simplify=FALSE)
see ?read.table for specification of delimiters, etc.
allData will be a list, and you can access the contents of each file by
any of the
I wonder what kind of objects? Are there large advantages for allowing
lattice functions to operate on objects other than data frames - I
couldn't find any screenshots of flowViz but I imagine those objects
would probably be list of arrays and such? I tend to think of mapply()
[and more recently
This is very interesting - but I'm not entirely clear on your last statement
though about how existing functions can cause problems with the scoping that
createWrapper() avoids... (but thanks for the tip).
--- Gabor Grothendieck [EMAIL PROTECTED] wrote:
Your approach of using closures is
Hi everyone,
Now I read the posting guidelines again; COMPLETELY! ;-)
I use Windows XP Professional, R 2.5.1 and I have Blat to send eMails out of
R. Works perfect! Thank you for your help!
Now I want to send an SMS out of R! Any idea how it could work? Could I send
an eMail to a
Hello,
I am struggling to remove the effect of distance in the similarities of species
composition between sites with the similarities of temperature between sites.
Example: i have 4 columns (a column : sites name, b: species similarities
between the two sites, c: environmental similarities
On 14 July 2007 at 21:37, Thomas Schwander wrote:
| I use Windows XP Professional, R 2.5.1 and I have Blat to send eMails out of
| R. Works perfect! Thank you for your help!
|
|
|
| Now I want to send an SMS out of R! Any idea how it could work? Could I send
| an eMail to a mobile phone
On 7/14/07, Stephen Tucker [EMAIL PROTECTED] wrote:
I wonder what kind of objects? Are there large advantages for allowing
lattice functions to operate on objects other than data frames - I
couldn't find any screenshots of flowViz but I imagine those objects
would probably be list of arrays
Suppose ri were already defined as in the example below.
Then panel.qrect is a bit harder to define although with
work its possible as shown below:
rectInfo -
list(matrix(runif(4), 2, 2),
matrix(runif(4), 2, 2),
matrix(runif(4), 2, 2))
ri - function(x, y, ..., rect.info) {
This will determine where the overlaps are and delete them. You can
add some more code to determine which ones you want to delete.
# add the 5ppm to the dataframe
x$lower - x$Mass * (1 - 5e-6)
x$upper - x$Mass * (1 + 5e-6)
# create a matrix for determining overlap by adding 1 at the lower
38 matches
Mail list logo