half <- (n + 1)/2
if(n %% 2 == 1) {
sort(x, partial = half)[half]
}
else {
sum(sort(x, partial = c(half, half + 1))[c(half, half + 1)])/2
}
}
-----
so yes,
e.
You may also chose to discuss an "optimal example" by e-mail
between you, as you've already started to do so, implicitly.
Martin Maechler, ETH Zurich
>>>>> Jeff Newmiller
>>>>> on Tue, 3 Feb 2015 19:43:25 -0800 writes:
> I see now the
>>>>> Hiroyuki Kawakatsu
>>>>> on Thu, 5 Feb 2015 12:40:28 + writes:
> On 2015-02-05 Martin Maechler wrote:
> [...]
>> Both a definition of the DFT (in LaTeX or directly as \deqn{}{}) which
>> matches *our* fft()
> Rolf Turner
> on Tue, 24 Feb 2015 09:41:42 +1300 writes:
> On 24/02/15 09:35, Ramiro Barrantes wrote:
>> Hello,
>>
>> I have a library that I created .
>
> No you ***DO NOT***. You have a ***PACKAGE***. If you
> cannot even get your terminology
???
Please do
for(i in 1:20) cat("It's a package!\n")
-- Martin Maechler (after a newly released *package* has been called
*library* three times in its
announcement on R-packages)
R-help (March 2006)
>
=== :-) ===
Martin
__
is auto
produced using pandoc
(and IT infrastructure in Vienna and Zurich).
Martin Maechler,
as secretary of the R Foundation
___
r-annou...@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-announce
(inspired by Haim Harari's thoughts in http://edge.org/response-detail/26056)
Best regards,
Martin Maechler, ETH Zurich and R Core
>> -Original Message- From:
>> wolfgang.viechtba...@maastrichtuniversity.nl Sent: Fri,
>> 13 Mar 2015 10:2
Definitely, Spencer.
I was talking about explicit announcements.
Martin
> On 3/14/2015 9:53 AM, Martin Maechler wrote:
>>>>>>> John Kane on Fri, 13 Mar 2015
>>>>>>> 06:16:19 -0800 writes:
>> > I have the feeling that this wa
different color spaces and a default set of
cutoffs, for defining what "near" means.
I had thought at the time to make a regular function out of
it, but then did not follow up on myself :-)
Martin Maechler,
ETH Zurich and R core team
> On Apr 13, 2015, at 11:45 AM, Thierry Onkelinx
> Thanks for help!
> However, changing the index from i to j for the column vector changes the
> output. I would like the matrix to be the following:
> -1 1 0 0 0 0 0
> 0 -1 1 0 0 0 0
> 0 0 -1 1 0 0 0
> .
> etc.
> How to code it?
as Enrico Schumann showed you: Without any loop, a very nic
> Eric Bergeron Wed, 8 Aug 2018 12:53:32 +0300 writes:
> You only need one "for loop"
> for(i in 2:nrow(myMatrix)) {
>myMatrix[i-1,i-1] = -1
>myMatrix[i-1,i] = 1
> }
>
> HTH,
> Eric
and why are you not using Enrico Schumann's even nicer solution
(from August 6) that I had mention
> Bert Gunter
> on Wed, 8 Aug 2018 08:21:05 -0700 writes:
> (From Jeff Newmiller) "My advice is to enter one line of
> each example at a time and study what it does before
> proceeding to the next line. Copying whole swathes of code
> and marveling at the result is exh
> Abs Spurdle
> on Tue, 14 Aug 2018 15:16:08 +1200 writes:
> Hi All
> When you print a function constructed within a function, R
> prints it's environment. For example:
> > myfunction = function ()
> + { f = function () NULL
> + attributes (f) = lis
used by
that mistake: Only considering the '1's and not considering the
'0's in the data (visualised and shown to the decision making experts).
See, e.g.,
https://priceonomics.com/the-space-shuttle-challenger-explosion-and-the-o/
(couldn't easily find a more academic
> Eric Berger
> on Thu, 20 Sep 2018 23:28:27 +0300 writes:
> Hi Andrew,
> I don't have any experience in this area but I was intrigued by your
> question. Here is what I learned.
> 1, A bit of poking around turned up a thread on stats.stackexchange that
> mentions
package (*.Rmd or *.Rnw) vignettes to help pages of the same
package is also not easily and portably possible AFAICS.
Both would be desirable quite desirable for improved R
documentation and ideally so in a way that could also work with
an internet connection.
[and if we continue this,
> Wensui Liu
> on Sun, 23 Sep 2018 13:26:32 -0500 writes:
> what you measures is the "elapsed" time in the default
> setting. you might need to take a closer look at the
> beautiful benchmark() function and see what time I am
> talking about.
> I just provided ten
ow, and issues are tracked here:
https://github.com/emacs-ess/ESS/issues/
Last but not least :
Welcome to the world of Emacs and ESS !
--
Martin Maechler
ETH Zurich (and ESS core team)
> Cheers, Bert
> Bert Gunter
> "The trouble with having an open mind is that
> Rui Barradas
> on Thu, 1 Nov 2018 07:05:54 + writes:
> Hello, This has nothing to do with R-help and I apologize
> in advance but this is really, really strange.
> A SO user is still using R 1.0.1:
>
https://stackoverflow.com/questions/53096176/how-do-i-change
> Jeff Newmiller
> on Mon, 5 Nov 2018 18:47:00 -0800 writes:
> Well, you may or may not have ruled out the Putty settings
> (your hand waving is a bit hard for me to interpret), and
> there may still be host side terminal settings involved,
> or if you compiled R yours
> Patrick Connolly
> on Thu, 8 Nov 2018 20:27:24 +1300 writes:
> Many thanks to Berwin, Eric, Robert, and Jan for their input.
>
> I had hoped it was as simple as because I typed
>
> saveRDS("rawData", file = "rawData.rds") on the Windows side.
> but that wasn't the case.
>
> Rob
> PIKAL Petr
> on Tue, 13 Nov 2018 08:42:22 + writes:
> Hi
> similar result (with different numerical values) could
> be achieved by making v a factor.
> > v <- letters[c(2,2,1,2,1,1)]
> > vf<-factor(v)
> > as.numeric(vf)
> [1] 2 2 1 2 1 1
>
> Cheers
> Petr
Yes, as
> peter dalgaard
> on Fri, 16 Nov 2018 13:39:27 +0100 writes:
> Well, "Basically, " is an excuse for not being
> accurate. Making the code more complex doesn't really help
> the explanation. It could be better to just add "(except
> for NA handling)" or so.
> -pd
> Bert Gunter
> on Wed, 12 Dec 2018 08:51:04 -0800 writes:
> Incidentally, here is another way to do what (I think) you asked using
> layout():
> m <- matrix(c(1,2,2), nrow =1)
> layout(m)
> plot(1:10, type = "p", main ="The First Plot")
> plot(10:1, type = "l
., the one that webshot() will then try to use and
somehow fails.
I'd recommend you run webshot::install_phantomjs()
which then should install a "better" version of the 'phantomjs'
executable that then *should* work ..
Let us know if this helped (or why not).
Best,
Martin M
> Jeff Newmiller
> on Sat, 22 Dec 2018 22:31:54 -0800 writes:
> You could delete your 3.5 personal package library (using
> the File Explorer with Run as Admin if necessary) and
> re-install your packages without running as Admin. If that
> does not work try uninstalli
tation.
Your example here works because the rounding typically happens
to end up with the same binary repr ... this all relies on too
many details to be recommendable.
Martin Maechler
ETH Zurich and R Core team
>> -Original Message-
>> From: R-help On Behalf Of Ben
d, reproducible code.
In both of the above URLs it is mentioned that R-help is
archived (in many places):
Questions and their answers are there for the R community (of
the future) who will find and be able to learn from them.
Best,
Martin Maechler
ETH Zurich and R Core team
_
)
## e.g.,
eaxis(2, at = ypos, labels = pretty10exp(ypos, drop.1=TRUE))
gives a nice plot for me, not using 'cdot' but rather
> pretty10exp(ypos, drop.1=TRUE)
expression(10^6, 2 %*% 10^6, 3 %*% 10^6)
>
> Thanks for any hint
> Pascal
You are welcome!
Mart
> Aaron Lun
> on Sun, 10 Feb 2019 15:22:17 + writes:
> Dear list,
> The Matrix package exhibits some unexpected behaviour in its arithmetic
> methods for the edge case of a sparse matrix with a dimension of zero
> length. The example below is the most illustrative,
> Rich Shepard
> on Sun, 24 Feb 2019 11:08:43 -0800 writes:
> I apologize for the ambiguous subject; I could not think of a more
accurate
> one.
> Updating packages reported that 'later' did not build, but I did not see
> which dependency needs updating. Looking at t
> Rolf Turner
> on Wed, 13 Mar 2019 09:38:24 +1300 writes:
> On 13/03/19 9:06 AM, Greg Snow wrote:
>
>> The only time I have seen t.test give a p-value of 1 is when the
>> data mean exactly equals the null hypothesis mean and the alternative
>> is the default of
it's help page, I'm not the
author of that function and its submethods:
https://www.rdocumentation.org/packages/robustbase/versions/0.93-4/topics/nlrob
Martin Maechler
ETH Zurich
> --
> Best regards,
> Ivan
> _
> Elizabeth Purdom
> on Tue, 16 Apr 2019 09:45:45 -0700 writes:
> Hi Bert, Thanks for your response. What you suggest is
> more or less the fix I suggested in my email (my second
> version of .rcolors). I writing more because I was
> wondering if there was a better way
of thousands of tests that must
have run without fault before R is released. Calling citation()
and >= 99% of all other base R functions is among these quality
assurance tests of an R release.
Martin Maechler (R core team)
__
R-help@r-project.org
> Have you tried the 'envir' argument to load()? E.g.,
>envA <- new.environment()
>load("A.RData", envir=envA)
>envB <- new.environment()
>load("B.RData", envir=envB)
>plot(A$object, B$object)
> Bill Dunlap
> TIBCO Software
> wdunlap tibco.com
An alternative that I have been
, but that would be a quite bad idea, IMHO:
The checking code {from package 'codetools' BTW}
would no longer warn you about any accidental global 'x'
variable in any of your functions in your package.
After all, these codetools checks *are* very helpful in
detecting typos and
(c("f.RData","s.RData"),function(f){getFrom(f,"x")})
> > f.RData s.RData
> > "first" "second"
> >
> > (on second thoughts, possibly 'loadFrom' is a better name)
> That's a nice little function. You
p TIBCO Software wdunlap tibco.com
But it does already... I assume you mean it should say *more*
than now. I'm open for adding a bit more and thankful for
wording suggestions (off line probably).
Martin Maechler,
ETH Zurich
> On Mon, Aug 25, 2014 at 5:00 AM, Dario Strbenac
>
hole computations are done very efficiently using the
Matrix - underlying C libraries.
I'm interested to hear more about your matrices.
To find their sparse, apply
nnzeros( M )
and possibly
nnzeros(zapsmall( M ))
to your matrices M.
Also of interest here is
isSymmetric(D)
Martin Ma
> "PS" == PO SU
> on Tue, 9 Sep 2014 10:49:32 +0800 writes:
PS> Dear expeRts, I find it's terrible when i want to
PS> comment multi paragraph (e.g. a 30 lines function) , i
PS> have to comment each line with #, is there any good way
PS> to do that ? I invest
2) Would anybody know of more recent research on the subject?
(I quickly "googled around" and found research more geared
for the time series situation which is more involved anyway)
--> Hence CC'ing the experts' list R-SIG-robust
Martin Maechler, ETH Zurich
>>>>> Rolf Turner
>>>>> on Thu, 25 Sep 2014 11:44:38 +1200 writes:
> On 24/09/14 20:16, Martin Maechler wrote:
>> 1) has your proposal ever been provided in R? I'd be
>> happy to add it to the robustX
>> (http://cr
> dotnet sql
> on Sat, 25 Oct 2014 08:50:20 +1100 writes:
> Hi It looks like we have hit a bug in RCurl. The method
> getURL seems to be leaking memory. A simple test case to
> reproduce the bug is given here:
>> library(RCurl)
>> handle<-getCurlHandle()
>> ra
> peter dalgaard
> on Sun, 19 Oct 2014 21:26:39 +0200 writes:
>> On 19 Oct 2014, at 19:00 , Spencer Graves
wrote:
>>
>> On 10/19/2014 8:42 AM, peter dalgaard wrote:
On 19 Oct 2014, at 16:43 , Wagner Bonat wrote:
Dear,
I ha
>>>>> Berend Hasselman
>>>>> on Tue, 28 Oct 2014 11:38:29 +0100 writes:
> On 28-10-2014, at 11:05, Martin Maechler
wrote:
>> …...
>> Thank you, Peter, and Spencer.
>>
>> For a few years now,
etic()
to R
which does exactly do this:
Provide the distance matrix which is implicitly defined by a
hierarchical clustering.
Martin Maechler, ETH Zurich
> (or extract the distance matrix used to do the clustering
> if it is available) and then use multidimensional scaling
&
strongly agree that more \link's would be useful in general
and in particular for cophenetic. I'm happy to take suggestions,
notably if they already use Rd syntax ... ;-)
Martin
> On Tue, Oct 28, 2014 at 9:31 AM, Martin Maechler
> wrote:
>>>>>>> G
than in an ideal case to solve the situation.
Indeed, all the e-mails sent to @r-project.org have
to be resent by the original senders.
We are very sorry for this grave mishap.
Martin Maechler,
Statistics (subset) Mathematics (subset) ETH Zurich
> Regards
> Petr
_
ed to ‘match()’: the value to be returned in the case
when no match is found. Note that it is coerced to
‘integer’.
Value:
an integer vector of the same length as ‘v’. Can be used as a
‘factor’, e.g., in ‘split’, ‘tapply’, etc.
Author(s):
Christoph Buser and
Consequently, use R with the '--no-save' command line argument
(maybe also with '--no-restore').
ESS (Emacs Speaks Statistics) users can put
(custom-set-variables
'(inferior-R-args "--no-restore-history --no-save ")
)
into their ~/.emacs
{and I'd like to s
on how quickly the new Rmpfr version 0.5-7
gets published on CRAN], and update your Rmpfr package.
The problem is fixed in Rmpfr 0.5-7.
If you had CC'ed your e-mail to
maintainer("Rmpfr")
I would have heard of the problem earlier and almost surely
have fixed it earlier
>>>>> "PP" == PIKAL Petr
>>>>> on Thu, 27 Nov 2014 13:40:36 + writes:
PP> Hm
>> -Original Message-
>> From: Jeff Newmiller [mailto:jdnew...@dcn.davis.ca.us]
>> Sent: Wednesday, November 26, 2014 8:0
Thank you for all the thoughts about alleviating these problems,
both to us and the "newbies" (or otherwise e-mail clueless subscribers).
> Ranjan Maitra
> on Sun, 30 Nov 2014 20:37:22 -0600 writes:
> Following on Rich and Peter, is it practical for the list to put it at
the top
n:
- No header
- We replace in the footer the first of the 4 text lines
from
R-help@r-project.org mailing list
to
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
Martin Maechler, ETH Zurich (and R core team).
> On Mon, 1 Dec 2014 06:31:14 -0800 Jeff Newmiller
> Juli
> on Sat, 12 Sep 2015 02:32:39 -0700 writes:
> Hi Jim, thank you for your help. :)
> My point is, that there are outlier and I don´t really
> know how to deal with that.
> I need the dataframe for a regression and read often that
> only a few outlier
> Hadley Wickham
> on Sun, 20 Sep 2015 14:23:43 -0400 writes:
> The problem is that within.data.frame calls as.list.environment with
> the default value of all.names = FALSE. I doubt this is a deliberate
> feature, and is more likely to be a minor oversight.
Indeed;
Thank
Dear Ben,
> Benjamin Tyner
> on Thu, 24 Sep 2015 13:47:58 -0400 writes:
> Hi I have some code which does (on a symmetric matrix 'x')
> backsolve(chol(x), diag(nrow(x)))
> and I am wondering what is the recommended way to
> accomplish this when x is also sparse (
> Loris Bennett
> on Thu, 8 Oct 2015 12:07:20 +0200 writes:
> Dear Luca, Luca Cerone writes:
>> Dear Loris and Wolfgang, thanks a lot for the help!
>>
>> I wasn't aware of the module project. I'd rather use the
>> "official" way of having co-existent R versions
and minute) hands, and I think I
have only ever seen 12 h watches at least on church towers (yes,
here in CH) or wrist watches...
(?)
Martin
(Maechler, ETH Zurich, Switzerland)
> On Tue, Nov 3, 2015 at 2:52 PM, Bert Gunter
wrote:
>> Hint: 24 hours = 24x60 = 1440 minutes = 2
> Pascal Oettli via R-help
> on Mon, 9 Nov 2015 14:18:37 +0900 writes:
> Dear Tom,
> Running R 3.2.2 on Ubuntu 15.04, if I run dev.list(), I get NULL.
Yes, indeed with all "regular" / "default" versions of R.
I you don't get that, you must have set something user-specific,
o
> Bert Gunter
> on Mon, 16 Nov 2015 08:21:09 -0800 writes:
> Thanks Duncan. You are right; I missed this.
> Namespaces and full qualification seems the only reliable solution to
> the general issue though -- right?
Not in this case; full qualification is very very rarel
hings up, the lsfit() function may work
> better for you.
> Bill Dunlap
> TIBCO Software
> wdunlap tibco.com
or even faster is the extra-simple but fast .lm.fit() function
(in R >= 3.1.0).
I've written a small demo about it and published it here,
http://rpu
about length-0
expressions in stopifnot().
Indeed, in the past, I had thought of "improving" stopifnot()
by giving a warning or even stop() for logical(0) expressions,
but I quickly dismissed that idea after some experiments.
My conclusion: Breaking such a fundamental lemma of logic
>>>>> Hadley Wickham
>>>>> on Sat, 12 Dec 2015 08:08:54 -0600 writes:
> On Sat, Dec 12, 2015 at 3:54 AM, Martin Maechler
> wrote:
>>>>>>> Henrik Bengtsson on
>>>>>>> Fri, 11 Dec 2015 08:20:55 -
>>>>> "DM" == Duncan Murdoch
>>>>> on Sat, 12 Dec 2015 09:05:04 -0500 writes:
DM> On 12/12/2015 8:44 AM, peter dalgaard wrote:
>>
>>> On 12 Dec 2015, at 10:54 , Martin Maechler
>>> wrote:
>>>
[]
> You are missing the closing bracket on the boxplot()
> command. Just finish with a ')'
Hmm... I once learned
'()' =: parenthesis/es
'[]' =: bracket(s)
'{}' =: brace(s)
Of course, I'm not a native English speaker, and my teacher(s) /
teaching material m
(x, file, opts))
Ideally the above code would be replaced by simply
.Internal(dput(x, file, opts))
and the C code called in do_dput() in
https://svn.r-project.org/R/trunk/src/main/deparse.c
would be improved to do the above in C and be properly
recursive.
(Tested) patches are very welc
D.2 D.3 M.1 M.2 M.3 M.4
1 1 0 0 1 4 7 10
2 0 1 0 2 5 8 11
3 0 0 1 3 6 9 12
and that would be quite inefficient for large sparse matrices.
-
Final recommendation as a summary:
If data.frame(.., .., ..) does not work to put entries into a
data f
e team
are much happier to have a generic
https://cloud.r-project.org as "default CRAN mirror".
Martin Maechler
(as 'Secreatry General' of the R Foundation)
> On Fri, 15 Jan 2016 22:42:41 -0600 Yihui Xie
> wrote:
>> Please do not use http://r-f
p
mailing lsit and ask you to use 'reply to all' such that the
topic is kept and dealt with on R-help.
I hope you'll enjoy working with the Rmpfr R package,
with best regards,
Martin Maechler
ETH Zurich
__
R-help@r-project.org mailing li
> David Winsemius
> on Mon, 25 Jan 2016 18:13:59 -0800 writes:
>> On Jan 24, 2016, at 10:45 PM, Olivier Crouzet
>> wrote:
>>
>> Hi, I think this page will help,
>>
>> https://stat.ethz.ch/R-manual/R-devel/library/base/html/lower.tri.html
> I agree that
n order to get the variability of random starts.
.. more feature requests are welcome!
Martin Maechler,
ETH Zurich == maintainer("cluster")
> If not, then the original
> order of the data determines the final result, but the
> final result is not necessarily
ample(silhouette)
where the silhouettes of pam(ruspini, k = k') , k' = 2,..,6
are displayed, or if you directly look at
plot( silhouette(ruspini, k = 6) )
you will notice that pam() itself can easily lead to negative
silhouette values.
Martin Maechler [ == maintainer
>>>>> Martin Maechler
>>>>> on Mon, 22 Feb 2016 16:48:39 +0100 writes:
>>>>> Sarah Goslee
>>>>> on Fri, 19 Feb 2016 15:22:22 -0500 writes:
>> Ah, my guess about the confusion was wrong, then. You're
er using
rngR = TRUE and more than one (random) run so you get a feeling
about the influence of the random sample at start.
In addition, from the several runs, you could keep the best one.
Martin
> Best,
> Behnam
> On Mon, Feb 22, 2016 at 8:09 AM -0800, "Martin
/2)
[1] 5 NA 1 1 2 2 3 3 4 4 5
4) A fix for this bug has been committed to R-devel already, a
a minute ago. [svn rev 70239]
Martin Maechler,
ETH Zurich
> Bert Gunter
> "The trouble with having an open mind is that people keep
> coming along an
om previous
> versions of R. These mirrors I can reach.
> I assume I have some local, probably firewall-related
> problem,
yes. I assume other may help you *if* give a bit more
information than just your version of R.
> but can someone confirm that the HTTPS mirror
> Janmaat, John
> on Tue, 1 Mar 2016 04:53:43 + writes:
> Well, seem to have solved own problem.
> The article "Enjoy the joy of copulas: with a package copula" has a nice
appendix that describes precisely how to set up what I am looking for. The
only minor issue is tha
ould learn to
distinguish between R and Rstudio+R ( or ESS+R or StatET+R ).
The more sophisticated these GUIs become, the more often we have
to make this distinction, unfortunately, as the price for
sophistication unfortunately is typically paid by more bugs.
This is not just the case for R
> Duncan Murdoch
> on Sat, 19 Mar 2016 17:57:56 -0400 writes:
> On 19/03/2016 12:45 PM, Boris Steipe wrote:
>> Dear all -
>>
>> I need to have a function maintain a persistent lookup table of results
for an expensive calculation, a named vector or hash. I know that I
etattr to modify the
> dimensions in place (i.e., without making a copy). Risk: if you modify
> an object by reference, all other objects which point to the same memory
> address will be modified silently, too.
Martin Maechler, ETH Zurich (and R-core)
> HTH,
>
> Roy Mendelssohn <- NOAA Federal >
> on Tue, 22 Mar 2016 07:42:10 -0700 writes:
> Hi All:
> I am running prcomp on a very large array, roughly [50, 3650]. The
array itself is 16GB. I am running on a Unix machine and am running “top” at
the same time and am quite surpri
umns of a numeric matrix and solve the xlim/ylim problem for you.
As the above R code is not reproducible (we do not have your 'ext'),
I have not tried if your use of "rownames"/"colnames" is easily
portable to matplot. If not (which I doubt), just take
matplot()
-not-submitted paper
available as one of the Rmpfr vignettes at
https://cloud.r-project.org/web/packages/Rmpfr/vignettes/log1mexp-note.pdf
BTW: There are at least 3-4 R packages which deal with zero-inflated
poisson in some ways, notably the recommended 'mgcv'
package which c
>>>>> Dénes Tóth
>>>>> on Tue, 22 Mar 2016 10:55:58 +0100 writes:
> Hi Martin,
> On 03/22/2016 10:20 AM, Martin Maechler wrote:
>>>>>>> >>>>>Dénes Tóth
>>>>>>> >>>>&
, though it's a pity for us! ---
but you can, Liviu!
So, and as you see at every startup of R :
"R is a collaborative project with many contributors."
I'm willing to try "good-looking" patches.
(to the *sources*, *NOT* to a printout of the function in your R con
t;robustbase")
require("robustbase")
fm <- lmrob(Post ~ pre +IV1 + IV2, setting = "KS2014",
data=yourdataframe)
where recent research lead to the recommendation of setting="KS2014",
which indeed maybe relevant for "ANCOVA".
Martin Mae
nd 'glm' methods are hidden.
Of course I do recommend reading the real R source code (which
also contains the comments and has some logical order in all the
function definitions),
but you can use stats ::: influence.lm
to show a version of the f
Please use R 3.2.4 or newer, notably for dummy.coef() which was
improved (made more generally working) for R 3.2.4, notably
thanks to my colleague Werner Stahel.
Best regards,
Martin
--
Martin Maechler, ETH Zurich
> Yes, I can reconstruct these from the original fit, but I
>
u want,
as(sparseMatrix(.), "RsparseMatrix")
should give you what you want reliably and efficiently.
> Am I doing some wrong here? Or is this what means that the package is
> optimized for the column-oriented representation and I shouldn't
> really work with
> Dalthorp, Daniel
> on Thu, 28 Apr 2016 16:41:28 -0700 writes:
> I've written a fairly elaborate package (called "eoa")
> that relies on functions from several other packages. I've
> built the package into a zip file on Windows using
> Hadley's devtools::build(binary
> Mike Smith
> on Sun, 1 May 2016 08:15:44 +0100 writes:
On Apr 30, 2016, at 12:58 PM, Mike Smith
wrote: Hi
First post and a relative R newbie
I am using the vioplot library to produce some violin
plots.
DW> It's a package,
g
> and sticking things into it."
> -- Opus (aka Berkeley Breathed in his "Bloom County" comic strip )
> On Mon, May 2, 2016 at 1:49 AM, Martin Maechler
> wrote:
>>>>>>> Mike Smith
>>>>>>> on
t and there are many packages available ..
Googling about R problems often does not lead to the best
solutions.
In this case do
?plotmath
and see that you do *NOT* need to install any extra packages.
You do have 29 R packages installed with your R installation,
you already have several 1000s R fu
t;, contains="numeric")
> N <- Num(1:10)
> N
An object of class "Num"
[1] 1 2 3 4 5 6 7 8 9 10
> if(class(N) == "numeric") "yes" else "no"
[1] "no"
>
I hope that many of the
gt;
> I think you can simply this. just create a function (I'll call it begs)
> to compute the beginning positions.
>
> begs <- function(x) c(0,x[-length(x)])+1
>
> Then, then use that function in your call to str_sub
>
> str_sub(test_string,b
> Hi Sarah,
> yes, I followed your suggestion.
I doubt that you followed it correctly. Sarah's advise is
usually really very sound -- and your code below is *not* :
> If I do exactly what is in the example of the documentation:
> sink("C:/Temp/sink-examp.txt")
> i <- 1:10
> outer(i, i, "*")
> s
> > system-wide profile. Is this correct, or a misinformation?
Short executive summary to all the nice explanations and
examples (by the other Martin M) below:
Yes, this is misinformation.
You should *NOT* set R_HOME in a (system wide / user) profile.
Martin Maechler
> Bob O'Hara
> on Thu, 13 Oct 2016 11:55:04 +0200 writes:
> Yes, thanks. That seems to be it:
> thing <- c("M1", "M2", "M.1", "M.2")
>> sort(thing)
> [1] "M1" "M.1" "M2" "M.2"
which I do find strange, indeed, given your sessionInfo which
contains
LC_COLLATE=e
101 - 200 of 837 matches
Mail list logo