would expect).
Is this a bug or a feature?
cheers,
Rolf Turner
P.S.
sessionInfo()
R version 2.12.0 (2010-10-15)
Platform: x86_64-apple-darwin9.8.0/x86_64 (64-bit)
locale:
[1] en_NZ.UTF-8/en_NZ.UTF-8/C/C/en_NZ.UTF-8/en_NZ.UTF-8
attached base packages:
[1] datasets
NA SA
[6] Antarctica
sum(is.na(x))
[1] 1
cheers,
Rolf
On 3/11/2010, at 11:45 AM, Peter Dalgaard wrote:
On 11/02/2010 09:45 PM, Rolf Turner wrote:
Example:
xxx - data.frame(x=1:26,y=letters)
xxx$x[c(2,4,6,8)] - NA
xxx$y[c
the ``old'' INDEX was built using
the Rdindex() function.
cheers,
Rolf Turner
P. S.:
sessionInfo()
R version 2.12.0 (2010-10-15)
Platform: x86_64-apple-darwin9.8.0/x86_64 (64-bit)
locale:
[1] en_NZ.UTF-8/en_NZ.UTF-8/C/C/en_NZ.UTF-8/en_NZ.UTF-8
attached base packages:
[1
On 8/11/2010, at 12:39 PM, Duncan Murdoch wrote:
SNIP
I think you need to give us the source to look at to see what's going on.
Duncan Murdoch
The same phenomenon can be observed for my Iso package which is available
from CRAN. The diff results for Iso are like so:
diff INDEX
On 8/11/2010, at 1:24 PM, Duncan Murdoch wrote:
SNIP
... The docs do say to
limit the length of titles to 65 characters if possible; this is one
place where it matters.
SNIP
The 65 character limit had not previously impinged itself upon my consciousness.
Adhering to this
. If I switch to pdf()
everything is out of whack. I produced demo.pdf by plotting to the screen
graphics device and then using dev.copy().
Is there a non-kludgy way of accomplishing my objective?
Thanks.
cheers,
Rolf Turner
demo.pdf
Description: Adobe PDF document
set.
Hope this is of some use to someone besides my very good self. :-)
cheers,
Rolf Turner
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R
)
Paul
On 10/11/2010 3:13 p.m., Rolf Turner wrote:
I have figured out a *slightly* less kludgy way of accomplishing
my goal. Still a bit of a hack, but it works and seems to be
consistent across graphics devices.
Essentially it's this: After the *first* plot in each row, do:
U
:9])
returns TRUE.
I did a cursory search of the r-help pages and found no reference to this
problem.
Is this a bug, or am I missing something?
cheers,
Rolf Turner
P. S.: sessionInfo()
R version 2.11.1 (2010-05-31)
x86_64-apple-darwin9.8.0
locale:
[1] en_NZ.UTF-8
On 13/09/2010, at 3:07 PM, Peter Ehlers wrote:
SNIP
I'm not sure that I would call this a bug, but it would seem
helpful to return an appropriate error message or to coerce to
POSIXct. Note that
all.equal(as.POSIXct(x), as.POSIXct(x))
yields TRUE, as does using as.Date(x).
,
Rolf Turner
##
Attention:\ This e-mail message is privileged and confid...{{dropped:9}}
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE
explain to
me why the values for a function would be different in R? Thanks,
Chris Carleton
Presumably because you were using poly() with the argument raw left
equal to its default, i.e. FALSE.
cheers,
Rolf Turner
P. S. The posting guide asks for reproducible examples
-line.
(1) Please be aware that these are ***NOT*** probabilities that you
after. The
values of a density function are, strange to tell, probability
***densities***
and not probabilties.
(2) Look at the help for density(). I.e., RTFM.
cheers,
Rolf Turner
(fitted(fit))
chk - X%*%ccc
print(chk[!is.na(chk)])
print(range(fitted(fit)-chk[!is.na(chk)]))
[1] 0.00e+00 5.456968e-12
The answers are the same.
cheers,
Rolf Turner
##
Attention:\ This e-mail message
technique you think appropriate for handling missing values. It is
not at all
clear to me that anything appropriate is possible.
cheers,
Rolf Turner
##
Attention:\ This e-mail message is privileged and confid
On 30/09/2009, at 9:15 AM, milton ruser wrote:
May be this:
FRAME - FRAME[-c(NAME1, NAME2)]
or
FRAME- subset(FRAME, select=(-NAME1, -NAME2))
This is ridiculous advice. Try things out before you suggest them.
cheers,
Rolf Turner
. And that is precisely the
situation in which one would wish to apply this sort of
technique.
cheers,
Rolf Turner
On Tue, Sep 29, 2009 at 4:27 PM, Rolf Turner
r.tur...@auckland.ac.nz wrote:
On 30/09/2009, at 9:15 AM, milton ruser wrote:
May
On 30/09/2009, at 10:25 AM, Duncan Murdoch wrote:
On 29/09/2009 4:54 PM, Rolf Turner wrote:
On 30/09/2009, at 9:32 AM, milton ruser wrote:
x=runif(12)
y=runif(12)
w=runif(12)
mydf-data.frame(cbind(x,y,w))
head(mydf)
mydf-subset(mydf, select=c(-x,-w))
head(mydf)
But this doesn't
have told the answer already, several times.
***FLOATING POINT ARITHMETIC
If you still don't understand, read up on it. Start by looking at
the FAQ.
cheers,
Rolf Turner
On 2/10/2009, at 12:05 PM, Bert Gunter wrote:
However, I would hazard the guess that doing this is a (possibly
disastrously) bad idea
I heartily second that hazard!!!
cheers,
Rolf Turner
Bert Gunter
Genentech Nonclinical Biostatistics
On 2/10/2009, at 1:03 PM, Carvalho, Benilton wrote:
I agree with you folks, my assumption is that the user knows what he's
doing.
Almost surely a rash assumption! (I.e. except for a set of
users of probability zero.) :-)
cheers,
Rolf
data frame.
Is this anything like what you want?
cheers,
Rolf Turner
##
Attention:\ This e-mail message is privileged and confid...{{dropped:9}}
__
R-help@r
, but it's possible
that setting nomatch=0 in your call to match() might get you somewhere.
Note that xxx[c(0,1,2,3] gives xxx[c(1,2,3)] whereas
xxx[c(NA,1,2,3)] gives c(NA,xxx[c(1,2,3)]).
cheers,
Rolf Turner
is
``really'' the vector of indices 2 2 2 1 1 1 3 3 3. The levels
attribute says
that 'b' is associated with 1, 'a' is associated with 2, and 'c' is
associated with 3.
So when you type xx$v1 you see a a a b b b c c c as before.
cheers,
Rolf Turner
1 1 1' ?
No. Not unless you specify different breaks.
Is there any other function to count frequency of discrete data?
table()
cheers,
Rolf Turner
##
Attention
,
Rolf Turner
##
Attention:\ This e-mail message is privileged and confid...{{dropped:9}}
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read
the offending message() and print() statements. Or prepend
them by ``if(!silent)'' which would cause silent=TRUE to shut them up.
Fortunately, since this is R, it's easy enuff to do.
HTH.
cheers,
Rolf Turner
P. S. I guess you could do some'at like
sink(/dev/null
entirely that's wanted
cheers,
Rolf Turner
On 14/10/2009, at 7:47 AM, Duncan Murdoch wrote:
On 10/13/2009 2:35 PM, Len Vir wrote:
Hi,
I'm trying to model an ARMA(1,[1,4]),
i.e. I want only lags 1 and 4 of the Moving Average part.
It's the '[1,4]' part that is giving me
:
cloud
Error: object 'cloud' not found
What did I do wrong?
You didn't ***load*** the package, i.e. you didn't do
library(lattice)
cheers,
Rolf Turner
##
Attention:\ This e-mail message
,
Rolf Turner
?str may also be useful..
str is indeed useful --- but not here.
R. T.
bests
milton
On Sun, Oct 18, 2009 at 11:10 PM, ANJAN PURKAYASTHA
anjan.purkayas...@gmail.com wrote:
Hi,
newbie question. I have a data-frame with 3 named columns: Name
for.
cheers,
Rolf Turner
##
Attention:\ This e-mail message is privileged and confid...{{dropped:9}}
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r
be a sexier way of accomplishing the task. If there is,
perhaps Adrian will chip in.
HTH.
cheers,
Rolf Turner
##
Attention:
This e-mail message is privileged and confidential. If you are not the
intended
of a particular bag?
cheers,
Rolf Turner
##
Attention:\ This e-mail message is privileged and confid...{{dropped:9}}
__
R-help@r-project.org mailing list
,
Rolf Turner
Date: Wed, 21 Oct 2009 14:20:08 -0400
From: da...@revolution-computing.com
To: ohri2...@gmail.com
CC: r-help@r-project.org
Subject: Re: [R] News on R s largest corporate partner REVolution
Computing and SPSS CEO:
It is clearly inappropriate for me or anyone else from REvolution
.)
Anyway this is a very convoluted way of going at the problem. Why
not just generate random numbers between 0 an 1 ``directly'', using
runif()?
cheers,
Rolf Turner
##
Attention
On 22/10/2009, at 8:37 AM, Barry Rowlingson wrote:
On Wed, Oct 21, 2009 at 8:09 PM, Charles Annis, P.E.
charles.an...@statisticalengineering.com wrote:
David:
Do you mean inappropriate or embarrassing?
How would we R-ians know what has happened at REVolution were it
not for
Ajay's note?
On 22/10/2009, at 11:16 AM, Erin Hodgess wrote:
Dear R People:
Suppose I have the following output:
table(xx)
xx
A C G T
13 12 10 15
I would like to have the output sorted in descending order by height
or frequency.
But when I do the following:
rev(table(xx))
xx
T G C A
15 10
for stepwise in Bayesian analysis is like asking for some
nuclear waste on your ice cream sundae.
More like asking for petro-chemical waste in your nuclear waste!
cheers,
Rolf Turner
randomForest(), so I haven't tested that bit.
HTH.
cheers,
Rolf Turner
##
Attention:\ This e-mail message is privileged and confid...{{dropped:9}}
__
R-help@r
On 27/10/2009, at 7:58 PM, Peter Ehlers wrote:
... if one doesn't understand the output of lm(), then one's
knowledge of statistics is insufficient to warrant using lm().
I nominate this as a fortune.
cheers,
Rolf Turner
the facility:
http://win-builder.r-project.org
which is provided by Uwe Ligges, bless his heart. Remember this
is necessary only if ``mystuff'' depends on C or Fortran code.
cheers,
Rolf Turner
.)
the greatest havoc on the statistical analysis?
snip
cheers,
Rolf Turner
##
Attention:\ This e-mail message is privileged and confid...{{dropped:9
?get
On 29/10/2009, at 11:25 AM, skyjo wrote:
Hello. I am trying to write an interactive function that asks the
user for a
vector of observations. Unfortunately, if a user inputs a vector, R
treats
the vector name as a string instead of a variable. Here is an example:
On 29/10/2009, at 11:13 PM, premmad wrote:
My R crashes frequently when run with huge data.
Isn't that ***fascinating***!!!
cheers,
Rolf Turner
##
Attention:\ This e-mail message is privileged
.grad - array(0, c(length(.value), 2L), list(NULL, c(x,
y)))
.grad[, x] - 2 * x
.grad[, y] - 3 * y^2
attr(.value, gradient) - .grad
.value
})
cheers,
Rolf Turner
##
Attention
.
cheers,
Rolf Turner
##
Attention:
This e-mail message is privileged and confidential. If you are not the
intended recipient please delete the message and notify the sender.
Any views or opinions
) If indeed the situation has changed (or perhaps even
if it hasn't) shouldn't that line ``only document a ***single***
data object per Rd file'' be deleted from ``Writing R Extensions''?
cheers,
Rolf Turner
On 2/11/2009, at 5:27 PM, Erin Hodgess wrote:
Dear R People:
I have the output from an arima model fit in an object xxx.
I want to verify that the ma1 coefficient is there, so I did the
following:
xxx$coef
ar1ar2ma1 intercept
1.3841297 -0.4985667 -0.996
to the plane z=0?
I thought that the zero.scaled argument (for panel.3dscatter())
might be the ticket here, but when I pass this argument to cloud()
I get an error ``Error using packet 1 formal argument zero.scaled
matched by multiple actual arguments.
Ta.
cheers,
Rolf Turner
On 5/11/2009, at 6:49 PM, Deepayan Sarkar wrote:
On Tue, Nov 3, 2009 at 3:57 PM, Rolf Turner
r.tur...@auckland.ac.nz wrote:
(1) Is there a (simple) way of getting cloud() to do *both*
type=p and type=h? I.e. of getting it to plot the points
as points *and* drop a perpendicular line
relevance.
cheers,
Rolf Turner
##
Attention:\ This e-mail message is privileged and confid...{{dropped:9}}
__
R-help@r-project.org mailing list
https
Have you looked at the read.xls() function from the gdata package?
It automates the conversion to *.csv for you. It has worked seamlessly
for me on the occasions on which I've needed to use it.
cheers,
Rolf Turner
On 19/11/2009, at 9:09 AM, Mark W. Miller wrote:
I
2.11.0 help? Why should that be necessary?
Where/how is install.packages() finding the out-of-date version?
Any insight appreciated.
cheers,
Rolf Turner
##
Attention:
This e-mail message is privileged
On 12/05/2010, at 5:25 AM, Greg Snow wrote:
I nominate Duncan's last statement:
If you don't want informative help files, it's really not much work to
make uninformative ones.
Duncan Murdoch
For the fortunes package.
I second the motion!
cheers,
Rolf Turner
On 14/05/2010, at 9:54 AM, Frank E Harrell Jr wrote:
SNIP
snip Binning is seldom needed and usually distorts. It is
the statistical equivalent of a former governor from Alaska.
SNIP
I nominate this for a fortune.
cheers,
Rolf Turner
of these values can be found from the data that you have
available.
cheers,
Rolf Turner
##
Attention:\ This e-mail message is privileged and confid...{{dropped:9}}
__
R
need to escape the question mark:
gsub(\\?, , x)
yields
[1] asdf+,jkl
which I think *is* what you want.
cheers,
Rolf Turner
##
Attention:\ This e-mail message is privileged and confid...{{dropped
for:''.
This is all Mac stuff, and it's not at all clear to me that it will
translate to the
Linux setting, but it *might* give you somewhere to start. Good luck.
cheers,
Rolf Turner
##
Attention:\ This e
of dates to a POSIXlt/POSIXct/Date/
whatever
object and then adding 6 years to the latter object in a straightforward
way, without having to delve into components of the object?
Ta.
cheers,
Rolf Turner
(length(z1)+length(id))
z2[id] - NA
z2[!is.na(z2)] - z1
A bit kludgy, but it appears to work.
cheers,
Rolf Turner
##
Attention:\ This e-mail message is privileged and confid...{{dropped:9
You should do your own homework.
cheers,
Rolf Turner
On 1/12/2009, at 10:37 AM, susan jacobs wrote:
Census from 1990 california in USA. It’s a data frame with data
from 20640
zones from Califórnia. Zones are chosen as being geograficly near,
wich one
with 1500
,
Rolf Turner
##
Attention:\ This e-mail message is privileged and confid...{{dropped:9}}
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
,
Rolf Turner
##
Attention:\ This e-mail message is privileged and confid...{{dropped:9}}
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do
not to work.
Version 2.10.1 is about to be released, for crying out loud!
cheers,
Rolf Turner
##
Attention:\ This e-mail message is privileged and confid...{{dropped:9
On 2/12/2009, at 3:48 PM, Peng Yu wrote:
On Tue, Dec 1, 2009 at 8:24 PM, Rolf Turner
r.tur...@auckland.ac.nz wrote:
On 2/12/2009, at 3:09 PM, Peng Yu wrote:
SNIP
Here is my sessionInfo().
[Snotty comment deleted.]
sessionInfo()
R version 2.7.1 (2008-06-23
base packages:
[1] datasets utils stats graphics grDevices methods base
other attached packages:
[1] misc_0.0-11fortunes_1.3-6 MASS_7.3-3
cheers,
Rolf Turner
##
Attention:\ This e-mail
() or
cut.default(). Can anyone help?
Unless I'm terribly confused, the obvious solution to your question is:
cut.im(X.im,breaks=c(0,5,60))
Uhhh, why was this difficult?
cheers,
Rolf Turner
. You'll be glad you did!
To paraphrase Eric Blair: ``SAS-thinkers unbellyfeel R-speak.''
cheers,
Rolf Turner
##
Attention:\ This e-mail message is privileged and confid...{{dropped:9
``cameroon.dput'' to your email.
Thanks.
cheers,
Rolf Turner
On 9/12/2009, at 9:38 AM, Sebastian Schutte wrote:
Hi,
I know there are older threads discussing the quadratcount function in
spatstat. Unfortunately, I could not find a solution to my problem
there.
I'm
the expletive deleted GUI, which only
gets in the way of serious work?
cheers,
Rolf Turner
P. S.:
sessionInfo()
R version 2.10.0 (2009-10-26)
i386-apple-darwin8.11.1
locale:
[1] en_NZ.UTF-8/en_NZ.UTF-8/C/C/en_NZ.UTF-8/en_NZ.UTF-8
attached base packages:
[1] datasets utils
into density values.
2) Plot multiple frequency curves in a single plot
?lines
I have been using the hist function for my job.
I'd appreciate if anyone could help me with the solution
cheers,
Rolf Turner
to understand more about
environments and how they work.]
Thanks for any insights.
cheers,
Rolf Turner
P. S. Are there any articles about environments (in the sense used
above)
out there in the literature? I searched the contents of the R
Journal/R News
but turned up nothing
evil.
x - rnorm(300)
h - hist(x,plot=FALSE)
h$counts - h$counts*42
plot(h,ylab=Rescaled counts)
If you want to rescale the x-axis, see the posting by Stephan Devriese.
cheers,
Rolf Turner
##
Attention
.
SNIP
Sounds like a job for Superman (i.e. Simon Urbanek). :-)
cheers,
Rolf Turner
##
Attention:\ This e-mail message is privileged and confid...{{dropped:9
Thanks to Gabor Grothendieck, Duncan Murdoch, Hadley Wickham, and
Bert Gunter
for their useful input. I'm beginning to get a glimmering of
understanding,
and I think I now have enough to make some progress.
cheers,
Rolf Turner
Wouldn't sink.number() give you a handle on whether
the problem is that there is an invalid sink() in effect?
On 15/12/2009, at 10:55 AM, Brian Diggs wrote:
-Original Message-
From: Liviu Andronic [mailto:landronim...@gmail.com]
Sent: Sunday, December 13, 2009 4:05 AM
To: Duncan
,
Rolf Turner
##
Attention:\ This e-mail message is privileged and confid...{{dropped:9}}
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
contr.treatment.
Read up on factors and contrasts.
cheers,
Rolf Turner
##
Attention:\ This e-mail message is privileged and confid...{{dropped:9}}
__
R-help@r
to be
different
from the values in SAS.
I would also appreciate it if someone can explain the difference in
simple
terms. I'm pretty new to both programs. Thanks for your help-
Read the posting guide then repost your question.
cheers,
Rolf Turner
may want to clean up by 'rm -rf .Rd2dvinnn'
which tells you the value of ``nnn''. The tex file you want
is called Rd2.tex.
There is probably a similar incantation that works under Windoze.
cheers,
Rolf Turner
*leave
in* the possibility
of putting all 17 balls in the first urn? Or 3 balls in the first
urn, 12 in the second,
and the remaining 2 in any of the other six urns? Etc. I.e. don't
more terms have to
be subtracted?
cheers,
Rolf Turner
I re-read the solution that you posted and realized where my thinking
was going wrong. Sorry (again!) for being a thicko.
cheers,
Rolf Turner
On 13/01/2010, at 9:19 AM, Greg Snow wrote:
How trivial is probably subjective, I don't think it is much above
trivial. I
(levels(data_factor)[data_factor])
as has been pointed out quite a few times on this list.
cheers,
Rolf Turner
##
Attention:\ This e-mail message is privileged and confid...{{dropped:9
?table
On 14/01/2010, at 11:12 AM, Jesse Sinclair wrote:
Hi all,
I have a vector of strings and need to count the number of times a
string
appears in the vector.
eg:
[1] spp6 spp10 spp6 spp6 spp4 spp2 spp9 spp10 spp5 spp2
spp2 spp3
[13] spp4 spp3 spp6 spp10 spp6 spp4
On 15/01/2010, at 4:45 PM, Erin Hodgess wrote:
Hi R People:
I'm teaching a statistical computing class using R starting next week
(yay!) and I have an opinion type question, please.
I'm old school and use - in an assignment.
However, I'm starting to see the = in the literature.
Which
equipped with)?
cheers,
Rolf Turner
On 14/01/2010, at 2:24 PM, Gabor Grothendieck wrote:
See ?rep where it says that the argument must be a vector. Try
rep(list(sin), 3)
On Wed, Jan 13, 2010 at 8:11 PM, Matthew Walker
matthew.walke...@ulaval.ca wrote:
Hi everyone
will show you what packages are loaded.
You could also try find() !!!
cheers,
Rolf Turner
##
Attention:\ This e-mail message is privileged and confid...{{dropped:9
mode. If there
are some columns that you wish to leave alone you will have to do
something a little bit more subtle. But not much more subtle.
It's all pretty easy if you learn some basic R syntax.
cheers,
Rolf Turner
On 18/01/2010, at 11:17 AM, ivan popivanov wrote
of my
desiderata?
Thanks.
cheers,
Rolf Turner
##
Attention:\ This e-mail message is privileged and confid...{{dropped:9}}
__
R-help@r-project.org mailing list
is of no importance (to me).
Thanks again to all who responded.
cheers,
Rolf Turner
##
Attention:\ This e-mail message is privileged and confid...{{dropped:9}}
__
R
,
Rolf Turner
##
Attention:
This e-mail message is privileged and confidential. If you are not the
intended recipient please delete the message and notify the sender.
Any views or opinions presented are solely those
it Prof. Zeileis?
cheers,
Rolf Turner
##
Attention:\ This e-mail message is privileged and confid...{{dropped:9}}
__
R-help@r-project.org mailing list
https
Ted, Alfredo, et al: Please stop doing this expletive deleted
jerk's homework for him!!!
cheers,
Rolf Turner
##
Attention:\ This e-mail message is privileged and confid...{{dropped:9
.
cheers,
Rolf Turner
##
Attention:\ This e-mail message is privileged and confid...{{dropped:9}}
__
R-help@r-project.org mailing list
https://stat.ethz.ch
.
cheers,
Rolf Turner
On 21/01/2010, at 2:19 PM, Peter Rote wrote:
Thank you Dieter,
but i still have a problem to write to file. The problem is the
slash in
file names (Aerospace/Defense Products Services ). If i want it
to C:/ab/
so C:/ab
]] - X
}
result - do.call(rbind,result)
HTH
cheers,
Rolf Turner
##
Attention:\ This e-mail message is privileged and confid...{{dropped:9}}
__
R-help@r
?args
???
cheers,
Rolf Turner
##
Attention:\ This e-mail message is privileged and confid...{{dropped:9}}
__
R-help@r-project.org mailing list
https
if there was an
equivalent mechanism that I cannot find in the docs anywhere to make
it work.
set.seed(42)
m - sample(0:9,42,TRUE)
S - which(m==4)
eval(parse(text=S))
[1] 11 15 19 29 42
cheers,
Rolf Turner
?sample
On 28/01/2010, at 12:06 PM, jshort wrote:
Hi
I've recently been trying to solve some probability questions in R,
but am
having trouble.
This is one question thats been causing some hair loss:
Given the set of integers S = {1,2,3,4,5,6,7,8,9,10}, create a
function F(S)
that
would be greatly appreciated. Thanks.
This would seem to be very easy to do using a for loop and a list.
What is the problem? Is this a homework question?
cheers,
Rolf Turner
##
Attention:\ This e-mail
1 - 100 of 2037 matches
Mail list logo