Dear useRs,
=
Search for your R routines directly from Firefox!
http://addictedtor.free.fr/rsitesearch
=
Mango Solutions, providers of R and S-Plus consulting, application
development and training,
Hi
try to do it without loop
lapply(m,function(x) x[x2])
HTH
Petr
On 25 Aug 2006 at 13:52, xpRt.wannabe wrote:
Date sent: Fri, 25 Aug 2006 13:52:51 -0500
From: xpRt.wannabe [EMAIL PROTECTED]
To: r-help@stat.math.ethz.ch
Subject:
Dear all,
neato makes layouts according to a physical model in which the length of
the edges is determined by springs. The weight of the edge is the
strength of the spring. However, I was not able to find any influence of
edge weight on the layout. In the
Hello!
I am running R-2.3.1-i386-1 on Slackware Linux 10.2. I am a former matlab user,
moving to R. In matlab, via the cftool, I performed nonlinear curve fitting
using the method nonlinear least squares with the Trust-Region algorithm
and not using robust fitting. Is it possible to perform
It's excellent. Good work.
Robert
__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained,
Dear all,
I have dataset
x - list(matrix(1:20, 5, 4),matrix(1:20, 5, 4),matrix(1:20, 5, 4))
y - list(matrix(110:114, 5, 1),matrix(110:114, 5, 1),matrix(110:114, 5, 1))
I need merge x and y as list (y put in last column).
The result is something like
[[1]]
[,1] [,2] [,3] [,4] [,5]
[1,]
Here are two ways:
1. use indexes:
lapply(seq(along = x), function(i) cbind(x[[i]], y[[i]]))
2. use mapply:
mapply(cbind, x, y, SIMPLIFY = FALSE)
On 8/28/06, Muhammad Subianto [EMAIL PROTECTED] wrote:
Dear all,
I have dataset
x - list(matrix(1:20, 5, 4),matrix(1:20, 5, 4),matrix(1:20, 5,
Greetings, R-Citizens:
I have the good fortune of working with a 19 1280 X 1024 pixel monitor. My
R-code produces nice-looking graphics on this machine but the same code
results in crowded plots on an older machine with 800 X 600 resolution. In
hindsight this seems obvious, but I didn't
how about producing pdf output- should be the same on every PC...
Charles Annis, P.E. schrieb:
Greetings, R-Citizens:
I have the good fortune of working with a 19 1280 X 1024 pixel monitor. My
R-code produces nice-looking graphics on this machine but the same code
results in crowded plots
I am no longer using this email address as it is overwhelmed by unwanted SPAM
therefore, please manually resend your message to e n g l i s b e r g [at] g m
a i l [dot] com
__
R-help@stat.math.ethz.ch mailing list
Dear all R users,
Is there any effective way to change the body color of any plot? I am aware
of the function par(bg=black), but the problem with this is, it change the
color of entire graphics window. But I want to see that only plot area will
have color for example RED and rest of the area
Try:
x - 1:10 # test data
plot(x ~ x, type = n)
u - par(usr)
rect(u[1], u[3], u[2], u[4], col = grey, border = red)
points(x ~ x)
On 8/28/06, Arun Kumar Saha [EMAIL PROTECTED] wrote:
Dear all R users,
Is there any effective way to change the body color of any plot? I am aware
of the function
I'm using R 2.3.1 on WinXPsp2, 32 bit
What I want to do is to write a signed short integer (16 bit) (actually, a
sequence of them) into a binary file.
I'm trying with writeBin, but the what clause is not supported, and an
integer is 4 bytes long, nor it seems to exist something like as.int
I've solved my problem using:
(purpose: write the signed integer -19 as a two byte integer into a binary file)
writeBin(as.integer(-19),myconnection, size=2)
There is no need to coerce.
Thanks anyway!
Luca NanettiUniversity Medical Center Groningen
BCN-NeuroImagingCenter
A.Deusinglaan 2 9713AW
You forgot to mention your OS. This was asked before and if I recall
correctly the answer for Windows was no. An acceptable solution (imho)
is to edit the Rprofile.site files and add something like
pngplotwidth - 990 ; pngplotheight - 700
pdfplotwidth - 14 ; pdfplotheight - 10
Then, use these
Hi Franz,
This might be better directed to the bioconductor mail list.
Franz Quehenberger [EMAIL PROTECTED] writes:
Dear all,
neato makes layouts according to a physical model in which the length
of the edges is determined by springs. The weight of the edge is the
strength of the spring.
On Mon, 28 Aug 2006, Charles Annis, P.E. wrote:
Greetings, R-Citizens:
I have the good fortune of working with a 19 1280 X 1024 pixel monitor. My
(Similar to our student lab has used for many years.)
R-code produces nice-looking graphics on this machine but the same code
results in
My apologies for my oversight. I am using WindowsXP. The code that
produces a nice-looking jpg (when viewed on my screen) produces cramped
graphics on a 800 X 600 screen. I can change the spacings on the plot and
remedy the situation for 800 X 600, but that looks awkward at 1280 X 1024.
Thanks
Dear R Users;
I have been using the space-time K-function analysis to detect the existence
of clustering in both space and time. I wish to ask and know what the
minimum number of cases should be for such analyses to be valid. I have
data with 23 cases and don't know how careful i should be in
Hello,
I am searching for code in C++ or fortran for Modified Bessel function of
third kind (fractional or real order). Can someone help me?
Thank you
-
Découvrez un nouveau moyen de poser toutes vos questions quelque soit le
1. Put the code from
www.microsoft.com/technet/scriptcenter/resources/qanda/jul05/hey0721.mspx
into, say, \bin\displayconfiguration.vbs, and then from R do this:
as.numeric(gsub(.* , , grep(resolution,
shell('cscript \\bin\\displayconfiguration.vbs', intern = TRUE),
value = TRUE)))
or we
Hello everybody,
I've got a matrix called EUROPEDATA and I want to calculate the adf test
statistic (part of the tseries package) on a rolling basis for window my.win on
each column; i.e. each column of EUROPEDATA represents a particular variable;
for the first column I calculate the adf
Put your time series into a ts or zoo object. Now using
EuStockMarkets which is builtin data set in R. (You might
want to use align = right in rollapply.)
library(tseries)
library(zoo)
eu91 - window(EuStockMarkets, end = 1992) # use portion for test data
eu91.p.value - rollapply(eu91, 61,
Yousra Gati a écrit :
Hello,
I am searching for code in C++ or fortran for Modified Bessel function of
third kind (fractional or real order). Can someone help me?
Thank you
http://library.lanl.gov/numerical/index.html
http://library.lanl.gov/numerical/bookcpdf.html
see section 6 special
Hello wizards, I need to convert the following functions (prestd,
poststd, prepca) of matlab to R. Does Somebody knows how to do it. A
description of the functions is:
prestd preprocesses the network training set by normalizing the inputs
and targets so that they have means of zero and standard
mel [EMAIL PROTECTED] writes:
Yousra Gati a écrit :
Hello,
I am searching for code in C++ or fortran for Modified Bessel function of
third kind (fractional or real order). Can someone help me?
Thank you
http://library.lanl.gov/numerical/index.html
Dear all,
I am still working with list.
If I have an empty list how can I remove from list data.
Here is a toy example:
x - list(matrix(1:20, 5, 4),matrix(1:20, 5, 4),matrix(1:20, 5,
4),matrix(1:20, 5, 4),matrix(1:20, 5, 4))
y - list(c(1, -1, -1, 1, 1),c(1, 1, -1, -1, -1),c(1, 1, 1, 1, 1),c(1,
1,
Here is a function I use a lot to do this:
delete.NULLs - function(x.list){ # delele null/empty entries in a list
x.list[unlist(lapply(x.list, length) != 0)]
}
delete.NULLs(nc.test)
[[1]]
[,1] [,2] [,3] [,4] [,5]
[1,]16 11 161
[2,]49 14 191
[3,]
See this post from the weekend:
http://www.nabble.com/Re%3A-How-to-iteratively-extract-elements-out-of-a-list-p6002980.html
On 8/28/06, Muhammad Subianto [EMAIL PROTECTED] wrote:
Dear all,
I am still working with list.
If I have an empty list how can I remove from list data.
Here is a toy
Hi, apologies if this is too simple but I've been stuck on the following for
a while:
I have a vector of strings: filenames with a name before the extension and a
variety of possible extensions
I want to select only those files with:
1) a .tab extension
AND
2) the character sequence
On this day 28/08/2006 19:20, Muhammad Subianto wrote:
Dear all,
I am still working with list.
If I have an empty list how can I remove from list data.
Here is a toy example:
x - list(matrix(1:20, 5, 4),matrix(1:20, 5, 4),matrix(1:20, 5,
4),matrix(1:20, 5, 4),matrix(1:20, 5, 4))
y -
I think this does the trick. Note that it is case sensitive.
x - c(lad.tab, xxladyy.tab, xxyy.tab, lad.tabx, LAD.tab,
lad.TAB)
grep(lad.*\\.tab$, x, value=T)
[1] lad.tab xxladyy.tab
Jon Minton wrote:
Hi, apologies if this is too simple but I've been stuck on the following for
a
Gabor:
I am afraid I am demonstrating my lack of computer savvy.
As you instructed, I downloaded the code, saved it as the file you
suggested, and executed this within R
as.numeric(gsub(.* , , grep(resolution,
shell('cscript \\bin\\displayconfiguration.vbs', intern = TRUE),
value = TRUE)))
You might want to try 'glob2rx()', as in
grep(glob2rx(*.tab), x)
where 'x' is a vector of strings.
-roger
Jon Minton wrote:
Hi, apologies if this is too simple but I've been stuck on the following for
a while:
I have a vector of strings: filenames with a name before the extension and
This is what happens when I run it in R 2.3.1:
as.numeric(gsub(.* , , grep(resolution,
+ shell('cscript \\bin\\displayconfiguration.vbs', intern = TRUE),
+ value = TRUE)))
[1] 1280 1024
The result is obviously dependent on your particular video
card (I have a radeon). Try running it from
Sorry, that still woudl not be good enough. Try this:
as.numeric(sub(^[^:]*:, , grep(resolution,
shell('cscript \\bin\\displayconfiguration.vbs', intern = TRUE),
value = TRUE)))
On 8/28/06, Gabor Grothendieck [EMAIL PROTECTED] wrote:
One other idea. Replace gsub with sub and see if that
One other idea. Replace gsub with sub and see if that helps.
Maybe the output from the video driver has spaces in it.
On 8/28/06, Gabor Grothendieck [EMAIL PROTECTED] wrote:
This is what happens when I run it in R 2.3.1:
as.numeric(gsub(.* , , grep(resolution,
+ shell('cscript
This is what happened here:
ls()
character(0)
as.numeric(gsub(.* , , grep(resolution,
+ shell('cscript \\bin\\displayconfiguration.vbs', intern = TRUE), value =
TRUE)))
numeric(0)
ls()
character(0)
Nothing displayed; nothing created. But the DOS window DID open and
something happened,
Using sub rather than gsub appears to have no effect. The DOS window opens,
then closes having had no noticeable effect.
Charles Annis, P.E.
[EMAIL PROTECTED]
phone: 561-352-9699
eFax: 614-455-3265
http://www.StatisticalEngineering.com
-Original Message-
From: Gabor Grothendieck
Prof Brian Ripley a écrit :
On Mon, 28 Aug 2006, Charles Annis, P.E. wrote:
Greetings, R-Citizens:
I have the good fortune of working with a 19 1280 X 1024 pixel monitor. My
(Similar to our student lab has used for many years.)
R-code produces nice-looking graphics on this
Gabor:
Success! (Sort of) Running outside R in the DOS window produces
C:\Program Files\R\R-2.3.1\bincscript displayconfiguration.vbs
Microsoft (R) Windows Script Host Version 5.6
Copyright (C) Microsoft Corporation 1996-2001. All rights reserved.
Name: NVIDIA GeForce FX 5200
Color depth: 32
The problem then was likely just with my regexp. The last revision
that I posted should hopefully work on your machine (all of them
worked on mine).
On 8/28/06, Charles Annis, P.E.
[EMAIL PROTECTED] wrote:
Gabor:
Success! (Sort of) Running outside R in the DOS window produces
C:\Program
Romain:
a - tempfile()
cat('htmlscript type=text/javascript document.write(screen.width) ;
/script/html', file=a)
browseURL(a)
The object a was created, but no browser opened.
ls()
[1] a
a
[1] C:\\DOCUME~1\\CHARLE~1\\LOCALS~1\\Temp\\RtmpRgWrqb\\file678418be
Charles Annis, P.E.
I think there are problems with browseURL on Windows XP with IE.
Put the file in screen.htm and then run:
shell.exec(screen.htm)
it will come up -- it will block it and you will have to click to
unblock it; however,
that will interfere with any automatic procedure.
On 8/28/06, Charles Annis,
Hi there,
I'm new to R and despite searching today, I can't
find a function which will compute the adjoint of
a matrix A. Does this adjoint function exist in R?
Thanks in advance!
__
R-help@stat.math.ethz.ch mailing list
Hello,
First of all, I would like to thank everybody who answered my
question. Every post has added something to my knowledge of the topic.
I now know why Type III SS are so questionable.
As I understood form R FAQ, there is disagreement among Statisticians
which SS to use
Jessica M. Maia [EMAIL PROTECTED] writes:
Hi there,
I'm new to R and despite searching today, I can't
find a function which will compute the adjoint of
a matrix A. Does this adjoint function exist in R?
I don't think so, but the adjoint matrix is also known as the
conjugate transpose and
Thank you for your responses.
Prof Ripley's code only worked for a vector with 2 variables but I need
the code to work for a vector of any size. To solve this I created a for
loop. I'm not sure this is the most efficient way of doing it but it works.
x1 - c(1,0,0,1)
x2 - c(0,0,1,1)
x3 -
Thanks; this will have to do until a data-independent solution is
implemented. I tried things like
seq(min(x),max(x),by='1 month')
but I always forget how to make 'x' visible inside a call to xyplot.
Ben
On Fri, 2006-08-25 at 17:02 -0400, jim holtman wrote:
Try this:
Sorry but I wasn't very clear in my previous message.
I want to compute the adjoint of a real matrix A,
which is the transpose of the cofactor matrix of A.
There is an example here: http://www.mathwords.com/a/adjoint.htm
Does R have a function which will compute the cofactor of
matrix A or the
I am stuck on a simple problem where an example works
fine but the real one does not.
I have a data.frame where I wish to sum up some values
across the rows and create a new data.frame with some
of old data.frame variables and the new summed
variable.
It works fine in my simple example but I am
On Mon, 28 Aug 2006, Maria Montez wrote:
Thank you for your responses.
Prof Ripley's code only worked for a vector with 2 variables but I need the
True for my second version (as stated).
If you want elementwise sums (which is news to me), use
rowSums(do.call(cbind, lapply(x, get)))
or
On Mon, 28 Aug 2006, Jessica M. Maia wrote:
Sorry but I wasn't very clear in my previous message.
I want to compute the adjoint of a real matrix A,
which is the transpose of the cofactor matrix of A.
There is an example here: http://www.mathwords.com/a/adjoint.htm
Does R have a function
Try:
RSiteSearch(cofactor)
On 8/28/06, Jessica M. Maia [EMAIL PROTECTED] wrote:
Sorry but I wasn't very clear in my previous message.
I want to compute the adjoint of a real matrix A,
which is the transpose of the cofactor matrix of A.
There is an example here:
The error message says that md1 and other have different
number of rows. Please read the last line of every message
to r-help.
On 8/28/06, John Kane [EMAIL PROTECTED] wrote:
I am stuck on a simple problem where an example works
fine but the real one does not.
I have a data.frame where I
Hi,
any good trick to get the column names for title() aside from running lapply
on the column indexes?
Thanks
Nick.
apply(X[,numCols],2,function(x){
nunqs - length(unique(x))
nnans - sum(is.na(x))
info - paste(uniques:,nunqs,(,nunqs/n,),NAs:,nnans,(,nnans/n,))
Maybe I'm missing something, but your Real life code looks like it
should work. What happens when you do:
ire1 - data.frame(md1[, 1:11], other)
Error in data.frame(md1[, 1:11], other) : arguments
imply differing number of rows: 11, 75
str(md1[, 1:11])
str(other)
?
Maybe the labelled
Nick Desilsky wrote:
Hi,
any good trick to get the column names for title() aside from running
lapply on the column indexes?
Thanks
Nick.
apply(X[,numCols],2,function(x){
nunqs - length(unique(x))
nnans - sum(is.na(x))
info -
This can be done using a similar style but without a loop by
using sapply over the indexes rather than over the columns:
sapply(1:ncol(X), f)
f - function(i) {...whatever...}
...whatever... can now refer to colnames(X)[i] and X[,i]
On 8/28/06, Sundar Dorai-Raj [EMAIL PROTECTED] wrote:
Nick
Dear Amasco,
Again, I'll answer briefly (since the written source that I previously
mentioned has an extensive discussion):
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Amasco
Miralisus
Sent: Monday, August 28, 2006 2:21 PM
To:
--- Gabor Grothendieck [EMAIL PROTECTED]
wrote:
The error message says that md1 and other have
different
number of rows. Please read the last line of every
message
to r-help.
My appologies, I forgot to include that infomation.
As far as I can tell 'md1' is a data.frame of
dimensions (
--- Tony Plate [EMAIL PROTECTED] wrote:
Maybe I'm missing something, but your Real life
code looks like it
should work. What happens when you do:
ire1 - data.frame(md1[, 1:11], other)
Error in data.frame(md1[, 1:11], other) : arguments
imply differing number of rows: 11, 75
Hello all and thank you,
I will try to make this as clear as I can. I have a matrix, at the
top of the matrix are 4 time points, the first col describes the sample,
then under each time point I have the intensity values of that sample.
So :
Samples 0 10 30 120 - time
A
Hello all and thank you,
I will try to make this as clear as I can. I have a matrix, at the
top of the matrix are 4 time points, the first col describes the sample,
then under each time point I have the intensity values of that sample.
So :
Samples 0 10 30 120 - time
A
Hello all and thank you,
I will try to make this as clear as I can. I have a matrix, at the
top of the matrix are 4 time points, the first col describes the sample,
then under each time point I have the intensity values of that sample.
So :
Samples 0 10 30 120 - time
A
Hello all and thank you,
I will try to make this as clear as I can. I have a matrix, at the
top of the matrix are 4 time points, the first col describes the sample,
then under each time point I have the intensity values of that sample.
So :
Samples 0 10 30 120 - time
A
Hello all and thank you,
I will try to make this as clear as I can. I have a matrix, at the
top of the matrix are 4 time points, the first col describes the sample,
then under each time point I have the intensity values of that sample.
So :
Samples 0 10 30 120 - time
A
Sometimes the term adjoint matrix refers to the matrix of cofactors,
that is, the matrix of signed determinants of n-1 x n-1 dimensional
submatrices. This is just the inverse multiplied by the determinant. As
with both the inverse and determinant, if this is part of a larger
computation there
Hello all and thank you,
I will try to make this as clear as I can. I have a matrix, at the
top of the matrix are 4 time points, the first col describes the sample,
then under each time point I have the intensity values of that sample.
So :
Samples 0 10 30 120 - time
A
Hello all and thank you,
I will try to make this as clear as I can. I have a matrix, at the
top of the matrix are 4 time points, the first col describes the sample,
then under each time point I have the intensity values of that sample.
So :
Samples 0 10 30 120 - time
A
If users post a bug or problem issue to an R-based news group
(R-devel, R-help, BioC - though BioC is far more forgiving)
they get yelled at for not reading the posting guide
and FAQ.
Please *_do_* read the FAQ, the posting guide, ...
the yellers do say. So I read the BioC FAQ and it says...
Dear Paul:
1. The Internet moves NOT at the speed of light but at the speed
of store and forward.
2. Have you worked the examples with the matplot help page?
3. Have you worked through the 'zoo' vignette ? (If no, please
see
Opps thanks sorry,
So I was just using
plot(data) # where data was the matrix
I would like it if the plots had time along the bottom and intensity up the
y axis. Intensity is just a value, if you want intensity is the number of
molecules hitting the detector per millisecond
pb
-Original
Thanks for all the replies!
__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible
Hi,
I guess the question often comes down to whether it is a bug report,
or a question. If you know it is a bug, and have a complete and correct
example where the obviously incorrect behavior occurs and you are
positive that the problem is the package then sending it to the
maintainer is
Hi all,
I am relatively new to R, so let me know if I missed something trivial.
I want to perform path-analysis with at least three levels of explaining
variables (i.e., A affects B that affects C). I perform multiple
regression for each set of variables, and get estimates for the partial
Will do!
So thanks to everyone who wrote me, I'm going to go away have a look at some
of the links that you all have given me and hopefully will be able to solve
it. As you can all probably guess I'm new to the whole R thing.
Cheers,
Paul
Research Technician
Mass Spectrometry
o The
/
o
I am merely trying to increase the line thickness, or line width, of the box
drawn around the legend in a plot I am constructing. The help page on
'legend' was of no use. Does anyone have an idea on how to do this? Please
respond to [EMAIL PROTECTED] Thanks!
Dear R-experts,
I have a table with following collumns: State, SamplePlot, Species and
BodySize. I sampled bird species at 34 SamplePlots and 5 States (regions)
monthly during two years. On each bird record I measured bodysize and
identified the species. So I have many records of each
If by 2.8 you mean 10.2.8, that's a very old OS X.
To use a current version of R on OS X, you need a current version of OS X.
Version information is given pretty clearly on CRAN, so make sure you
have downloaded a suitable version -- if there is one for 10.2.8.
Even if there is, you would be
Dear R-users,
I try to use solve to get the solution of this matrix.But it has error
happen below.
How I can solve this problem.
[1] a
[,1]
[1,] 0.8109437
[2,] 5.7569740
[1] b
[,1] [,2]
[1,] 0.3141293 2.230037
[2,] 2.2300367 15.831264
Error in solve.default(b, a) :
Dear R-friends,
Unfortunately the tables that I past on last email gone with bad visual
structure. So I send it again. Sorry to do this so confuse.
Miltinho
Table1 - Bird records
State,SampleSite,Species,Bodysize
SaoPaulo,Site1,Spp01,4.39
SaoPaulo,Site1,Spp04,4.05
On Mon, 2006-08-28 at 17:55 -0700, Phil Turk wrote:
I am merely trying to increase the line thickness, or line width, of the box
drawn around the legend in a plot I am constructing. The help page on
'legend' was of no use. Does anyone have an idea on how to do this? Please
respond to
Nongluck Klibbua reports:
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Nongluck
Klibbua
Sent: Tuesday, 29 August 2006 11:12 AM
To: R-help@stat.math.ethz.ch
Subject: [R] singular matrix
Dear R-users,
I try to use solve to get the solution
b is nearly singular. Note that one of its eigenvalues is -2.935e-8
which is close to zero. We can use the generalized inverse from
MASS to get one solution, x, but any multiple of the eigenvector
corresponding to the near-zero eigenvalue when added to that
will also give a solution as shown:
Romain Francois wrote on 08/28/2006 04:23 PM:
=
Search for your R routines directly from Firefox!
http://addictedtor.free.fr/rsitesearch
=
When I try to search I get the Firefox error
86 matches
Mail list logo