On Wed, 5 Feb 2025 08:44:12 -0500
Duncan Murdoch wrote:
> If I have this object:
>
>x <- c("abc\ndef", "", "ghi")
>
> and I write it to a file using `writeLines(x, "test.txt")`, my text
> editor sees a 5 line file:
>
>1: abc
>2: def
>3:
>4: ghi
>5:
>
> which is what
On Sun, 1 Dec 2024 21:43:45 -0800
Bert Gunter wrote:
> Finally, my best advice would be to forget about SAS if you wish to
> use R. Trying to translate SAS paradigms into R is the devil's work.
cheers,
Rolf Turner
--
Honorary Research Fellow
Department of Statistics
University
t (set editing-mode vi) did it. My everlasting
gratitude.
cheers
Rolf
>
>
> On 11/25/24 20:09, Rolf Turner wrote:
> >
> >
> > I have recently acquired a new laptop. (My old one was giving me
> > ominous messages on boot-up, about possible hard drive problems.)
&
that stuff like that was not necessary.
Can anyone refesh my aging memory? Thanks.
cheers,
Rolf Turner
--
Honorary Research Fellow
Department of Statistics
University of Auckland
Stats. Dep't. (secretaries) phone:
+64-9-373-7599 ext. 89622
H
On Fri, 04 Oct 2024 11:16:45 -0700
Jeff Newmiller via R-help wrote:
> Even if this is not a homework question, it smells like one. If you
> read the Posting Guide it warns you that homework is off-topic, so
> when you impose an arbitrary constraint like "must use specific
> unrelated function" we
On Sat, 28 Sep 2024 10:26:31 +0100
CALUM POLWART wrote:
> Avi
>
> I fear this was all a huge social experiment.
>
> Testing if a post titled "sexy way" would increase engagement...
I conjecture that this conjecture was tongue-in-cheek. Be that as it
were 😊️, let me assure everyone that s
point me in the right direction? Thanks.
cheers,
Rolf Turner
--
Honorary Research Fellow
Department of Statistics
University of Auckland
Stats. Dep't. (secretaries) phone:
+64-9-373-7599 ext. 89622
Home phone: +64-9-480-4619
__
R-help@r-pro
On Mon, 16 Sep 2024 09:28:14 +0200
Francesca wrote:
> Dear Contributors,
> I hope someone has found a similar issue.
I hope *not*! 😊️
> I have this data set,
You may have, but we haven't. The data you provided have an
incomprehensible (to me at least) structure. Please use dput()
to include
that are tested.
The last point is focussed on in:
https://www.stats.ox.ac.uk/pub/MASS3/Exegeses.pdf
I don't agree with everything that Prof. Venables says, but "Exegeses"
is *well* worth a read.
cheers,
Rolf Turner
--
Honorary Research Fellow
Department of Statistics
Univer
Apologies for the noise.
R.T.
--
Honorary Research Fellow
Department of Statistics
University of Auckland
Stats. Dep't. (secretaries) phone:
+64-9-373-7599 ext. 89622
Home phone: +64-9-480-4619
__
R-help@r-project.org mailing list -- To UNS
ing wrong with my (tested) solution.
>
>
> Hope this helps,
>
> Rui Barradas
I never cease to be impressed and indeed amazed by Rui's apparently
inexhaustible patience.
cheers,
Rolf Turner
--
Honorary Research Fellow
Department of Statistics
University of Auckland
Stats.
On Tue, 7 May 2024 06:34:50 -0400
Duncan Murdoch wrote:
> On 07/05/2024 6:31 a.m., Iago Giné Vázquez wrote:
> > Thanks Duncan.
> >
> > I am currently on Windows. Is there any solution for it?
>
> Switch to Linux or MacOS?
Fortune nomination!
cheers,
Rolf Tu
See fortunes::fortune(36).
cheers,
Rolf Turner
--
Honorary Research Fellow
Department of Statistics
University of Auckland
Stats. Dep't. (secretaries) phone:
+64-9-373-7599 ext. 89622
Home phone: +64-9-480-4619
__
R-help@r-projec
<- lm(response~time*treatment,data=xmpldata)
yhat <- fitted(mod)
xtb <- with(xmpldata,xtabs(yhat ~ time+treatment))
print(xtb)
> treatment
> time Control Treatment
> Post 94.10501 201.99112
> Pre 101.63792 210.04248
Is that (something li
d love to share my script so you guide me where I did wrong .
(1) This post is far too vague to be appropriate for this list.
(2) You should learn some statistics; probably linear modelling.
(3) You should talk to your thesis advisor.
(4) Please see fortunes::fortune(285).
cheers,
Rolf Tur
Please see fortunes::fortune(285).
cheers,
Rolf Turner
--
Honorary Research Fellow
Department of Statistics
University of Auckland
Stats. Dep't. (secretaries) phone:
+64-9-373-7599 ext. 89622
Home phone: +64-9-480-4619
__
R-h
On Sat, 13 Jan 2024 16:54:01 -0800
Bert Gunter wrote:
> Well, this would seem to work:
>
> e <- data.frame(Score = Score
> , Country = factor(Country)
> , Time = Time)
>
> ncountry <- nlevels(e$Country)
> func= function(dat,idx) {
>if(length(unique(dat[idx,'Count
On Sat, 13 Jan 2024 17:59:16 -0500
Duncan Murdoch wrote:
> My guess is that one of the bootstrap samples had a different
> selection of countries, so factor(Country) had different levels, and
> that would really mess things up.
>
> You'll need to decide how to handle that: If you are trying t
ch leaves me about 150 points short!) to be
able to cope with its intricate and unintuitive syntax.
I believe that what you want to do is triv in base graphics, but I must
confess that I have not gone through the details.
cheers,
Rolf Turner
--
Honorary Research Fellow
Departmen
e maintainer of UMR has been notified, and a revision of
UMR should become available sometime in the near future.
cheers,
Rolf Turner
--
Honorary Research Fellow
Department of Statistics
University of AucklandZhiwei Zhang
Stats. Dep't. (secretaries) pho
to your enquiry so
far may be relied upon to give sound advice.)
cheers,
Rolf Turner
--
Honorary Research Fellow
Department of Statistics
University of Auckland
Stats. Dep't. (secretaries) phone:
+64-9-373-7599 ext. 89622
Home phone: +64-9-480-4619
___
Df Sum Sq Mean Sq F value Pr(>F)
> Treatment 3 200046668 9.553 0.000246 ***
> Expression1 24902490 3.568 0.071050 .
> Treatment:Expression 3 2386 795 1.140 0.353142
> Residuals24 16751
advice: graphics can be very revealing, and are easy to
effect in R. Relevant method: plot.function(); relevant utility:
abline(). Look at the help for these.
cheers,
Rolf Turner
--
Honorary Research Fellow
Department of Statistics
University of Auckland
Stats. Dep't. (secretaries) phone:
On Fri, 18 Aug 2023 12:17:51 +0200
Martin Maechler wrote:
> I think it would be nice to provide the average R user with a
> (possibly super small) R package that allows to turn on (and off)
> such CNR reproducibility.
Would it be possible to effect this on/off via options()?
cheers,
Rolf
On Mon, 3 Jul 2023 13:40:41 -0700
Bert Gunter wrote:
> I am not going to try to sort out your confusion, as others have
> already tried and failed.
Fortune nomination!!!
cheers,
Rolf Turner
--
Honorary Research Fellow
Department of Statistics
University of Auckland
Stats.
Eglhmm"). The source package and a Windoze binary
are available. I have not yet submitted my package to CRAN, although I
hope to do so in the fairly (???) near future.
My package may well have a fair few bugs lurking in its innards. (But
then, don't they all?) If you do experiment with
I have just changed my email address with the R-help mailing lists, and
I want to check that things are working. Sorry for the noise.
cheers,
Rolf Turner
--
Honorary Research Fellow
Department of Statistics
University of Auckland
Stats. Dep't. (secretaries) phone:
+64-9-373
ore the = sign, I seem to be successful only at grabbing
> the stuff after the equal sign.
>
> Pointers to the obvious fix? Thanks...
Perhaps names(test) ???
cheers,
Rolf Turner
--
Honorary Research Fellow
Department of Statistics
University of Auckland
Sta
On Sun, 12 Feb 2023 14:57:36 -0800
Jeff Newmiller wrote:
> x["V2"]
>
> is more efficient than using drop=FALSE, and perfectly normal syntax
> (data frames are lists of columns).
I never cease to be amazed by the sagacity and perspicacity of the
designers of R. I would have worried that x[
On Sun, 5 Feb 2023 15:13:54 -0500
Duncan Murdoch wrote:
>
> Just to build the mountain a little higher, I would use
>
>subset(p, seq_along(p) <= 20)
>
> You should generally avoid expressions like "1:length(p)", because
> they don't do what you would expect in the unusual case that p is
length(p)) <= 20)
This works, but makes a mountain out of a molehill.
cheers,
Rolf Turner
--
Honorary Research Fellow
Department of Statistics
University of Auckland
Stats. Dep't. phone: +64-9-373-7599 ext. 89622
Home phone: +64-9-480-4619
__
On Tue, 24 Jan 2023 17:16:44 -0500
Andrew Simmons wrote:
> I tried this again with R 2.15.3, the oldest version I have installed,
> and I still got the same behaviour. It extracts the first exact match,
> then the only partial match, then NULL.
Thanks for that.
I am *sure* that I had problems
get 3 (the "right" answer; the same as junk[["y"]]).
When I do junk$yu I get NULL (just as if I'd done junk[["yu"]]).
So: has something changed, or am I miss-remembering, or am I completely
confused about the whole issue?
Thanks for any enlightenment.
cheers,
te that I have changed the name of your data frame from "df" to "X",
since df() is a built-in R function (density of the F-distribution).
See fortunes::fortune("might clash").
cheers,
Rolf Turner
--
Honorary Research Fellow
Department of Statistics
University of Auck
n from stackexchange, but you will have to make your
question much clearer and much more explicit. Give a reasonably
detailed example. Do not expect your readers to be telepathic.
It is not at all clear to me that your question actually makes any
sense at all.
cheers,
Rolf Turner
--
Honorary Research
On Fri, 28 Oct 2022 16:42:41 +0100
Rui Barradas wrote:
> This behavior, partial matching of column or list members names when
> extracting with `$` is practically a FAQ.
> See the latest R-Help thread on it after the release of R 4.0
>
>
> https://stat.ethz.ch/pipermail/r-help/2020-May/46714
implemovingaverage)
> abline(v = index(original_series[WordFrame[i,7]]),lty=2,
> col='green', lwd=3) title(paste("Word Task Acquisition for Subject"))
> dev.off()
> }
> #If the three tests are NOT statistically significant, generate a
> plo
.
cheers,
Rolf Turner
On Tue, 4 Oct 2022 23:35:09 +
"Deramus, Thomas Patrick" wrote:
> Sorry to cross-post on Stackoverflow and here but I'm having some
> difficulty.
> https://stackoverflow.com/questions/73942794/still-getting-error-in-ect-plot-new-has-not-been-cal
On Mon, 26 Sep 2022 11:14:57 +0800
Turritopsis Dohrnii Teo En Ming wrote:
> Subject: How long does it take to learn the R programming language?
>
> Good day from Singapore,
>
> How long does it take to learn the R programming language?
How long is a piece of string? :-)
ortune(254), although not directly
applicable, might be relevant. :-)
If you *really* believe that r-squared makes some kind of sense in the
context of *generalised* least squares, you should probably direct
further enquires to r-sig-mixed-models.
cheers,
Rolf Turner
--
Honorary Research Fellow
D
On Mon, 15 Aug 2022 19:20:28 -0700
Bert Gunter wrote:
> Fortune Nomination!
>
> "A lot of work for a little pie." (in response to a query about how to
> improve a pie chart)
> -- Jim Lemon
I second the nomination.
cheers,
Rolf
>
> On Mon, Aug 15, 2022 at 6:43 PM Jim Lemon
> wrote:
> >
>
On Thu, 28 Jul 2022 00:42:51 +
"Ebert,Timothy Aaron" wrote:
> Time is often used in this sort of problem, but really time is not
> relevant. A better choice is accumulated thermal units. The insect
> will molt when X thermal units have been accumulated. This is often
> expressed as degree d
-1 + x1 + x2 + x3 + x4 + x5 + x6 + x7 + x8 + x9 + x10 + x11"
I could of course be missing something, but it really looks to me as if
something has gone up to Puttee here.
Some input from someone in R-Core would be valuable here.
cheers,
Rolf Turner
--
Honorary Research Fellow
Departmen
ot;. See the subtle
difference? :-)
The variable nvym1 was never initialised, so it took on strange values
plucked out of RAM, I guess. Whence the anomaly. Once I corrected that
trivial typo, things were OK.
Thanks everybody!!! :-)
cheers,
Rolf Turner
P.S. What I can't figure out (and won
d into Fortran. The Ratfor
code is much more perspicuous, so I have included the corresponding *.r
files so as to possibly provide some enlightenment. If you have ratfor
on your system, you can do things like "ratfor getgl.r > getgl.f" to
recreate the *.f files.
Thanks for any assistanc
hypotheses. This requires
that you think! And that you actually understand what problem you
are trying to solve.
Analysis of variance can be a subtle concept. Some insight into the
subtleties might be obtained by reading Bill Venables' paper:
http://www.stats.ox.ac.uk/pub/MASS3/Exegeses
t;; I wanted one "standing up".
After a great deal more struggle I did
crud <- factor(rep(1,42),labels="")
bwplot(junk ~ crud,ylab="")
which gave me what I was after.
Perhaps others who are more knowledgeable than I could chip in with
better ideas.
But first Luig
On Fri, 19 Nov 2021 18:35:23 -0800
Bert Gunter wrote:
> ?predict.lm says:
>
> "predict.lm produces predicted values, obtained by evaluating the
> regression function in the frame newdata (which defaults to
> model.frame(object)). "
>
> model.frame(fit) is:
> 1 1.37095845 -0.30663859
> 2 -0
have as I would like, by
specifying an appropriate value for na.action? I could not find such
an appropriate value.
Thanks for any enlightenment.
cheers,
Rolf Turner
--
Honorary Research Fellow
Department of Statistics
University of Auckland
Phone: +64-9-373-
it yourself, especially
given that it's so easy in this instance?
Use mung[[1]] to get the first entry of a list named "mung".
Or mung[1] of one if you want a *list* whose sole entry is the
first entry of mung.
Likewise mung[-1] will give you the "all but" results.
Fewer key s
On Sun, 7 Nov 2021 13:11:10 -0500
Duncan Murdoch wrote:
> I've submitted a bug report and patch:
>
> https://bugs.r-project.org/show_bug.cgi?id=18232
Thanks Duncan. It's good to know that the anomaly wasn't just a result
of my doing something stupid.
cheers,
Rolf
--
Honorary Research Fe
library(Deriv)
d1 <- Deriv(dnorm,"sd")
source("d2.txt") # d2.txt is attached
d1(1,0,3,TRUE) # [1] -0.2962963
d2(1,0,3,TRUE) # [1] -0.889
cheers,
Rolf
P.S.:
> sessionInfo()
R version 4.1.1 (2021-08-10)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 20.04.3 LTS
Matrix product
st curious (idly?) as
to *why* the association of the namespace:stats environment with d1()
causes it to "do the right thing".
Can anyone give me any insight? Ta.
cheers,
Rolf Turner
--
Honorary Research Fellow
Department of Statistics
University of Auckland
Phone: +64-9-373-7599 ext. 88276
osition, but that causes an error to be thrown.
I want to have a near the bottom of the plot and to adjust its
position, in the horizontal direction by means of "inset", but nothing
that I try has the desired effect.
Am I misunderstanding something? Or is there perhaps a bug in
legend
tion 2
> Create a matrix of size 3x3 called mat_1:
>
> Iterate over all the values one by one and print the element as well
> as the position in the matrix (row, col)
You really should do your own homework.
cheers,
Rolf Turner
--
Honorary Research Fellow
Department of Statistics
nt that this package will now be much more useful than
it was previously.
Enjoy! :-)
cheers,
Rolf Turner
--
Honorary Research Fellow
Department of Statistics
University of Auckland
Phone: +64-9-373-7599 ext. 88276
__
R-help@r-project.org mailing list -
been changed slightly, but
most (for some value of "most") calls made with the previous syntax
should still work. When the unexpected happens, read the help!!!
cheers,
Rolf Turner
--
Honorary Research Fellow
Department of Statistics
University of Auckland
Phone: +64-9-373-7599
On Mon, 11 Oct 2021 09:15:27 +
PIKAL Petr wrote:
>
> data.frame is not matrix or array (even if it rather resembles one)
>
> So if you put a cake into oven you cannot expect getting fried
> potatoes from it.
Another fortune nomination!
cheers,
Rolf
--
Honorary Research Fellow
Depar
On Sun, 10 Oct 2021 19:27:27 +1300
"Richard O'Keefe" wrote:
> Why is it so hard to understand that there is nothing special to
> understand here?
Fortune nomination.
cheers,
Rolf
--
Honorary Research Fellow
Department of Statistics
University of Auckland
Phone: +64-9-373-7599 ext. 8827
On Tue, 28 Sep 2021 16:02:55 -0700
Bill Dunlap wrote:
> tools:::prepare2_Rd contains the lines
> ## FIXME: we no longer make any use of \Rdversion
> version <- which(sections == "\\Rdversion")
> if (length(version) > 1L)
> stopRd(Rd[[version[2L]]], Rdfile,
>"
its presence in a number of help files for other packages.
Can anyone explain to me what it's for, and what its provenance is?
Is it important?
Thanks for any enlightenment.
cheers,
Rolf Turner
--
Honorary Research Fellow
Department of Statistics
University of Auckland
Phone: +64-9-373-
On Mon, 27 Sep 2021 14:54:53 -0700
Bert Gunter wrote:
> ... and also note in the *Color Specification* section of ?par, to
> which ?points points,
>
> "Additionally, "transparent" is transparent, useful for filled areas
> (such as the background!), and just invisible for things like lines or
> t
> Some functions such as lines and text accept a vector of values which
> are recycled and may be interpreted slightly differently.
So I guess differences in behaviour are hinted at.
I'm still curious!
Any thoughts from anyone?
cheers,
Rolf Turner
--
Honorary Research Fellow
D
ating what you a trying to accomplish.
You are asking others for help. Have a little consideration for the
helpers, who are giving of their time and effort free of charge!
(c) Note that "df" is a lousy name for a data frame, since it is the
name of a base R function (the density functio
to be non-numeric. Some of them *may* be interpretable as being
numeric.
If you apply as.numeric() to a column you'll get NA's for all entries
that *cannot* be interpreted as numeric. So you may want to do something
like (untested, of course):
ok <- is.na(
On Wed, 1 Sep 2021 19:29:32 -0400
Duncan Murdoch wrote:
> I don't know the header of your foo() method, but let's suppose foo()
> is
>
>foo <- function(x, data, ...) {
> UseMethod("foo")
>}
>
> with
>
>foo.formula <- function(x, data, ...) {
> # do something with the
On Wed, 1 Sep 2021 05:35:03 -0400
Duncan Murdoch wrote:
> On 31/08/2021 11:59 p.m., Rolf Turner wrote:
> >
> > I'm trying to build a pair of (S3) methods, a "formula" method and a
> > "default" method. The methods have a "data" argume
x" in "data").
Is there any way to tell the generic to do this?
Or is there any other way out of this dilemma? (Other than "Give up and
go to the pub", which I cannot currently do since Auckland is in Level 4
lockdown. :-) )
Thanks for any enlightenment.
cheers,
Ro
rovide a template/prototype Makefile
and give me some idea what to *do* with it?
cheers,
Rolf Turner
--
Honorary Research Fellow
Department of Statistics
University of Auckland
Phone: +64-9-373-7599 ext. 88276
__
R-help@r-project.org mailing list -- To UNS
one got any *useful* advice? If so, please present it
in very simple terms if you can. (I am a Bear of Very Little Brain,
and long words bother me.) A step-by-step recipe would be appreciated.
I'm running Ubuntu 20.04, with a Mate 1.24.0 desktop.
Grateful for any pearls of wisdom.
On Sat, 28 Aug 2021 09:47:03 +0200
Achim Zeileis wrote:
> On Sat, 28 Aug 2021, Rolf Turner wrote:
>
> > I have found that tools::texi2pf() ignores changes to the *.bib file
> > unless the *.bbl file is removed prior to re-running
> > tools::texi2pdf().
>
> Thi
iew mreprex.pdf. You will see that the version number is given as
0.0-22 as it should be.
Should this be considered a bug? If so, what is the appropriate way of
drawing this to the attention of those who have the power to fix it?
Thanks.
cheers,
Rolf Turner
--
Honorary Research Fellow
Dep
;t use Excel!!!
This is a corollary of a more general theorem: Don't use Micro$oft!!!
cheers,
Rolf Turner
--
Honorary Research Fellow
Department of Statistics
University of Auckland
Phone: +64-9-373-7599 ext. 88276
__
R-help@r-project.org
plus Duncan's off-list
response.
Does this say something about the efficacy of mailing lists as
contrasted with web site fora? Or is it just a difference between the
R community and the Rstudio community?
cheers,
Rolf Turner
--
Honorary Research Fellow
Department of Sta
the latest version. I remark that I am
running Ubuntu 20.04 with a Mate 1.20.4 desktop.
How can I get a "doc" directory into my R directory and make Rstudio
happy?
cheers,
Rolf Turner
P.S. I have also tried to ask about this on the Rstudio community
forum, but it seems to me t
On Mon, 2 Aug 2021 17:53:34 +0100
Rui Barradas wrote:
> Hello,
>
> I'm glad it helped.
> Here are a couple of ideas for theme.
Thanks Rui. The scope of your knowledge and understanding is simply
amazing!
cheers,
Rolf
--
Honorary Research Fellow
Department of Statistics
University of Au
necessary data set in the file egDat.txt.
Just in case anyone is interested or in case someone else might benefit
from seeing this code.
cheers,
Rolf Turner
--
Honorary Research Fellow
Department of Statistics
University of Auckland
Phone: +64-9-373-7599 ext. 88276
#
# Script ciPlot.txt for doing the
Thanks to Bill Dunlap and Avi Gross for their clear and helpful answers
to my questions.
cheers,
Rolf Turner
--
Honorary Research Fellow
Department of Statistics
University of Auckland
Phone: +64-9-373-7599 ext. 88276
__
R-help@r-project.org
Thanks to Jeff Newmiller, Rui Barradas and Avi Gross for their
extremely helpful replies. I have got both Jeff's and Rui's code to
run. I am currently experimenting with Avi's suggestion of producing
multiple plots and then putting them together using plotgrid() or
grid.arrange(). This idea s
quot;. This file was produced by dput() so read it
in using dget("egData.txt").
With eternal gratitude.
cheers,
Rolf Turner
--
Honorary Research Fellow
Department of Statistics
University of Auckland
Phone: +64-9-373-7599 ext. 88276
eg.pdf
Description: Adobe PDF document
structure
This discussion has developed in such a way that it seems a better
subject line would be "problem for the hairsplit function". :-)
cheers,
Rolf Turner
--
Honorary Research Fellow
Department of Statistics
University of Auckland
Phone: +64-9-373-7599
h as
"graphics::text() rather than just text().
I guess it never hurts to be cautious.
cheers,
Rolf Turner
--
Honorary Research Fellow
Department of Statistics
University of Auckland
Phone: +64-9-373-7599 ext. 88276
plotASCII <- function (extended = TRUE, cex = graphics::par("cex
you want the first entry of this
result, i.e. "clyde".
My "sapply()" construction produces the first entry of each entry of the
list produced by strsplit().
It is useful to get your thoughts clear, understand what you are doing
and understand what the functions that you are using do.
On Sat, 3 Jul 2021 09:40:28 +0200
Ivan Krylov wrote:
> Hello Rolf Turner,
>
> On Sat, 3 Jul 2021 14:02:59 +1200
> Rolf Turner wrote:
>
> > Can anyone suggest how I might get my plot_ascii() function working
> > again? Basically, it seems to me, the question is:
is the hex
encoding of the degree symbol; apparently 260 is the octal encoding of
this symbol.
Can anyone suggest how I might get my plot_ascii() function working
again? Basically, it seems to me, the question is: how do I persuade
R to read in "\260" as "\ub0" rather than &qu
contributed package, you should in the first
instance contact the maintainer of the package rather than this list.
Only if you get no response from the maintainer should you appeal to
the list. You can find the email address of the maintainer by typing
maintainer().
(4) From the error message I w
# TRUE
As has been pointed out, you should include a minimal reproducible
example in questions such as this. Creating such an example almost
always reveals the source of the problem so that you can solve it
yourself.
cheers,
Rolf Turner
--
Honorary Research Fellow
Department of Statistics
Univ
UE, FALSE)
> > object[index]
> [1] 1 3 5 7 9 11 13 15 17 19 21 23 25 27 29 31 33 35 37 39 41 43
> 45 47 49 51 53 55 57
> [30] 59 61 63 65 67 69 71 73 75 77 79 81 83 85 87 89 91 93 95 97 99
Why faff around with ifelse()?
object[object %% 2 == 1]
works just fine.
cheers,
On Sat, 15 May 2021 00:55:08 + (UTC)
Kai Yang wrote:
> Hi Rolf,
> I am a beginner for R.
Then I suggest that you spend some time learning basic R syntax, with
the help of some of the excellent online tutorials. "An Introduction
to R" from https://cran.r-project.org/manuals.html would be a g
lt.tr_Test.Result1".
Why did you expect it to be present?
Moreover, the code of your function makes no sense at all, at least not
to *my* feeble brain. The quantities "raw", "Pedigree.name" and "UPN"
are not arguments of your function. How do you expect k_s
On Mon, 3 May 2021 12:42:30 +1200
Abbs Spurdle wrote:
> Previously, I disliked some of R's names.
> e.g. Action of the Toes.
> But then later realized toes are really important.
>
> I don't want to disagree with a 'reviewer'.
> But I would say subtle references to literature and philosophy
> d
fect that the package is
deprecated and that users should install and utilse the dbd package
instead.
The dbd package includes a number of modifications which (it is to be
hoped) make it an improvement over the hse package that it replaces.
I would be grateful to anyone who points out any problems
e_size=nvec,attained_power=kbpower))
> }
>
> Can you please advise,
There is no "rvec" anywhere in the code that you provided, so the error
is coming from somewhere else.
I ran your code and got:
> $sample_size
> [1] 25 10 15
>
> $attained_power
> [1] 0.84044
xample illustrating the problem, and someone on this list
will probably be able to help you.
cheers,
Rolf Turner
--
Honorary Research Fellow
Department of Statistics
University of Auckland
Phone: +64-9-373-7599 ext. 88276
__
R-help@r-proje
On Fri, 26 Mar 2021 13:41:00 +1300
Abby Spurdle wrote:
> I haven't checked this, but I guess that the number of students that
> *pass* a particular exam/subject, per semester would be like that.
>
> e.g.
> Let's say you have a course in maximum likelihood, that's taught once
> per year to 3rd
failure.
>
> What have I misunderstood?
And then, following up:
> Oh, I think I get what you mean -- you are drawing repeated samples
> from a binomial with n trials and you are counting the number of
> successes for each.
Yes. Exactly. Sorry if my post was unclear.
cheers,
Rolf Turner
artificial) but I'd like to get my hands on a *real* example, if
possible.
Grateful for any pointers/suggestions.
cheers,
Rolf Turner
--
Honorary Research Fellow
Department of Statistics
University of Auckland
Phone: +64-9-373-7599 ext. 88276
__
See fortunes::fortune(341) for a relevant comment. :-)
Thanks again.
cheers,
Rolf Turner
--
Honorary Research Fellow
Department of Statistics
University of Auckland
Phone: +64-9-373-7599 ext. 88276
__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and
the desired object, *not* wrapped in
a list, i.e.:
> $a
> [1] "n"
>
> $b
> [1] 20
>
(which is what I get by typing xxx[2,3][[1]]).
Is there any way to prevent the entries of xxx from being wrapped up in
lists of length 1?
Thanks for any enlightenment.
cheers,
Rolf
On Tue, 9 Feb 2021 17:34:00 +1300
Rolf Turner wrote:
>
> David Wolfskill's post solved my problem perfectly. Thanks.
>
> Thanks also to Bert Gunter and Avi Gross.
Whoops. David Wolfskill's message came to me off-list.
Sorry for the confusion.
cheers,
Rolf
--
Ho
1 - 100 of 2108 matches
Mail list logo