search for: pdalgd

Displaying 20 results from an estimated 1406 matches for "pdalgd".

2017 Sep 08
2
Optimize code to read text-file with digits
> On 8 Sep 2017, at 14:03 , peter dalgaard <pdalgd at gmail.com> wrote: > > x <- scan("~/Downloads/digits.txt") > x <- x[-seq(1,220000,11)] ...and, come to think of it, if you really want the 1000000 random digits: xx <- c(outer(x,10^(0:4), "%/%")) %% 10 -- Peter Dalgaard, Professor, Center for Statist...
2017 Aug 23
3
Getting all possible combinations
...t; > > Bert Gunter > > "The trouble with having an open mind is that people keep coming along > and sticking things into it." > -- Opus (aka Berkeley Breathed in his "Bloom County" comic strip ) > > > On Wed, Aug 23, 2017 at 3:14 PM, peter dalgaard <pdalgd at gmail.com> wrote: >> >>> On 23 Aug 2017, at 23:12 , Bert Gunter <bgunter.4567 at gmail.com> wrote: >>> >>>> This points to a different algorithm where you write 0:(2^n-1) as n-digit binary numbers and chose items corresponding to the 1s. That won'...
2017 May 16
3
stopifnot() does not stop at first non-TRUE argument
...acts 'i'-th argument in '...'. It is like eval(as.name(paste0("..", i))) . Just mentioning other things: - For 'n', n <- nargs() can be used. - sys.call() can be used in place of match.call() . --------------------------- >>>>> peter dalgaard <pdalgd at gmail.com> >>>>> on Mon, 15 May 2017 16:28:42 +0200 writes: > I think Herv?'s idea was just that if switch can evaluate arguments selectively, so can stopifnot(). But switch() is .Primitive, so does it from C. if he just meant that, then "yes, of course&q...
2016 Mar 10
3
rmultinom.c error probability not sum to 1
...oad("test.so") > .C("main") Prob_tot: 1.017084 Error: rbinom: probability sum should be 1, but is 0.948075 Maybe I miss some trivial C knowledge why this is not exactly one! Thanks in advance! Regards, Maarten ________________________________________ From: peter dalgaard [pdalgd at gmail.com] Sent: Thursday, March 10, 2016 1:26 PM To: Iterson, M. van (MOLEPI) Cc: r-devel at r-project.org Subject: Re: [Rd] rmultinom.c error probability not sum to 1 On 10 Mar 2016, at 12:47 , M.van_Iterson at lumc.nl wrote: > Dear all, > > I have a questions regarding using the c...
2017 Sep 08
1
Optimize code to read text-file with digits
> On 8 Sep 2017, at 15:51 , Martin M?ller Skarbiniks Pedersen <traxplayer at gmail.com> wrote: > > On 8 September 2017 at 14:37, peter dalgaard <pdalgd at gmail.com> wrote: >> >> >>> On 8 Sep 2017, at 14:03 , peter dalgaard <pdalgd at gmail.com> wrote: >>> >>> x <- scan("~/Downloads/digits.txt") >>> x <- x[-seq(1,220000,11)] >> >> ...and, come to think of it,...
2016 May 18
2
Latest R-devel build failing on OS X
...fig.site on that machine had LDFLAGS=-L/usr/X11R6/lib in config.site, and that prevented configure from inserting -L /usr/local/lib, so linked /usr/lib/libreadline.dylib, which is the Apple-supplied one, which possibly is really libedit... -p > On 18 May 2016, at 22:01 , peter dalgaard <pdalgd at gmail.com> wrote: > > gcc -L/usr/X11R6/lib -o R.bin Rmain.o CommandLineArgs.o Rdynload.o Renviron.o RNG.o agrep.o apply.o arithmetic.o array.o attrib.o bind.o builtin.o character.o coerce.o colors.o complex.o connections.o context.o cum.o dcf.o datetime.o debug.o deparse.o devices.o...
2015 Jul 19
1
Building r-devel fails on Ubuntu (old and new as well)
An updated tarball should be available in $CRAN/src/base/pre-release soon. (For CRAN=https://cran.r-project.org, immediately. Other mirrors need mirroring.) -pd > On 19 Jul 2015, at 10:01 , peter dalgaard <pdalgd at gmail.com> wrote: > > Looks like someone forgot to update the DISTFILES (specifically the HEADERS) in src/main/Makefile.in... > > -pd > >> On 19 Jul 2015, at 09:42 , Rainer Hurling <rhurlin at gwdg.de> wrote: >> >> Hmm, I'm a bit confused. Now we...
2017 Aug 24
0
Getting all possible combinations
...B" # #[[5]] #[1] "C" # requires this to sort: o <- order(sapply(l, length)) l[o] -- Peter Dalgaard, Professor, Center for Statistics, Copenhagen Business School Solbjerg Plads 3, 2000 Frederiksberg, Denmark Phone: (+45)38153501 Office: A 4.23 Email: pd.mes at cbs.dk Priv: PDalgd at gmail.com
2016 Aug 05
2
What happened to Ross Ihaka's proposal for a Common Lisp based R successor?
Why is the described system preferable to Julia? On Fri, Aug 5, 2016, 4:50 AM peter dalgaard <pdalgd at gmail.com> wrote: > > On 05 Aug 2016, at 06:41 , Andrew Judson <ajskim at gmail.com> wrote: > > > I read this paper > > <https://www.stat.auckland.ac.nz/~ihaka/downloads/Compstat-2008.pdf> and > > haven't been able to find out what happened - I have...
2019 Mar 19
2
Possibly broken system2 env-option
On Tue, Mar 19, 2019 at 9:59 AM peter dalgaard <pdalgd at gmail.com> wrote: [...] > What you need is something like (NB: single quotes!) > > system2("sh", env = c("VAR='Hello World'"), args = c("-c 'echo $VAR'")) > Hello World Just out of curiosity, do you think it is possible to make this p...
2020 Jun 07
1
use of the tcltk package crashes R 4.0.1 for Windows
...aphical interfaces with Tcl/Tk. "Support Files for Package tcltk" needs to be selected from the installer for this to work; alternatively you can use an existing installation of Tcl/Tk 8.6.x by following the instructions in the rw-FAQ. > On 7 Jun 2020, at 08:27 , peter dalgaard <pdalgd at gmail.com> wrote: > > Not happening on Mac, so likely a Windows build issue. > > (There's no 4.0.1 CRAN package yet, and no nightly build of 4.0.1 Patched, but the only thing changed in the sources since r78644 is the VERSION file.) > > -pd > >> On 7 Jun 202...
2017 Sep 08
0
Optimize code to read text-file with digits
On 8 September 2017 at 14:37, peter dalgaard <pdalgd at gmail.com> wrote: > > > > On 8 Sep 2017, at 14:03 , peter dalgaard <pdalgd at gmail.com> wrote: > > > > x <- scan("~/Downloads/digits.txt") > > x <- x[-seq(1,220000,11)] > > ...and, come to think of it, if you really want the 1000000 r...
2012 Nov 11
2
Djjlölkjhfyn kb noknkkkkokljjyikkk hyjjjjjkjjjjkjkkpooololåååååååååååååååääääkkuiivjkoööklopipållällnbbbn mml ömmmm
M P?opklpnlbyj?nvnmm M. ?plppkbkv??k? knbnnnnnn??????llp?????tx hikkkhgxxx vj jul?l Sent from my iPhonejukuj?b?mjl jnmnmmm Sorry for keeping things short Gustaf Granath (phd) Plant Ecology Uppsala University
2017 Jun 26
2
Odd behaviour in within.list() when deleting 2+ variables
>>>>> peter dalgaard <pdalgd at gmail.com> >>>>> on Mon, 26 Jun 2017 13:43:28 +0200 writes: > This seems to be due to changes made by Martin Maechler in > 2008. Presumably this fixed something, but it escapes my > memory. Yes: The change set (svn -c46441) also contains the following...
2015 May 09
2
R Language Definition: Subsetting matrices with negative indices is *not* an error
On Sat, May 9, 2015 at 12:55 AM, peter dalgaard <pdalgd at gmail.com> wrote: > >> On 09 May 2015, at 02:53 , Henrik Bengtsson <henrik.bengtsson at ucsf.edu> wrote: >> >> Hi, >> >> I spotted what looks like another(*) mistake in 'R Language >> Definition' on how subsetting should work. In Section &...
2016 Sep 20
2
Numerical accuracy of matrix multiplication
>>>>> peter dalgaard <pdalgd at gmail.com> >>>>> on Fri, 16 Sep 2016 13:33:11 +0200 writes: > On 16 Sep 2016, at 12:41 , Alexis Sarda <alexis.sarda at gmail.com> wrote: >> Hello, >> >> while testing the crossprod() function under Linux, I noticed the following...
2017 Aug 23
2
Getting all possible combinations
...ke this: > > No it doesn't. > -- Bert Doesn't what? Do what I say it won't?? -pd -- Peter Dalgaard, Professor, Center for Statistics, Copenhagen Business School Solbjerg Plads 3, 2000 Frederiksberg, Denmark Phone: (+45)38153501 Office: A 4.23 Email: pd.mes at cbs.dk Priv: PDalgd at gmail.com
2018 Apr 14
0
Fwd: Re: Reading xpt files into R
-------- Original Message ---------- From: WRAY NICHOLAS <nicholas.wray at ntlworld.com> To: peter dalgaard <pdalgd at gmail.com> Date: 14 April 2018 at 20:18 Subject: Re: [R] Reading xpt files into R Well yesterday I'd downloaded the "foreign" package and tried to open the xpt file using that: library(foreign) read.xport("test.xpt") I got the following error and warning messages:...
2017 May 15
3
stopifnot() does not stop at first non-TRUE argument
...; wrote: > > I'm still curious about Herv?'s idea on using switch() for the > issue. -- Peter Dalgaard, Professor, Center for Statistics, Copenhagen Business School Solbjerg Plads 3, 2000 Frederiksberg, Denmark Phone: (+45)38153501 Office: A 4.23 Email: pd.mes at cbs.dk Priv: PDalgd at gmail.com
2016 Aug 05
2
What happened to Ross Ihaka's proposal for a Common Lisp based R successor?
...was being actively worked on, it had the advantage of existing. > > Hadley > > On Fri, Aug 5, 2016 at 10:48 AM, Kenny Bell <kmbell56 at gmail.com> wrote: > > Why is the described system preferable to Julia? > > > > On Fri, Aug 5, 2016, 4:50 AM peter dalgaard <pdalgd at gmail.com> wrote: > > > >> > >> On 05 Aug 2016, at 06:41 , Andrew Judson <ajskim at gmail.com> wrote: > >> > >> > I read this paper > >> > <https://www.stat.auckland.ac.nz/~ihaka/downloads/Compstat-2008.pdf> > and > &g...