Hi everyone,
I want to modify two base R functions 'parse' and 'deparse'
immediately after R has started, so I added some code in the file
'Rprofile.site' under the 'etc' directory. Here is a simple example:
parse=function(...){
base::parse(...)
}
I'll get an error when I start R as
David,
Thanks! You just gave me the answer. All I had to do was:
xx-c()
for (i in c('100', '75', '50') )
{
x-homerange[[1]]$polygons[[i]] ; xx-rbind(x,xx)
}
xx
I didn't know you could use characters as index values in a for loop, or that
you could use characters in double brackets instead
On Oct 4, 2009, at 3:40 AM, Tim Clark wrote:
David,
Thanks! You just gave me the answer. All I had to do was:
xx-c()
for (i in c('100', '75', '50') )
{
x-homerange[[1]]$polygons[[i]] ; xx-rbind(x,xx)
}
xx
I didn't know you could use characters as index values in a for
loop, or that you
Thanks for the quick reply. However ...
David Winsemius dwinsem...@comcast.net 03-Oct-09 20:50:
MP layout(matrix(c(1,2),1))
MP plot(1:10,main=left plot)
MP plot(10:1,main=right plot)
MP lines(c(3:7,7:3),col=red)
MP
MP but of course now lines() gets added to the right plot. I
MP
MP Is there any
On Oct 4, 2009, at 1:42 AM, Daniel Malter wrote:
http://www.odesk.com/jobs/College-Assistance_~~dd7622f6bdef9177
He is one very cheeky blighter isn't he?
Why would he say he was a student in a foreign university? Does he
think it will lower the readers' concern for academic malfeasance
Hi,
Try this,
dev.new()
layout(matrix(1:4,2, by=T))
plot(1:10,main=top left plot)
plot(1:10,main=top right plot)
plot(1:10,main=bottom left plot)
plot(1:10,main=bottom right plot)
for (ii in 1:2){
for (jj in 1:2){
par(mfg=c(ii,jj))
text(5,2, lab=paste(plot #:,ii,,,jj,sep=))
}
}
par(mfg=c(1,1))
After some checking, I think the documentation is at best misleading
on this particular query. Nowhere could I find mention that par(mfg)
can work with layout. Instead, I found a warning that suggests
incompatibility (since mpg is explicitly tied to mfrow in ?par and
layout is said incompatible
baptiste auguie 04-Oct-09 10:32:
dev.new()
layout(matrix(1:4,2, by=T))
plot(1:10,main=top left plot)
plot(1:10,main=top right plot)
plot(1:10,main=bottom left plot)
plot(1:10,main=bottom right plot)
[...]
par(mfg=c(1,1))
lines(c(3:7,7:3),col=red)
Brilliant! Thanks!
baptiste auguie
It's probably called summaryStats() now.
-Peter Ehlers
Rene wrote:
Dear all,
Have you experienced problem of using numerical.summary() function? I used
to be able to run this function in R, but not any more. Now I try to use
this function, it gives me error like this:
Error: could
On Thu, Sep 24, 2009 at 2:14 PM, Martin Lepage
martin.d.lep...@gmail.com wrote:
The problem I am facing is that I do not know how to generically access
the conditioning variables within the panel function. In this simple
case, I can achieve what I want to do with the following call :
Hi all! Below is the problem I am struggling with.
Let’s say I have a matrix (x) of values:
# [,1] [,2] [,3] [,4]
#[1,] 1 3 2 1
#[2,] 2 1 3 2
I need to copy the items into a new matrix (y) with certain
probability guidelines. I need to set it up such that:
1. for
dahuang wrote:
i wanna get x from the equations: Ax=x, given A is a matrix. How can i
apply it in R? thanks
?solve
--
View this message in context:
http://www.nabble.com/help-about-solving-the-equations-tp25738073p25738401.html
Sent from the R help mailing list archive at Nabble.com.
On Mon, Sep 28, 2009 at 9:08 AM, Antje antje.niederl...@yahoo.de wrote:
I had a bit success with the following usage:
my.padding - list(layout.heights = list(
top.padding = 0,
main.key.padding = 0,
key.axis.padding = 0,
On Wed, Sep 30, 2009 at 6:54 AM, Andrewjohnclose a.j.cl...@ncl.ac.uk wrote:
Hi,
I'm having trouble matching the symbols/color of the key to match those
specifiec in the plot.
Here is the code I used:
xyplot(GCR+GCT ~ FRAC, data=RWF, type=c(g,p),cex=1.2,pch=c(22,21),
On Oct 4, 2009, at 9:36 AM, William Aue wrote:
Hi all! Below is the problem I am struggling with.
Let’s say I have a matrix (x) of values:
# [,1] [,2] [,3] [,4]
#[1,]1321
#[2,]2132
I need to copy the items into a new matrix (y) with certain
probability
Hi,
I extracted from a data.frame (x) of 27 columns a smaller data.frame (x2) with
12 columns whit the following:
x2=x[, c(BROVISINGVal, CHATVal, EMAILVal, ..., Piano.Tariffario)]
Anyway I want to form x2 by extracting all the rows that assume any value for
the first 11 columns but a
i wanna get x from the equations: Ax=x, given A is a matrix. How can i apply
it in R? thanks
--
View this message in context:
http://www.nabble.com/help-about-solving-the-equations-tp25738073p25738073.html
Sent from the R help mailing list archive at Nabble.com.
On: R 2.8.1 / Ms Windows / R-Gui-R-console
I have a long-ish function, and to re-assure myself that it's
actually making progress I've arranged a set of messages to the
console (using cat). But what happens is that the messages don't
actually display until the function has finished, which
Yihui Xie wrote:
Hi everyone,
I want to modify two base R functions 'parse' and 'deparse'
immediately after R has started, so I added some code in the file
'Rprofile.site' under the 'etc' directory. Here is a simple example:
parse=function(...){
base::parse(...)
}
I'll get
On 04/10/2009 12:41 PM, cls59 wrote:
Yihui Xie wrote:
Hi everyone,
I want to modify two base R functions 'parse' and 'deparse'
immediately after R has started, so I added some code in the file
'Rprofile.site' under the 'etc' directory. Here is a simple example:
Why not just modify their
On Oct 4, 2009, at 12:09 PM, sabrina.michie...@alice.it wrote:
Hi,
I extracted from a data.frame (x) of 27 columns a smaller data.frame
(x2) with 12 columns whit the following:
x2=x[, c(BROVISINGVal, CHATVal, EMAILVal, ...,
Piano.Tariffario)]
Something like this (untested):
x2=x[
Duncan Murdoch-2 wrote:
Why not just modify their source, and rebuild R?
Duncan Murdoch
In my case, the IT guys don't always provide the necessary tools and/or
permissions to do this. Which is why we are fortunate that R is so flexible
as to allow modification of core routines in
x is the eigenvector corresponding to eigenvalue 1. See ?eigen.
On Sun, Oct 4, 2009 at 9:31 AM, dahuang tsyell...@hotmail.com wrote:
i wanna get x from the equations: Ax=x, given A is a matrix. How can i apply
it in R? thanks
--
View this message in context:
Gabor Grothendieck wrote:
x is the eigenvector corresponding to eigenvalue 1. See ?eigen.
Correct.
I should have looked better.
Berend
--
View this message in context:
http://www.nabble.com/help-about-solving-the-equations-tp25738073p25740459.html
Sent from the R help mailing list
Dear R Community,
I am attempting to transpose a dataset from rows to columns but am stuck. I
have tried using reshape() with little luck, possibly due to the categorical
nature of the data. For example:
id-c(1,2,2,3,3,3)
author-c(j,k,k,l,l,l)
tmt-c(cbt,act,dbt,act,act,cbt)
AC -
The easiest way I can think of is to create a time variable,
so reshape will know which observation to call 1, 2, or 3.
data$time = unlist(sapply(split(data,data$id),function(x)1:nrow(x)))
or
data$time = unlist(tapply(data$id,data$id,function(x)1:length(x))
Then
On Thu, Oct 1, 2009 at 6:38 AM, Lorenzo Isella lorenzo.ise...@gmail.com wrote:
Dear All,
Here is what I am trying to achieve: I would like to plot some data in 3D.
Usually, one has a matrix of the kind
y_1(x_1) , y_1(x_2).y_1(x_i)
y_2(x_1) , y_2(x_2).y_2(x_i)
On Thu, Oct 1, 2009 at 11:30 PM, Dan Kortschak
dan.kortsc...@adelaide.edu.au wrote:
Thanks for that again. That almost works, except that lines are drawn
between non-empty bins (in various degrees of diagonality), so absent
points (important here) don't show clearly. It's not a huge issue, so I
Wonderful, Phil! Your suggestion produced the exact format I desired.
Thank you kindly,
AC Del Re
On Sun, Oct 4, 2009 at 2:03 PM, Phil Spector spec...@stat.berkeley.eduwrote:
AC -
The easiest way I can think of is to create a time variable,
so reshape will know which observation
Suppose there are 4 variables
d is a function of a , b and c
I want to know how a, b and c change will make d change
It will be straightforward to see it if we can graph the d surface
if d is only a function of a and b, I can use 'persp' to see the surface of
d. I can easily see at what values
On 04/10/2009 3:14 PM, gcheer3 wrote:
Suppose there are 4 variables
d is a function of a , b and c
I want to know how a, b and c change will make d change
It will be straightforward to see it if we can graph the d surface
if d is only a function of a and b, I can use 'persp' to see the surface
On Fri, Oct 2, 2009 at 8:03 PM, Mark Dalphin mark.dalp...@peblnz.com wrote:
Hi,
I'm having a problem getting the panel.average function to work as I
expect it to in a lattice plot. I wish to draw lines between the
averages of groups of y-values at specific x-values. I have created a
dataset
On Sat, Oct 3, 2009 at 7:35 PM, David Winsemius dwinsem...@comcast.net wrote:
On Oct 3, 2009, at 7:05 PM, Sebastian P. Luque wrote:
Hi,
I thought the following would only remove the legend element of a
trellis object, but it actually removes both the legend and key
elements:
On Sun, Oct 4, 2009 at 3:45 PM, Deepayan Sarkar
deepayan.sar...@gmail.com wrote:
Yes, unfortunately the trellis object cannot distinguish between the
legend and the key any more.
If you are willing to muck around at the grid level you can do it.
First list out the grid objects using
On Sun, 4 Oct 2009 16:14:58 -0400,
Gabor Grothendieck ggrothendi...@gmail.com wrote:
On Sun, Oct 4, 2009 at 3:45 PM, Deepayan Sarkar
deepayan.sar...@gmail.com wrote:
Yes, unfortunately the trellis object cannot distinguish between the
legend and the key any more.
If you are willing to muck
Thanks a lot, Charlie. What a coincidence -- I'm also working on
Sweave functions. parse() and deparse() can make the code more tidy
(they are used in source() and RweaveLatexRuncode()),
RweaveLatex
function ()
{
list(setup = RweaveLatexSetup, runcode = RweaveLatexRuncode,
writedoc =
Deepayan,
Is something similar needed in the last example in ?xyplot? I don't
see panel.linejoin producing any lines.
Regards,
Peter Ehlers
Deepayan Sarkar wrote:
On Fri, Oct 2, 2009 at 8:03 PM, Mark Dalphin mark.dalp...@peblnz.com wrote:
Hi,
I'm having a problem getting the panel.average
On 04/10/2009 6:07 PM, Yihui Xie wrote:
Thanks a lot, Charlie. What a coincidence -- I'm also working on
Sweave functions. parse() and deparse() can make the code more tidy
(they are used in source() and RweaveLatexRuncode()),
RweaveLatex
function ()
{
list(setup = RweaveLatexSetup,
How about : google r graph gallery 4d ?
abs
On Sun, Oct 4, 2009 at 3:31 PM, Duncan Murdoch murd...@stats.uwo.ca wrote:
On 04/10/2009 3:14 PM, gcheer3 wrote:
Suppose there are 4 variables
d is a function of a , b and c
I want to know how a, b and c change will make d change
It will be
Hi Deepayan,
I'm building the pipeline to generate the data, so that can easiy be
inserted into the code upstream.
Thanks for your help.
Dan
On Sun, 2009-10-04 at 12:16 -0700, Deepayan Sarkar wrote:
On Thu, Oct 1, 2009 at 11:30 PM, Dan Kortschak
dan.kortsc...@adelaide.edu.au wrote:
Thanks
Yihui Xie wrote:
Thanks a lot, Charlie. What a coincidence -- I'm also working on
Sweave functions. parse() and deparse() can make the code more tidy
(they are used in source() and RweaveLatexRuncode()),
RweaveLatex
function ()
{
list(setup = RweaveLatexSetup, runcode =
I wonder if you noticed that you had managed to create a fig object
that has two inside lists by specifying first a key list which
required a legend list, and then specifying a legend list that also
had a key function? The solution to your specific request by Kortschak
nulled-out the
Ah, but the offer of the permanent job with a foreign company is so enticing.
BTW I think he says that he is a computer science student. I doubt business
school students would be so cheap.
--- On Sat, 10/3/09, David Winsemius dwinsem...@comcast.net wrote:
From: David Winsemius
CRAN (and crantastic) updates this week
New packages
* EQL (1.0-0)
Thorn Thaler
http://crantastic.org/packages/EQL
Computation of the EQL for a given family of variance functions,
Saddlepoint-approximations and related auxiliary functions (e.g.
Hermite polynomials)
*
On Sat, Oct 3, 2009 at 7:13 PM, dunno87 benparker1...@hotmail.com wrote:
Thanks for the help in advance. I just want to know if there is absolutely
any way of using multicore if my loop can't run in parallel as each
iteration depends on the previous iteration. I have Windows R 2.9.2 and
Hi there,
I run a loop program with R and need to save the variable in each step into
a vector. After I ran the code, R told me that Error: cannot allocate vector
of size 266.6 Mb. Is there any solution of this kind of problem? Thank you
for your attention.
Yi
--
Yi Du
[[alternative
On Oct 4, 2009, at 7:23 PM, David Winsemius wrote:
I wonder if you noticed that you had managed to create a fig
object that has two inside lists by specifying first a key list
which required a legend list, and then specifying a legend list
that also had a key function? The solution to
On Oct 4, 2009, at 9:22 PM, Yi Du wrote:
Hi there,
I run a loop program with R and need to save the variable in each
step into
a vector.
Data? Code?
After I ran the code, R told me that Error: cannot allocate vector
of size 266.6 Mb. Is there any solution of this kind of problem?
http://waterdata.usgs.gov/nwis/uv?format=rdbperiod=7site_no=021973269
I would like to be able to parse this file up:
I can do this
x -
read.table(http://waterdata.usgs.gov/nwis/uv?format=rdbperiod=7site_no=021973269;,
skip=26)
but If I add another gauge to this
x -
Its not completely clear what you want to preserve and what you want
to eliminate but try this:
L -
readLines(http://waterdata.usgs.gov/nwis/uv?format=rdbperiod=7site_no=021973269,06018500;)
L.USGS - grep(^USGS, L, value = TRUE)
DF - read.table(textConnection(L.USGS), fill = TRUE)
head(DF)
On 5/10/2009, at 2:49 PM, stephen sefick wrote:
http://waterdata.usgs.gov/nwis/uv?
format=rdbperiod=7site_no=021973269
I would like to be able to parse this file up:
I can do this
x - read.table(http://waterdata.usgs.gov/nwis/uv?
format=rdbperiod=7site_no=021973269,
skip=26)
but If I add
For those who don't follow Ubuntu development carefully, the first Beta for the
next Ubuntu was recently released, so I took my home system and upgraded to
help out with filing bugs, etc.
Just to be clear, I am not looking for help with the upgrade process. I've had
R, and a few miscellaneous
__
R-help@r-project.org 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 code.
__
R-help@r-project.org 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 code.
Thanks to everyone for the different suggestions! Very useful.
PS: The aggregate function based solution didnt work as-is for me, perhaps
it needs some modification?
Thanks again,
On Fri, Oct 2, 2009 at 1:51 PM, William Dunlap wdun...@tibco.com wrote:
-Original Message-
From:
Hi Charlie,
Thanks a lot! Your dark voodoo really helps!
And also, thanks so much to Duncan for your detailed explanation!
Finally I used Charlie's trick to modify makeRweaveLatexCoderunner(),
and has left parse() deparse() untouched.
Regards,
Yihui
--
Yihui Xie xieyi...@gmail.com
Phone:
Thanks for the help - this was my goal sorry for not being straight
forward enough
#021973269 is the Waynesboro Gauge on the Savannah River Proper (SRS)
#02102908 is the Flat Creek Gauge (ftbrfcms)
#02133500 is the Drowning Creek (ftbrbmcm)
#02341800 is the Upatoi Creek Near Columbus (ftbn)
On Sat, 03-Oct-2009 at 11:35PM -0400, Daniel Malter wrote:
| This person has probably mistaken expelsior for excelsior.
|
| However, be that as it may, I am personally annoyed by your
| statement, David, in which you indicate that you believe this to be
| an MBA/business school problem,
58 matches
Mail list logo