Hi Bob,
I recommend doing some background reading on regular expressions[1]
and using gsub().
Cheers
Andrew
[1] http://en.wikipedia.org/wiki/Regular_expressions
On Sat, Sep 20, 2008 at 04:24:36PM +1000, Bob Green wrote:
>
> >Hello,
>
> I am hoping for advice as to how I could remove all word
Hello,
I am hoping for advice as to how I could remove all words immediately
following the words 'Mr' or 'Mr.' in a csv file. For example, the
following phrases are included in lines of text (along with other Mr)
that could be anywhere in the file: "Mr Jones ate lunch" and "Mr
Smith was t
milicic.marko wrote:
Hi,
Is it possible to get ROC and accuracy ratio/gini straight out of the
Design package?
Thanks
The print method for lrm prints the ROC area (labeled "C"). lrm does
not print the other 2 measures you listed. It computes a generalized
R^2 (much more powerful than a
You can always do this if they are single valued vectors:
if ((!is.na(data_filter)) & (!is.na(trigger)) & (data_filter == trigger))
This will catch the condition where either is an NA and therefore not
do the final compare which was giving your error.
On Fri, Sep 19, 2008 at 9:48 AM, Jason
Dear all,
I have a probability of presence of distribution of a species of interest
(varying from 0 to 1 in continuous form) and I have a set of points
where I know that species really occurs. But I don´t have points of absence.
So, for each true presence I know the estimated presence.
I w
Ramya, you sent four near identical emails with different subject lines.
Since the list is run by unpaid volunteers, please avoid wasting
people's time (and yours too) with such redundancies.
Please read http://www.r-project.org/posting-guide.html and search the
mailing lists and documentation
Hi,
Is it possible to get ROC and accuracy ratio/gini straight out of the
Design package?
Thanks
__
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
One thing that R does very well that SAS does not is
graphics - graphical portrayal of data is important,
and you can keep up with R by supplementing your
SAS analyses with R graphics.
Steve McKinney
-Original Message-
From: [EMAIL PROTECTED] on behalf of Barry Rowlingson
Sent: Fri 9/19
On 19/09/2008 6:25 PM, ermimi wrote:
Hello!
Anybody knows any manual to learn TCL - TK? I need it to finish my finsish
projet.
There are a lot of books available, and the docs are included with the
Windows distribution of R, in R_HOME/Tcl/doc/tcltk85.chm. Not sure
about other platforms.
Du
hadley wickham wrote:
On Fri, Sep 19, 2008 at 4:05 PM, Frank E Harrell Jr
<[EMAIL PROTECTED]> wrote:
Mike Prager wrote:
"David Carslaw" <[EMAIL PROTECTED]> wrote:
I find Tinn-R to be an excellent editor for R, but I have one question I
have not been able to answer.
I wish to include some R c
Hello!
Anybody knows any manual to learn TCL - TK? I need it to finish my finsish
projet.
Thank you for your answer
--
View this message in context:
http://www.nabble.com/Manual-to-learn-TCL---TK-tp19579869p19579869.html
Sent from the R help mailing list archive at Nabble.com.
On Fri, Sep 19, 2008 at 4:05 PM, Frank E Harrell Jr
<[EMAIL PROTECTED]> wrote:
> Mike Prager wrote:
>>
>> "David Carslaw" <[EMAIL PROTECTED]> wrote:
>>
>>> I find Tinn-R to be an excellent editor for R, but I have one question I
>>> have not been able to answer.
>>> I wish to include some R code i
I really would encourage you to look at ggplot2 before trying to
create something of your own. Your example would convert to the
following ggplot2 code:
df <- data.frame(x = 0:3, y = 3:0)
plot <- ggplot() + xlim(-3, 3) + ylim(-3, 3) + opts(main = "Hello World")
plot + geom_line(aes(x=x, y=y), df
yes a parallel coordinates plot- I understand that it is for
multivariate data, but I am having a hard time figuring out what it is
telling me. Thanks for your help.
On Fri, Sep 19, 2008 at 5:02 PM, hadley wickham <[EMAIL PROTECTED]> wrote:
> On Fri, Sep 19, 2008 at 3:27 PM, stephen sefick <[EMAI
Mike Prager wrote:
"David Carslaw" <[EMAIL PROTECTED]> wrote:
I find Tinn-R to be an excellent editor for R, but I have one question I
have not been able to answer.
I wish to include some R code in Latex. Using the Edit/Copy formatted
(to export)/TeX does provide Latex-type output. However
On Fri, Sep 19, 2008 at 3:27 PM, stephen sefick <[EMAIL PROTECTED]> wrote:
> I am in the process of learning lattice graphics and have looked at
> ggplot2 a little. I would like to know if there is a "tutorial" that
> shows how to convert lattice code into ggplot code and vise versa. I
> am final
Dear All,
I am working on some slides using LaTeX/Beamer and R/Sweave.
I have the two questions below (sorry if they are stupid or already
solved but I didn't find solutions on the web).
1) Using the following code:
\begin{frame}[containsverbatim]
<>=
help('dim')
@
\end{frame}
I have only:
> h
I am in the process of learning lattice graphics and have looked at
ggplot2 a little. I would like to know if there is a "tutorial" that
shows how to convert lattice code into ggplot code and vise versa. I
am finally discovering the power of these two packages and would like
suggestions to lessen
I'm having trouble getting the gbm package to load on my new 64 bit machine
running xp professional OS. I installed version 2.72 and loaded the
package, although I got an error message:
The downloaded packages are in
C:\Documents and Settings\Administrator\Local
Settings\Temp\RtmpQbYngm
Dear R-users,
I'm somehow new to the topic of mixed models. I'd liked to simulate data
with a specific correlation-structure and analyze it with lme(). I have a
fixed effect (group) and a random effect (block):
ygroup block
-5.2158969-2 1
-2.4174197-2 1
-2.673
I believe I've found a way to wrap and use dev.cur()[[1]] to have the
desired effect. I'm just leaving my terminal now, but I'll post these
results on monday so everyone can see how it turned out.
If you have any ideas or qualms with this method, please let me
know.
Thanks Duncan!
--john
On Sep
"Patrizio Frederic" <[EMAIL PROTECTED]> wrote:
> Dear all,
> is there any way to transform a .Data directory created in S-plus 6.1
> for windows in a .RData file?
You might try the functions "dump" or "dput", which create text
representations readable by either S or R. At least, they do so
for m
In the docs I see:
Usage
fitdistr(x, densfun, start, ...)
Arguments
x A numeric vector.
densfun Either a character string or a function returning a density
evaluated at its first argument.
Distributions "beta", "cauchy", "chi-squared", "exponential", "f", "gamma",
"geometric", "log-normal", "
Forgot to cc...
On Fri, Sep 19, 2008 at 3:22 PM, Max Kuhn <[EMAIL PROTECTED]> wrote:
> A new version 3.41 is on
>
> https://r-forge.r-project.org/projects/caret/
>
> Until later tonight, you will have to get it via
>
> svn checkout svn://svn.r-forge.r-project.org/svnroot/caret
>
> and build it
You can reset the figure number with the 'mfg' parameter to 'par', but to do
what you want you may be able to do using other tools. Look at the examples
for the cnvrt.coords function in the TeachingDemos package (you can do similar
things with the grconvertX and grconvertY functions) or look at
On Fri, Sep 19, 2008 at 2:00 PM, john crepezzi <[EMAIL PROTECTED]> wrote:
> I'm not so sure the original way I stated my issue was clear enough,
> so I'll attempt to elaborate a little bit.
>
> I'd like to make a function that is passed the name of a plot object,
> and a lines/point specification,
Thanks one and all.
Actually, I used OpenOffice's spreadsheet to creat the csv file, but I have
been using it long enough to know to specify how I wanted it, and sometimes,
when that proves annoying, I'll use Perl to finess it the way I want it.
It seems my principle error was to assume that it
On Fri, Sep 19, 2008 at 1:00 PM, john crepezzi <[EMAIL PROTECTED]> wrote:
> I'm not so sure the original way I stated my issue was clear enough,
> so I'll attempt to elaborate a little bit.
>
> I'd like to make a function that is passed the name of a plot object,
> and a lines/point specification,
Forgot to send to the list.
Begin forwarded message:
> From: Saptarshi Guha <[EMAIL PROTECTED]>
> Date: September 19, 2008 1:43:50 PM GMT-04:00
> To: Gabor Grothendieck <[EMAIL PROTECTED]>
> Subject: Re: [R] Lines between panels in lattice
>
> Certainly.
>
> x=cbind(runif(10),rnorm(10),c(rep(1,5
Silvia Lomascolo wrote:
refdata =
read.table("K:\\MerchantData\\RiskModel\\refund_distribution.csv", header
= TRUE)
Error in scan(file, what, nmax, sep, dec, quote, skip, nlines, na.strings,
:
line 1 did not have 42 elements
refdata =
read.table("K:\\MerchantData\\RiskModel\\refund_distrib
Hello friends!!!
I´m spanish student, I am finishing the finish project in computer science.
I am creating a R package about CircularStatistics, In october i will upload
it to CRAN. I need to resolve one problem.
I need to put a windows created with tktoplevel into screen center.
How I could put
Hi,
I am trying to fit a polytomous logistic regression with inverted sampling
probabity as weight. I've tried multinom(nnet) function. While the results look
not right. For example, the results were not the same for the following two
model. Should I normalize the weights first? Or there were
Ok, thanks to Carl Witthoft I now know that to color spaces between and
below a pair of lines in xyplot, I will need to redefine the lines as
polygons, and use the lpolygon panel function, as in the following
library(lattice)
p <- c(1,10,10,1) # vector of x values
q <- c(4,29.2,16,2.5)
I'm not so sure the original way I stated my issue was clear enough,
so I'll attempt to elaborate a little bit.
I'd like to make a function that is passed the name of a plot object,
and a lines/point specification, and graphs them all on the same plot.
I don't want to redraw the plot each time, a
I'm not so sure the original way I stated my issue was clear enough, so I'll
attempt to elaborate a little bit.
I'd like to make a function that is passed the name of a plot object, and a
lines/point specification, and graphs them all on the same plot.
I don't want to redraw the plot each time,
I agree! The best way to learn (and remember for longer) is to teach
someone else about it.
And there is not reason not to repeat some of the anlysis done on SAS
with R. That way you can verify your outputs or compare the
presentations. If you consistently find differences in the outputs, then
> refdata =
> read.table("K:\\MerchantData\\RiskModel\\refund_distribution.csv", header
> = TRUE)
Error in scan(file, what, nmax, sep, dec, quote, skip, nlines, na.strings,
:
line 1 did not have 42 elements
> refdata =
> read.table("K:\\MerchantData\\RiskModel\\refund_distribution.csv")
Error
Sigbert,
When I do:
apt-get install ksmserver kicker
I get a message stating that there is no header in
the package (Xandros came in Spanish, so I have to translate
the message, which is not easy)
Aterwards, I have to Edit sources.list file and create
a preferences file. As the repositories tha
On Thu, Sep 18, 2008 at 5:14 PM, Seth W Bigelow <[EMAIL PROTECTED]> wrote:
>
> Greetings:
> I wish to create a stacked line graph in xyplot, adding color to the
> spaces between the lines. For example, the code below creates a plot with
> two lines extending across it, and I want to color the rhom
Here's one way:
qplot(degreedays, therms, data=heating, colour = Location, shape = Location) +
geom_smooth(method = "lm", fullrange = T, se = F)
Hadley
On Fri, Sep 19, 2008 at 12:45 PM, Juliet Hannah <[EMAIL PROTECTED]> wrote:
> How can I reproduce this graph in ggplot2 (regression lines and da
How can I reproduce this graph in ggplot2 (regression lines and data
point superimposed). Thanks, Juliet
filename="http://personality-project.org/r/datasets/heating.txt";
heating=read.table(filename,header=TRUE)
symb=c(19,25,3,23)
colors=c("black","red","green","blue")
plot(degreedays,therms,pch=s
Got it. It should be plot1.panel.1.2.off.vp and likewise.
Thanks
Saptarshi
On Sep 19, 2008, at 12:08 PM, Saptarshi Guha wrote:
> Hello,
> I have a multi-page display each consisting of two-panels above each
> other.
> I need to draw a line from the top panel to bottom panel. Using
> current.v
Try read.csv("K:\\MerchantData\\RiskModel\\refund_distribution.csv",header =
TRUE)
--- On Fri, 9/19/08, Ted Byers <[EMAIL PROTECTED]> wrote:
> From: Ted Byers <[EMAIL PROTECTED]>
> Subject: [R] Novice question about getting data into R
> To: r-help@r-project.org
> Received: Friday, September 1
Ted Byers wrote:
> I found it easy to use R when typing data manually into it. Now I need to
> read data from a file, and I get the following errors:
>
>
>> refdata =
>> read.table("K:\\MerchantData\\RiskModel\\refund_distribution.csv", header
>> = TRUE)
>>
> Error in scan(file, what, nmax
On 9/19/2008 1:01 PM, Ted Byers wrote:
I found it easy to use R when typing data manually into it. Now I need to
read data from a file, and I get the following errors:
refdata =
read.table("K:\\MerchantData\\RiskModel\\refund_distribution.csv", header
= TRUE)
If your file is really a comma s
Hi there
I want to cbind a vector(contains 20 values) to a dataframe containg (18
rows).The missing value in the dataframe is however a repeated values but
still i want to retain the repeats in the vector and the dataframe values
can even get enterd twice.
how should i go about it
Example:
Vec
I found it easy to use R when typing data manually into it. Now I need to
read data from a file, and I get the following errors:
> refdata =
> read.table("K:\\MerchantData\\RiskModel\\refund_distribution.csv", header
> = TRUE)
Error in scan(file, what, nmax, sep, dec, quote, skip, nlines, na.str
Hi
I would like to check the return value of commands executed with system()
I am using Linux (Ubuntu Hardy) and I am executing GRASS commands and
would like to call stop() when they return an error (i.e. return code
= 1).
Thanks
Rainer
--
Rainer M. Krug, PhD (Conservation Ecology, SUN),
On 19-Sep-08 16:03:45, Greg Snow wrote:
> Peter showed you the %in% operator, you may also want to look at the
> subset, transform, with, and within functions for future use as ways to
> reduce the need to type the name of an object multiple times.
>
> Hope this helps,
Let me add my perhaps very
Hi All,
I am trying to build a set of plots, and build a common legend to all of
them. Because I want to use a multi-line, multi-column legend layout, I
cannot use the common ggplot2 legends (if I can, please tell me how).
So, I would like to know how can I access the properties of a legend, so
t
Hi Thierry and all,
Thanks very much for your suggestion. I've given it a go and played around with
the transparency values, but seem to be having a problem in that some of the
red values are made transparent, even though there are no green values being
overplotted!
The code I used to display
Hello,
I have a multi-page display each consisting of two-panels above each
other.
I need to draw a line from the top panel to bottom panel. Using
current.vpTree()
i find that "plot1.panel.1.2.vp" and "plot1.panel.1.1.vp" are the top
and bottom ones respectively.
I am using the following code
Peter showed you the %in% operator, you may also want to look at the subset,
transform, with, and within functions for future use as ways to reduce the need
to type the name of an object multiple times.
Hope this helps,
--
Gregory (Greg) L. Snow Ph.D.
Statistical Data Center
Intermountain Healt
Stephen Tucker yahoo.com> writes:
> Hi,
>
> Does anyone know if there is a way to 'reset the plot number' on a
traditional graphics device?
>
> For instance, I want to have two plots on stacked top of each other (mfrow=c
(2,1)) but with underlying grid
> lines spanning both figures vertically
I don't believe that \linebreak will work within a tabular environment
as you expect here. Plus, be aware, that it is print.xtable() and not
LaTeX that is adding the additional $\backslash$ characters, as part of
the text sanitization process.
I think that you basically have two options:
1. Defin
Try placing your text in a parbox:
x<-as.table(cbind(1:3,rep("\\parbox{5cm}{this is an example for a long
character string that I want break into several lines}")))
print(xtable(x), sanitize.text = force)
You may need to fix up the vertical spacing as well.
On Fri, Sep 19, 2008 at 10:11 AM, Eric
Hi,
Does anyone know if there is a way to 'reset the plot number' on a traditional
graphics device?
For instance, I want to have two plots on stacked top of each other
(mfrow=c(2,1)) but with underlying grid lines spanning both figures vertically.
I can put the grid lines on top if I add them
Sorry, I thought the time values were equal-spaced...
Regards,
Yihui
--
Yihui Xie <[EMAIL PROTECTED]>
Phone: +86-(0)10-82509086 Fax: +86-(0)10-82509086
Mobile: +86-15810805877
Homepage: http://www.yihui.name
School of Statistics, Room 1037, Mingde Main Building,
Renmin University of China, Beijing
> The good thing about training and evangelization ...
I spent quite a lot of time evangelizing about R when I first started my
current job. Eventually my boss told me I was an "R-Soul", or something
that sounded like that anyway. ; )
Regards,
Richie.
Mathematical Sciences Unit
HSL
Date: Fri, 19 Sep 2008 07:00:33 + (UTC)
From: "Hans W. Borchers" <[EMAIL PROTECTED]>
Subject: Re: [R] How to do knn regression?
To: [EMAIL PROTECTED]
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset=us-ascii
Shengqiao Li stat.wvu.edu> writes:
Hello,
I want to do regres
On 9/19/2008 9:58 AM, Christian Hennig wrote:
Dear Duncan,
No, they're numeric. "integer" here is a type, not the mathematical thing.
This works:
intToUtf8(as.integer(c(66,55)))
The docs don't mention this requirement, and it does seem somewhat
unnecessary; I'll look into it.
Thanks!
Yo
Steve,
You want something like this:
library(ggplot2)
n <- 1000
dataset <- data.frame(x = round(rnorm(n), 2), y = round(rnorm(n), 1), z
= rnorm(n))
ggplot(dataset, aes(x = x, y = y, colour = factor(z > 1))) +
geom_point() + scale_colour_manual(values = c(alpha("red", 1/4),
"green"))
HTH,
Thierr
Ok. Sorry, here's a reproducible example:
library(xtable)
x<-as.table(cbind(1:3,rep("this is an example for a long character string
that I want break into several lines")))
xtable(x)
Regards
Erich
-Ursprüngliche Nachricht-
Von: Gabor Grothendieck [mailto:[EMAIL PROTECTED]
Gesendet: Fr
On 9/19/2008 9:32 AM, john crepezzi wrote:
Is it possible to see if a plot is already open before I call lines()?
I don't think so. You can see if a graphics device is open by looking
at dev.cur(), but I don't think there's a test for plot.new(). I'd just
wrap the call in try() if you're no
Sorry - I should've maybe also pointed out that the command I've been trying to
use is: alpha(col="green", 1/10)
On its own this results in the following error: [1] "#00FF001A" and I haven't
been able to successfully incorporate it into the main formula just yet (please
see my previous messag
Dear Duncan,
No, they're numeric. "integer" here is a type, not the mathematical thing.
This works:
intToUtf8(as.integer(c(66,55)))
The docs don't mention this requirement, and it does seem somewhat
unnecessary; I'll look into it.
Thanks!
You're lucky I didn't read to the end of your mes
On 9/19/2008 9:32 AM, Christian Hennig wrote:
Hi there,
any explanation for this?
intToUtf8(66)
Error in intToUtf8(66) : argument 'x' must be an integer vector
intToUtf8(c(66,55))
Error in intToUtf8(c(66, 55)) : argument 'x' must be an integer vector
intToUtf8(c(66,55),multiple=TRUE)
Erro
Read the last line to every message to r-help to find out
one reason you may be getting no responses.
On Fri, Sep 19, 2008 at 9:39 AM, Erich Studerus
<[EMAIL PROTECTED]> wrote:
> Sorry, for asking the same question again, but I got no reactions the last
> time. Maybe it was just overseen by the ex
On a related note, I am trying to do some matching using conditional
statements. These NULL values are being brought in to my data frame as NA,
as expected, but in a conditional if() statement, I cannot compare then to a
integer value, it fails the program. Here is a small snippet of where the
erro
Hi everybody,
I'm trying a multiple histogram, and I'd like to add on it a secondary axis
with a line (cumulative frequencies, or wathever lines), and the 0 intercept
doesnt coincide in y1 and y2, which dificult interpretation and makes
presentation not nice. I had seen some related answer for b
Is it possible to see if a plot is already open before I call lines()?
--
View this message in context:
http://www.nabble.com/Plot-availability-tp19572437p19572437.html
Sent from the R help mailing list archive at Nabble.com.
__
R-help@r-project.org m
Thierry,
Thanks - I've had a look into using the transparency option, but can't seem to
work out where to place it within the command I'm using:
> ggplot(Jan, aes(x = PopDensity, y = Average.Burnt.Area.Fraction, colour =
> factor(Urban.Rural> 1.25))) + geom_point()
I'm assuming that it has to
Sorry, for asking the same question again, but I got no reactions the last
time. Maybe it was just overseen by the experts.
I'm using the xtable function with Sweave and Lyx and I would like to know
how to get automatic line breaks for long strings in a column of the table.
I've learned from the Ly
Jim,
Thanks for this - I've looked into cluster.overplot in particular which,
judging by the help file, sounds quite useful (count.overplot seems less
relevant).
I'm finding however, that when I execute cluster.overplot, it simply returns
many values (which total the number in the dataset I'm
Hi there,
any explanation for this?
intToUtf8(66)
Error in intToUtf8(66) : argument 'x' must be an integer vector
intToUtf8(c(66,55))
Error in intToUtf8(c(66, 55)) : argument 'x' must be an integer vector
intToUtf8(c(66,55),multiple=TRUE)
Error in intToUtf8(c(66, 55)) : argument 'x' must b
On 9/19/2008 9:14 AM, Sébastien Durand wrote:
Dear Yihui,
The resulting plot produced by dotchart is not what I wish for!
I need to produce a time axis that is consequent to the time values.
When dotchart is used, time values are simply considered as labels.
What I wish for is a way to produce a
Dear Yihui,
The resulting plot produced by dotchart is not what I wish for!
I need to produce a time axis that is consequent to the time values.
When dotchart is used, time values are simply considered as labels.
What I wish for is a way to produce a numerical time axis that really
takes into ac
You might find something about this in the R manual "R Data Import/Export"
--- On Fri, 9/19/08, Patrizio Frederic <[EMAIL PROTECTED]> wrote:
> From: Patrizio Frederic <[EMAIL PROTECTED]>
> Subject: [R] migrating data from s-plus to R
> To: "r-help@r-project.org"
> Received: Friday, September 1
It works great!
Thank you so much Gabor
Angelo Linardi
-Messaggio originale-
Da: Gabor Grothendieck [mailto:[EMAIL PROTECTED]
Inviato: giovedì 18 settembre 2008 21.16
A: LINARDI ANGELO
Cc: r-help@r-project.org
Oggetto: Re: [R] Adding 1 month to a dataframe column
Try this:
# example
The one with Linux (Xandros)
As an alternative in case I don't get through
with the R installation(s) in Xandros,
I've installed ubuntu-eee on a usb memory stick
for booting from it and plan to go on with a "regular ubuntu"
R installation, but have not decided yet whether
I'll be erasing the Xand
Hi,
Is it possible to tabulate (count) points generated by spatstat ppp() using
any regular Grid created with owin()?
The idea is to count No of points in each grid cell.
Any other method available?
Paulo
__
R-help@r-project.org mailing list
https://st
or ...
sapply(m,function(x) table(factor(x, levels=c(NA, 1:4), exclude=NULL)))
On Fri, Sep 19, 2008 at 12:59 PM, Ralikwen <[EMAIL PROTECTED]> wrote:
>
> Hi,
> I went for a slight alteration of your solution
>
> x1<-c(1,2,3,4,NA ,NA ,NA, 3, 1, 1, 1, 1, 2, 2, 3, 4, 4)
> x2<-c(2,3,4,3,4,3,4,2,2,3,4
Dear all,
is there any way to transform a .Data directory created in S-plus 6.1
for windows in a .RData file?
Thanks in advance,
Patrizio Frederic
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posti
Hi,
I went for a slight alteration of your solution
x1<-c(1,2,3,4,NA ,NA ,NA, 3, 1, 1, 1, 1, 2, 2, 3, 4, 4)
x2<-c(2,3,4,3,4,3,4,2,2,3,4,NA,NA,NA,NA,4,3)
x3<-c(1,1,1,1,"aaa",2,2,2,3,3,3,3,4,4,4,1,2)
m<-data.frame(x1,x2,x3)
m<-replace(m,is.na(m),"NA")
levels=unique(as.vector(as.matrix(m)))
mapply(f
We'll see what we can do. I have forwarded your email to Bob Kinney,
who builds the RHEL RPMS.
Martyn
On Thu, 2008-09-18 at 14:57 -0700, Waichler, Scott R wrote:
> There's already an announcement about R 2.8.0, and yet there are still
> no R-2.7.2 binaries (rpms) for Redhat Enterprise Linux 4 an
Dear list
I try to run a bootstrap with lmer.
I often, but not always, get the error message:
Error in objective(.par, ...) :
Leading minor of order 6 in downdated X'X is not positive definite
(with the number (here 6) varying)
In R-archives I came across some threads that treated this pro
Dear R community,
I want to estimate coefficients in a (non-linear) system of equations using
'mle2' from the "bbmle" package. Right now the whole data is read in as just
one long time series, when it's actually 9 cross sections with 30 observations
each. I would like to be able to test and correc
Steve,
- Use tranparancy to prevent overplotting: more details on p. 16 of the
ggplot2 book: http://had.co.nz/ggplot2/book/
- You can choose your own colour with scale_manual():
http://had.co.nz/ggplot2/scale_manual.html
- The backgroundcolor can be set with ggopt(background.color = "white"):
htt
Hi
Here is an alternative solution which will include count of the NA. It
may not be "formally" correct, but it seems to work:
> mapply(function(x) table(factor(ifelse(is.na(x), "NA", x),
levels=c("NA",1,2,3,4))), m)
x1 x2 x3
NA 3 4 0
1 5 0 5
2 3 3 5
3 3 5 4
4 3 5 3
>
H
leeznar wrote:
> Dear all:
> I m a newer on R. I have some problem when I use anova function. I use
> anova function to get Type I SS results, but I also need to get Type III SS
> results. However, in my code, there is some different between the result of
> Type I SS and Type III SS. I don’t
> I have a dataframe like this:
>
> x1<-c(1,2,3,4,NA ,NA ,NA, 3, 1, 1, 1, 1, 2, 2, 3, 4, 4)
> x2<-c(2,3,4,3,4,3,4,2,2,3,4,NA,NA,NA,NA,4,3)
> x3<-c(1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,1,2)
> m<-data.frame(x1,x2,x3)
>
> I would like to create a frequency table like this:
>
> x1 x2 x3
> NA
> 1
>
First of all I'm forwarding this mail to the R-SIG-mixed-models, which
is more appropriate to your question.
Remember that family = bionomial uses by default the logit link. Hence
all parameters will be on the logit scale. So you will need to
backtransform them for comparison. Then you'll see tha
Dear Dr. Murrel,
Thank you for all the clarifications!
Paul Murrell írta:
Hi
#CMS
pdf("tryfont-cms.pdf", family="CMS")
grid.text("gg\u151hh\uF6ii\uF3jj kk\u171ll\uFCmm\uFAnn")
dev.off()
#u151 and u171 doesn't show, though the other accented ones do
embedFonts("tryfont-cms.pdf",
outfile="tr
Dear R users,
I have a dataframe like this:
x1<-c(1,2,3,4,NA ,NA ,NA, 3, 1, 1, 1, 1, 2, 2, 3, 4, 4)
x2<-c(2,3,4,3,4,3,4,2,2,3,4,NA,NA,NA,NA,4,3)
x3<-c(1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,1,2)
m<-data.frame(x1,x2,x3)
I would like to create a frequency table like this:
x1 x2 x3
NA
1
2
3
4
whe
Dear Sébastien,
identifying similarity in curves or time series is one of the main tasks
in the quite recent field of 'Functional Data analysis' (FDA). See the
2005 book by Silverman from Springer Verlag or the corresponding Web page
at url{http://www.psych.mcgill.ca/misc/fda/}.
The 'fda' pac
Dear all:
I m a newer on R. I have some problem when I use anova function. I use anova
function to get Type I SS results, but I also need to get Type III SS results.
However, in my code, there is some different between the result of Type I SS
and Type III SS. I don’t know why the “seqe” fact
2008/9/19 Wensui Liu <[EMAIL PROTECTED]>:
> Dear Listers,
>
> I've been a big fan of R since graduate school. After working in the
> industry for years, I haven't had many opportunities to use R and am mainly
> using SAS. However, I am still forcing myself really hard to stay close to R
> by readin
Shengqiao Li stat.wvu.edu> writes:
>
> Hello,
>
> I want to do regression or missing value imputation by knn. I searched
> r-help mailing list. This question was asked in 2005. ksmooth and loess
> were recommended. But my case is different. I have many predictors
> (p>20) and I really want try
98 matches
Mail list logo