Oops! My caveat about untested code was certainly appropriate. The
normalization code below will not work.
Here is probably what I was thinking of doing:
data <- within(data, norm <- value / tapply(value, group, sum)[group])
The same caveats apply here as below!
__
Data frames are lists. Each column of the data frame is a component of the
list. So in, e.g.
lapply(data, function(x) x)
the function would receive each column of the data frame in turn.
To apply a function to each row of the data frame (which may need some care)
one tool you can use is ap
Hi,
I suggest to use geom_text to add multiple labels.
Put all the information needed by for your labels in a dataframe:
lab = data.frame(x=namposts+2.5, y = temprange[2], label= mlabs)
and add them to the plot:
p + geom_text(data=lab,aes(x,y,label=label), size=2.5,colour='black',
hjust =
> We don't support Cygwin builds; that could be part of your problem. The
> only supported builds on Windows are using MinGW.
Ah; indeed, that /is/ the problem. Works fine from MinGW. If I have
some time, maybe I can investigate and submit a patch.
__
Hello all,
Iam newbie here and to R too.Is it possible to customize R to be used to
people who has limited knowledge of statistics to perform simple data
analysis?.Which language to use?. Any alternative suggestion?.
Thank you for your help.
udd
__
Dear All
Below is a toy example of a modified standard bwplot.
require(lattice)
DF <-
data.frame(site = rep(1:5, each = 20),
height = rnorm(100))
bwplot(site ~ height,DF,
pch = "|",
par.settings = list(strip.background = list(col = "transparent"),
box.rectangle = list(col = "grey70
> change <- c(NA, diff(q1$..1))
> will be 1 when ..1 goes from FALSE
> to TRUE, -1 for TRUE to FALSE, 0 for no change, and NA
> for the first element. You may find it convenient to
> change that NA to something else or to not deal with
> the first element after computing the diff.
>
>
This is ve
I'm a bit confused on how to use lapply with a data.frame.
For example.
lapply(data, function(x) print(x))
WHAT exactly is passed to the function. Is it each ROW in the data
frame, one by one, or each column, or the entire frame in one shot?
What I want to do apply a function to each row in
I anticipate lacking of prior experience with dimensionality reduction problems.
Some scientists concerned with drug discovery performed several steered
Molecular Dynamics simulations of the
alanine-dipeptide molecule dragged by a radial force from an equilibrium
conformation to another differen
> -Original Message-
> From: r-help-boun...@r-project.org
> [mailto:r-help-boun...@r-project.org] On Behalf Of Worik R
> Sent: Sunday, February 28, 2010 5:22 PM
> To: r-help
> Subject: [R] Expanding a data structure
>
> I have a xts object with logical data .
>
> > tail(q1)
>
There is a special report on managing information. See page 8.
"A free programming language called R lets companies examine and present
big data sets, and free software called Hadoop now allows ordinary pC to
analyse huge quantities of data that previously required a supercomputer."
http://
Hey folks,
This is my first message to the mailing list so please let me know if I
mess something up.
I'm trying to use the selectcommand for the mclistbox but I'm not very
adept at using functions. Ideally I'd like to change the editor text when
a different list item is selected but any help usin
I'm guessing the answer is no? I too am looking for a function for SIMPER,
it seems logical that this would be in the Vegan package with the ANOSIM
function.
--
View this message in context:
http://n4.nabble.com/Similarity-Percentage-Analysis-tp868460p1573091.html
Sent from the R help mailing l
There is a special report on managing information. See page 8.
"A free programming language called R lets companies examine and present big
data sets, and free software called Hadoop now allows ordinary pC to analyse
huge quantities of data that previously required a supercomputer."
http://
On 28/02/2010 7:39 PM, Peter Danenberg wrote:
As of R 2.10.0, the plain text is generated by the tools::Rd2txt function
from the same source as the HTML, i.e. the parsed Rd files stored in the
.rdb file in the package help directories.
It looks as though ESS is the problem here, but I don't re
I have found myself doing a large amount of Bayesian analysis and I am
uncertain what framework learn and I'm posing this question to get a sense
of perspective. As I am doing a lot of applied work right now, I need to do
a fair amount of "standard data analysis" (eg mixed models, glm, etc) but I
I have a xts object with logical data .
> tail(q1)
..1
2010-02-19 TRUE
2010-02-22 FALSE
2010-02-23 FALSE
2010-02-24 FALSE
2010-02-25 FALSE
2010-02-26 FALSE
>
I want to build a xts that records the dates that there is a change. If
TRUE -> FALSE it is "down" if FALSE -> TRUE it is "u
hi I have a panel with 12 plots . All the plots have their own x and y labels
as well as titles. I want add additional labels a, b, c, d,
e,on the upper left side of each plot in the panel. Please
suggest how I can do that.
Gaurav
--
View this message in context:
http://n4.nabbl
> As of R 2.10.0, the plain text is generated by the tools::Rd2txt function
> from the same source as the HTML, i.e. the parsed Rd files stored in the
> .rdb file in the package help directories.
>
> It looks as though ESS is the problem here, but I don't really know what it
> is doing that coul
John Maindonald wrote:
>
> I came across this notice of an upcoming webinar. The issues identified
> in the
> first paragraph below seem to me exactly those that the R project is
> designed
> to address. The claim that "most research software is barely fit for
> purpose
> compared to equiva
I came across this notice of an upcoming webinar. The issues identified in
the
first paragraph below seem to me exactly those that the R project is designed
to address. The claim that "most research software is barely fit for purpose
compared to equivalent systems in the commercial world" see
On Feb 28, 2010, at 5:33 PM, Martin Batholdy wrote:
Hi,
which test do I have to use if I want to test if the following data
follow a monotone trend;
min 5min10min 20min 30min
5 20 55 70 90
... where the dependent variable co
JD,
I would recommend 64 bit, and win 7 on a quad core system has been
surprisingly stable for me. Allan's points are also spot on. I would suggest
reading the references Allan provided.
Increased memory will increase your ability to handle n vectors of 2^31-1
elements, a limit that was a design
There is, however, an important distinction.
Quoting from ?TRUE (or ?logical):
'TRUE' and 'FALSE' are reserved words denoting logical constants
in the R language, whereas 'T' and 'F' are global variables whose
initial values set to these. All four are 'logical(1)' vectors.
TRUE <-
On 03/01/2010 08:55 AM, Rolf Turner wrote:
...
Furthermore using F's and T's to represent TRUE's and FALSE's is
bad practice anyway. Since FALSE and TRUE are reserved words it
would make sense for the read function to assume that a field is
logical if it consists entirely of these words. But T'
On 03/01/2010 05:47 AM, David Winsemius wrote:
...
> maintainer
function(pkg="") packageDescription(pkg)$Maintainer
> maintainer("brew")
[1] "Jeffrey Horner "
This is a great solution and deserves to go into the utils or tools
package. When I first saw Tal's message, I immediately thought,
It is strange. Even in R itself T and F are not guaranteed to be TRUE
and FALSE.
> T <- 1:3
> T
[1] 1 2 3
On Sun, Feb 28, 2010 at 4:55 PM, Rolf Turner wrote:
>
> I had occasion recently to read in a one-line *.csv file that
> looked like:
>
> "CandidateName","NSN","Ethnicity","dob","gender"
>
On Feb 28, 2010, at 4:55 PM, Rolf Turner wrote:
I had occasion recently to read in a one-line *.csv file that
looked like:
"CandidateName","NSN","Ethnicity","dob","gender"
"Smith, Mary Jane",111222333,"E","2/25/1989","F"
That "F" (for female) in the last field got transformed to
FALSE. Appa
Hi,
which test do I have to use if I want to test if the following data follow a
monotone trend;
0min5min10min 20min 30min
5 20 55 70 90
... where the dependent variable contains frequencies.
And how is that implemented in R?
t
I would first abandon time-domain techniques altogether for irregularly spaced
series. The Lomb Scargle periodogram is available for R, here:
http://research.stowers-institute.org/efg/2005/LombScargle/R/index.htm.
KeithC.
-Original Message-
From: ravi [mailto:rv...@yahoo.se]
Sent: Fr
Rolf Turner wrote:
>
> I solved the problem by putting in a colClasses argument in my
> call to read.csv(). But I really think that the read functions
> are being too clever by half here. If field entries are surrounded
> by quotes, shouldn't they be left as character? Even if they are
> all
I had occasion recently to read in a one-line *.csv file that
looked like:
"CandidateName","NSN","Ethnicity","dob","gender"
"Smith, Mary Jane",111222333,"E","2/25/1989","F"
That "F" (for female) in the last field got transformed to
FALSE. Apparently read.csv (and hence read.table) are inferring
Then use strsplit() instead.
KeithC.
-Original Message-
From: kayj [mailto:kjaj...@yahoo.com]
Sent: Friday, February 26, 2010 1:02 PM
To: r-help@r-project.org
Subject: Re: [R] using grep
Hi ,
I have tried
gsub(".*York(\\d+).*", "\\1", grep("New York", x, value = TRUE))
and outputs
I had a problem annotating a graph last year ( see
http://n4.nabble.com/Putting-names-on-a-ggplot-td907158.html#a907158 for the
discussion)
Stefan (smu) provided a solution using annotate(). However I apparently did
not update the graph file and,now, when I go back to the thread and try to use
On 28/02/2010 2:09 PM, Claudia Beleites wrote:
What about the short-term solution of having a function
package.bug.report - along the lines of bug.report?
That has already been added: see the news here:
http://developer.r-project.org/blosxom.cgi/R-devel/NEWS/2009/11/30#n2009-11-30
Duncan Murd
Dear R-users,
I'm trying to use the netlogit QAP procedure in the SNA package for an
adjacency matrix of 4500*4500 (undirected). However, my computer is not able to
handle this task due to a lack of memory (2GB of RAM). The error message is
something like "... cannot allocated vector of size...
Thank you Jim and Gabor. It seems that for my purpose of comparing the
computational effort (not I/O) the optimal thing is to use the sum of user and
system CPU times to get the total CPU. It also seems like when there is not
much I/O involved, which is the case for my algorithms, the total C
Amy -
Apparently (you didn't provide a reproducible example),
you are making calls to sink(filename) without closing the
connection by calling sink() with no arguments (or a first
argument of NULL). If you're going to keep writing to the
same file, there's no need for additional calls to sin
hi,
It is a good idea not to reply to existing messages, if you want to open
a new subject.
On Sun, Feb 28, 2010 at 06:33:00PM +, Amy Hessen wrote:
>
>
> Hi,
>
> After some runs to my program, I receive this error message:
> ?Error in sink("output.txt") : sink stack is full?
>
> Could
What about the short-term solution of having a function
package.bug.report - along the lines of bug.report?
E.g. see attachment
Claudia
--
Claudia Beleites
Dipartimento dei Materiali e delle Risorse Naturali
Università degli Studi di Trieste
Via Valerio 2
I-34127 Trieste
ITALY
email: cbelei..
On Sat, Feb 27, 2010 at 8:14 PM, Peng Cai wrote:
> Thanks a lot Deepayan, one question:
>
> Is it possible to place these barplots side-by-side instaed of super
> imposing? Something like this:
> http://www.imachordata.com/wp-content/uploads/2009/09/boxplot.png
Well, yes; a quick approximation is
On 28/02/2010 1:32 PM, Gabor Grothendieck wrote:
I wonder if this could be made pluggable in the sense that anyone
could develop a CRAN package that hooks into the help system and takes
over. If its already like that perhaps all that is needed is some
documentation/guidance on how to develop suc
On Feb 28, 2010, at 1:04 PM, Tal Galili wrote:
Duncan,
As much as I agree with your remark in the general case, in this
case - the
annoyance is mostly for the next user and not the current one.
If I spot a typo, after I figure what it had meant - my annoyance is
over.
I don't have any per
On Sun, Feb 28, 2010 at 1:38 PM, Duncan Murdoch wrote:
> On 28/02/2010 1:32 PM, Gabor Grothendieck wrote:
>>
>> I wonder if this could be made pluggable in the sense that anyone
>> could develop a CRAN package that hooks into the help system and takes
>> over. If its already like that perhaps all
After reading some more, I think Tal's Wiki idea was also a good one--
conceivably a server could be set up that pulled tarballs from CRAN,
unpacked them, and converted the man folders to HTML.
Then the server could provide a sort of a "master list" version of
help.start() where each page was edi
On 28/02/2010 1:04 PM, Tal Galili wrote:
Duncan,
As much as I agree with your remark in the general case, in this case - the
annoyance is mostly for the next user and not the current one.
If I spot a typo, after I figure what it had meant - my annoyance is over.
I don't have any personal motiva
Duncan,
As much as I agree with your remark in the general case, in this case - the
annoyance is mostly for the next user and not the current one.
If I spot a typo, after I figure what it had meant - my annoyance is over.
I don't have any personal motivation to share the knowledge, asides from my
On 28/02/2010 12:29 PM, Gabor Grothendieck wrote:
Or both the short and and the long term won't happen.
That's one interpretation. I'd prefer to think that the short term
changes happened in November. All the content is there; it just needs
to be made prettier.
Duncan Murdoch
On Sun, F
I wonder if this could be made pluggable in the sense that anyone
could develop a CRAN package that hooks into the help system and takes
over. If its already like that perhaps all that is needed is some
documentation/guidance on how to develop such a package. There could
be multiple alternative h
Hi,
After some runs to my program, I receive this error message:
Error in sink("output.txt") : sink stack is full
Could you please tell me how I can avoid this message?
Cheers,
Amy
_
Vi
On 28/02/2010 1:23 PM, Sharpie wrote:
Duncan Murdoch wrote:
Yes, I agree. In fact, I think the whole system needs to be updated.
Anyone like doing HTML design?
If I had the time, I would raise my hand for this one-- unfortunately
school, work and other commitments leave me with a full sch
Duncan Murdoch wrote:
>
> Yes, I agree. In fact, I think the whole system needs to be updated.
> Anyone like doing HTML design?
>
If I had the time, I would raise my hand for this one-- unfortunately
school, work and other commitments leave me with a full schedule for the
foreseeable future
Paul Hurley wrote:
>
> Hello,
>
> I'm trying to use R (and Sweave) to pull some data out of a database and
> produce some standard reports. unfortunaltey, the people who want the
> reports want them in an editable format so they can add wordy bits to
> the automatically generate tables and
Hi,
I have generated a sample,Z, from right truncated gamma
distribution,Gamma(a,b,t), I want to know how can check this sample being
a sample of gamma(a,b,t)?
thank you for your help.
khazaei
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mai
On 02/28/2010 09:20 AM, Uwe Ligges wrote:
>
>
> On 28.02.2010 14:40, Nino Hardt wrote:
>> I installed graphviz-2.20.3.1, set the environment variables and
>> installed rgraphviz. Did the same thing in Windows Vista and now in
>> Windows 7. In Vista it works as its supposed to, however, in Windows
Or both the short and and the long term won't happen.
On Sun, Feb 28, 2010 at 12:24 PM, Duncan Murdoch wrote:
> On 28/02/2010 12:04 PM, Gabor Grothendieck wrote:
>>
>> On Sun, Feb 28, 2010 at 11:52 AM, Duncan Murdoch
>> wrote:
>>>
>>> Gabor Grothendieck wrote:
On Sun, Feb 28, 2010 at 9
On 28/02/2010 12:04 PM, Gabor Grothendieck wrote:
On Sun, Feb 28, 2010 at 11:52 AM, Duncan Murdoch wrote:
Gabor Grothendieck wrote:
On Sun, Feb 28, 2010 at 9:43 AM, Duncan Murdoch
wrote:
On 28/02/2010 9:08 AM, Gabor Grothendieck wrote:
On Sun, Feb 28, 2010 at 8:59 AM, Duncan Murdoch
wrot
On 28.02.2010 14:40, Nino Hardt wrote:
I installed graphviz-2.20.3.1, set the environment variables and installed
rgraphviz. Did the same thing in Windows Vista and now in Windows 7. In Vista
it works as its supposed to, however, in Windows 7 RGui crashes. Anyone else
experiencing trouble wi
Paul paulhurley.co.uk> writes:
Hi Paul,
Why not another option like StatWeave based on OpenOffice ?
http://www.cs.uiowa.edu/~rlenth/StatWeave/
HTH
Regards
Denis
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE
I installed graphviz-2.20.3.1, set the environment variables and installed
rgraphviz. Did the same thing in Windows Vista and now in Windows 7. In Vista
it works as its supposed to, however, in Windows 7 RGui crashes. Anyone else
experiencing trouble with rgraphviz+windows 7?
[[alternat
On Sun, Feb 28, 2010 at 11:52 AM, Duncan Murdoch wrote:
> Gabor Grothendieck wrote:
>>
>> On Sun, Feb 28, 2010 at 9:43 AM, Duncan Murdoch
>> wrote:
>>
>>>
>>> On 28/02/2010 9:08 AM, Gabor Grothendieck wrote:
>>>
On Sun, Feb 28, 2010 at 8:59 AM, Duncan Murdoch
wrote:
>
>>>
On 28.02.2010 17:17, Yen Lee wrote:
I'm new to post in R-help and my native language is not English.
I apologize if my sentence is not fluent to read.
I am doing a simulation study and I need to execute SAS and read a SAS code
in R.
I try the following code but it doesn't work.
system('"c:\
Gabor Grothendieck wrote:
On Sun, Feb 28, 2010 at 9:43 AM, Duncan Murdoch wrote:
On 28/02/2010 9:08 AM, Gabor Grothendieck wrote:
On Sun, Feb 28, 2010 at 8:59 AM, Duncan Murdoch
wrote:
On 28/02/2010 7:19 AM, Gabor Grothendieck wrote:
The name of the package is at the
Yen Lee ntu.edu.tw> writes:
> I apologize if my sentence is not fluent to read.
>
> I am doing a simulation study and I need to execute SAS and
> read a SAS code in R.
> I try the following code but it doesn't work.
> system('"c:\\program files\\SAS\\SAS 9.1\\sas.exe" "c:\\syntax.sas"')
> can
Guillaume Théroux Rancourt writes:
>
> Hello!
>
> I have read somewhere (somehow, I can't seem to find it again,
> it's been a couple of months) that when
> analyzing factorial block design, the position where you put
> the block factor is important, even more
> when there are missing values.
>
Ajay Shah mayin.org> writes:
>
> x <- c(6.6493705109108, 7.1348436721241, 8.76886994525624,
> 6.12907548096037, 6.88379118678109, 7.17841879427688,
> 7.90737237492867, 7.1207373264833, 7.82949407630692,
> 6.90411547316105)
> plot(ecdf(x), log="x")
>
> It does the
I'm new to post in R-help and my native language is not English.
I apologize if my sentence is not fluent to read.
I am doing a simulation study and I need to execute SAS and read a SAS code
in R.
I try the following code but it doesn't work.
system('"c:\\program files\\SAS\\SAS 9.1\\sas.exe
Paul wrote:
Hello,
I'm trying to use R (and Sweave) to pull some data out of a database and
produce some standard reports. unfortunaltey, the people who want the
reports want them in an editable format so they can add wordy bits to
the automatically generate tables and graphs.
My current p
I didn't follow your question completely. But do a search for
intraclass correlation with nlme or lmer and see if those results
relate to the question you are asking. If so, I would
suggest following up on the mixed model list. I know you
wanted to avoid mixed models, but if I have understood
your
On Sun, Feb 28, 2010 at 9:43 AM, Duncan Murdoch wrote:
> On 28/02/2010 9:08 AM, Gabor Grothendieck wrote:
>>
>> On Sun, Feb 28, 2010 at 8:59 AM, Duncan Murdoch
>> wrote:
>>>
>>> On 28/02/2010 7:19 AM, Gabor Grothendieck wrote:
The name of the package is at the top of each help page and
Dear R users,
Im trying to understand how correlated predictors impact the Relative
Importance measure in Stochastic Boosting Trees (J. Friedman). As Friedman
described
with single decision trees (referring to Briemans CART
algorithm), the relative importance measure is augmented by a strate
On 28/02/2010 9:08 AM, Gabor Grothendieck wrote:
On Sun, Feb 28, 2010 at 8:59 AM, Duncan Murdoch wrote:
On 28/02/2010 7:19 AM, Gabor Grothendieck wrote:
The name of the package is at the top of each help page and then
library(help = myPackage) would get you the maintainer info. Or in
place of
On Sun, Feb 28, 2010 at 8:59 AM, Duncan Murdoch wrote:
> On 28/02/2010 7:19 AM, Gabor Grothendieck wrote:
>>
>> The name of the package is at the top of each help page and then
>> library(help = myPackage) would get you the maintainer info. Or in
>> place of the last step googling for CRAN myPack
On 28/02/2010 7:19 AM, Gabor Grothendieck wrote:
The name of the package is at the top of each help page and then
library(help = myPackage) would get you the maintainer info. Or in
place of the last step googling for CRAN myPackage would get to a page
like this:
http://cran.r-project.org/web/pac
On UNIX/Linux:
myData <- scan(pipe("tr '\\t' '\\n' < myfile"), skip = 3)
You might have to adjust this depending on your shell. On Windows
there is a tr in Duncan Murdoch's Rtools.
On Sat, Feb 27, 2010 at 11:24 AM, Balzer Susanne wrote:
> Dear all,
>
> I am trying to read in big amou
Check out:
https://stat.ethz.ch/pipermail/r-help/2010-February/228228.html
On Sun, Feb 28, 2010 at 2:39 AM, Christian Raschke
wrote:
> Dear R-List,
>
> My questions concerns missing values. Specifically, is is possible to
> use different "types" of missingness in a dataset and not a
> one-size-fi
The name of the package is at the top of each help page and then
library(help = myPackage) would get you the maintainer info. Or in
place of the last step googling for CRAN myPackage would get to a page
like this:
http://cran.r-project.org/web/packages/zoo/index.html
so it could be done in two ste
Dear R Users,
If a stationary bootstrap (Politis & Romano 1994) for time series is
performed (e.g. performance difference between trading strategy and
benchmark), how can the following data be generated respectively adjusted?
1. p-values
2. smoothing parameter
3. significan
Hello dear R users,
*Here is the background for my question:*
I just had a look at the help file for
? Yeast
in the "HistData" package.
In it, I found a small spelling mistake where the word "*c*istribution" was
written instead (so I imagin) "*d*istribution".
I thought maybe I should e-mail the
Ben Bolker wrote:
>
> (2) [long term] develop your code in a text editor (Tinn-R, emacs,
> R source code editor accessible from the menu ...) and cut & paste
> or source() as necessary.
>
Which I consider the only real solution. From many tutorials, one gets the
impression that the purel
On 02/28/2010 11:44 AM, Thomas Levine wrote:
I have grades data. I read them from a csv in letter-grade format. I
then converted them to levels
levels(grades$grade)=c('A+','A','A-','B+','B','B-','C+','C','C-','D+','D','D-')
And then to numbers
grades$gp=grades$grade
levels(grades$gp)=c(4.3,4.0
Hello,
I'm trying to use R (and Sweave) to pull some data out of a database and
produce some standard reports. unfortunaltey, the people who want the
reports want them in an editable format so they can add wordy bits to
the automatically generate tables and graphs.
My current plan is to use
On 27/02/10 17:47, J. Daniel wrote:
Greetings,
I am acquiring a new computer in order to conduct data analysis. I
currently have a 32-bit Vista OS with 3G of RAM and I consistently run into
memory allocation problems. I will likely be required to run Windows 7 on
the new system, but have flexi
83 matches
Mail list logo