Displaying 20 results from an estimated 20000 matches similar to: "Error in if loop"
2006 Nov 08
5
query in R
how to realize the following SQL command in R?
select distinct A, B, count(C)
from TABLE
group by A, B
;
quit;
Best Regards
---------------------------------
Sponsored Link
Get a free Motorola Razr! Today Only! Choose Cingular, Sprint, Verizon, Alltel, or T-Mobile.
[[alternative HTML version deleted]]
2009 May 26
2
Problem accessing "row number" from subset on a dataframe
I would like to use the "row number" information returned from performing a subset command on a dataframe.
For example, I would like to automatically delete some rows from a dataframe if they match a criteria. Here is my example below.
data(airquality)
names(airquality)
subset(airquality, airquality$Month == 6)
Now how do I delete the row numbers returned automatically?
I
2006 Nov 30
4
R_WinEdt question
if I want to put fig1plot to the left, figYPplot to the right
figYAaplot on the bottom.
How to modify the following cod to do these?
\begin{figure}[H]
\centering
\begin{minipage}[t]{0.5\textwidth}
\centering
<<label=fig1plot,fig=TRUE,echo=FALSE>>=
<<fig1plot>>
@
%\caption{Caption 1}
\end{minipage}
\begin{minipage}[t]{0.5\textwidth}
\centering
2006 Nov 08
2
Sweave and font problems
Dear All,
Having now successfully started using Sweave, I have just noticed an odd
side effect with fonts.
Using plain LaTeX, I have had no problems using \usepackage{palatino} or
\usepackage{times} and the font correctly changes.
However, once I convert the tex document into Snw, and run it through R
CMD SWEAVE, LaTeX seems to ignore this package directive. The LaTeX log
suggests the font
2007 Nov 06
3
Produce a multiple formats graphic
Is it possible to produce the same graphic in different formats
in one shot?
Now if I want to produce the same graphic in pdf, ps and jpeg
I run the producing code, but I change the graphic device, and
I choose successively :
pdf(...)
ps(...)
jpeg(...)
So in this case I run the same code 3 times, or I have
to choose a format and use converters...
Is it possible to produce the 3 graphics in once
2008 Apr 30
2
Lattice book
Dear all,
I haven't seen this mentioned and presumably Dr. Deepayan Sarkar is
too polite to advertise!
I just received a flyer from Springer: A new book on Lattice released today!!
http://www.springer.com/statistics/computational/book/978-0-387-75968-5?cm_mmc=NBA-_-Apr-08_UK_1753460-_-product-_-978-0-387-75968-5
2007 Jun 26
2
Aggregation of data frame with calculations of proportions
Dear all,
I have been stuck on this problem, am rather struggling and would
appreciate some advice if anyone can help. I apologise if this is a
bit long-winded, but I've tried to limit it to the bare essentials,
but don't know how to make it more generic!
I have some slightly odd real world data that I'm looking at
representing number of positive diagnoses for different diseases,
2006 Oct 17
2
RODBC and NULL values
Dear All,
Writing sooner than I thought I'd need to.
I'm using R 2.4 on Mac OS X, with RODBC, PostgreSQL 8.1 and Actual's
ODBC driver. I have all my data in Filemaker 8.5, but it is
automatically exported into PostgreSQL for analysis as Filemaker's ODBC
and JDBC access is awful, slow and has a tendency to crash.
I have disability data where for each patient there is a survival
2006 Dec 09
2
Show number at risk on Kaplan Meier curve
Dear all,
I'm using the "survival" package with R 2.4.0 on Mac OS X 10.4.8.
I have two core statistics books (one of which is Altman's medical stats
book) which suggest showing the number of individuals at risk at
different time intervals on the Kaplan-Meier curve.
My plot shows two curves that later cross, because of one significant
outlier.
I have two queries:
Is there an
2007 Nov 13
1
R: Query an Access database based on a date attribute
It seems that Access needs that you surround the dates with a # symbol.
You probably need something like.
res <- sqlQuery(channel, "select * from test_table where market = 'atl-bos'
and competitor = 'delta' and dd = #2007-11-20#")
Hope this helps,
Stefano
-----Messaggio originale-----
Da: r-help-bounces at r-project.org
[mailto:r-help-bounces at r-project.org]Per
2008 May 02
1
Phil Spector's book
Since we're on the topic of book reviews, I just received Phil Spector's
new R book called "Data Manipulation with R" and it is also quite a
nice book. I haven't gone through it all and I won't give a detailed
review but I have gotten a lot out of the first 100 pages that I have
read.
Note that I've been using R for almost 1.5 years so , for me, it's a
2007 Aug 05
1
t-test
Hi all,
i'm trying to run a two-sample t-test.
i have a longitudinal data that looks like this:
idn age class
1 22 1
1 22 1
1 22 1
1 22 1
2 63 3
2 63 3
2 63 3
3 43 2
3 43 2
3 43 2
3 43 2
3 43 2
3 43 2
4 37 1
4 37
2007 Jul 23
2
R and Excel
? stato filtrato un testo allegato il cui set di caratteri non era
indicato...
Nome: non disponibile
Url: https://stat.ethz.ch/pipermail/r-help/attachments/20070723/2d591177/attachment.pl
2007 Nov 21
1
question about multiple comparison in ANOVA
I am not sure whether there is a bug. When I tested the example given
for "glht" in the help, I entered the following error:
Running commands:
amod <- aov(minutes ~ blanket, data = recovery)
rht <- glht(amod, linfct = mcp(blanket = "Dunnett"),
alternative = "less")
Errors are:
Error in try(coef.(model)) : could not find function
2007 Nov 27
1
Export in pdf, png, jpg, eps, etc...
Dear R-users,
I have created a bunch of R scripts that automatically create multiple
plots, all saved in a pdf device. I initially chose pdf output in order
to easily access to multiple plots in a single file.
Now, I am trying to play with different devices, like png or eps and I
realize that the settings I used to have nice plots in a pdf device are
giving awful outputs with the other
2007 Dec 15
1
modify a data.frame within a function
Hello all,
I'm trying to modify a single column of a data frame to remove randomly half of the values. I want to do it within a function, but can not assign the modified column back into the data frame. It was easy and successful without a function, so I suspect the problem is the call of the single column within the function.
removedata<-function(datafull,var.removed)
{
attach(datafull)
2008 Mar 13
1
factanal and plotting?
Hi there!
To make a good choice for the estimation of the number of usefull
factors. And I'd like to plot a graph like:
http://de.wikipedia.org/wiki/Bild:Parallelanalyse.jpg
where I don't need the green line (random values).
But with
str(factanal(data, factors=10)) I cannot figure out where I can find the
values for plotting.
Can you please help me in this question?
Thanks,
Martin
2008 Apr 04
1
How to include files in .R?
Hi,
may be its a very simple question, but i did not find any documentation
about a 'include' command or something like this.
I have to set many constants in my R-files and want to move all these to
one file, so that i can reuse it in all other R-files.
Something like
include("~/R/myconstants.R")
kind regards,
--
Jonas Stein <news at jonasstein.de>
2008 Apr 14
2
how to write a table to pdf
Hi,
Is there a way to write a table to pdf ? I have checked write.table, it only
writes to text file.
[[alternative HTML version deleted]]
2009 Jul 07
3
Dump plots to powerpoint?
Hi,
Is it possible to dump a series of plots directly into a powerpoint presentation (as is possible in Splus)?
Thank you,
Thomas
[[alternative HTML version deleted]]