Displaying 20 results from an estimated 47 matches for "ccberry".
Did you mean:
cberry
2018 Jun 08
4
Subsetting the "ROW"s of an object
> On Jun 8, 2018, at 11:52 AM, Hadley Wickham <h.wickham at gmail.com> wrote:
>
> On Fri, Jun 8, 2018 at 11:38 AM, Berry, Charles <ccberry at ucsd.edu> wrote:
>>
>>
>>> On Jun 8, 2018, at 10:37 AM, Herv? Pag?s <hpages at fredhutch.org> wrote:
>>>
>>> Also the TRUEs cause problems if some dimensions are 0:
>>>
>>>> matrix(raw(0), nrow=5, ncol=0)[1:3 , TRUE]
>&g...
2018 Jan 04
3
silent recycling in logical indexing
...way is 8 times faster in the following case ...)
x <- rep(1,1e6)
rbenchmark::benchmark(x[c(FALSE,TRUE,FALSE)],x[seq_along(x) %% 3 == 2])
On the other hand, it takes 0.025 vs 0.003 seconds per iteration ...
fortunes::fortune("7ms")
On Thu, Jan 4, 2018 at 4:09 PM, Berry, Charles <ccberry at ucsd.edu> wrote:
>
>
>> On Jan 4, 2018, at 11:56 AM, Ben Bolker <bbolker at gmail.com> wrote:
>>
>>
>> Sorry if this has been covered here somewhere in the past, but ...
>>
>> Does anyone know why logical vectors are *silently* recycled, even...
2017 Dec 12
0
Gaussian Process Classification R packages
...(I don't see anything wrong with this word) to find a
>solution in R. Replies like "Google it!" are below my level of my
>communication and understanding of others.
>
>
>Best wishes
>
>DK
>
>
>________________________________
>From: Berry, Charles <ccberry at ucsd.edu<mailto:ccberry at ucsd.edu>>
>Sent: 11 December 2017 17:04
>To: Damjan Krstajic
>Cc: Bert Gunter; r-help at r-project.org<mailto:r-help at r-project.org>
>Subject: Re: Gaussian Process Classification R packages
>
>
>> On Dec 11, 2017, at 8:06 AM, D...
2018 Jun 08
2
Subsetting the "ROW"s of an object
I suspect this will have suboptimal performance since the TRUEs will
get recycled. (Maybe there is, or could be, ALTREP, support for
recycling)
Hadley
On Fri, Jun 8, 2018 at 10:16 AM, Berry, Charles <ccberry at ucsd.edu> wrote:
>
>
>> On Jun 8, 2018, at 8:45 AM, Hadley Wickham <h.wickham at gmail.com> wrote:
>>
>> Hi all,
>>
>> Is there a better to way to subset the ROWs (in the sense of NROW) of
>> an vector, matrix, data frame or array than this?
>...
2018 Jun 08
3
Subsetting the "ROW"s of an object
> On Jun 8, 2018, at 1:49 PM, Hadley Wickham <h.wickham at gmail.com> wrote:
>
> Hmmm, yes, there must be some special case in the C code to avoid
> recycling a length-1 logical vector:
Here is a version that (I think) handles Herve's issue of arrays having one or more 0 dimensions.
subset_ROW <-
function(x,i)
{
dims <- dim(x)
index_list <-
2018 Jun 08
3
Subsetting the "ROW"s of an object
...OW4(arr,seq(1,length=10,by=100),TRUE))
and with
system.time(for (i in 1:10000) subset_ROW4(arr,seq(1,length=10,by=100),FALSE))
Changing the dimensions to c(2^5, 2^7, 4, 4 ) and running something similar also shows equal times.
Chuck
>> On Fri, Jun 8, 2018 at 10:16 AM, Berry, Charles <ccberry at ucsd.edu> wrote:
>>>
>>>
>>>> On Jun 8, 2018, at 8:45 AM, Hadley Wickham <h.wickham at gmail.com> wrote:
>>>>
>>>> Hi all,
>>>>
>>>> Is there a better to way to subset the ROWs (in the sense of NROW) of
&g...
2017 Dec 12
2
Gaussian Process Classification R packages
...d a
> >solution in R. Replies like "Google it!" are below my level of my
> >communication and understanding of others.
> >
> >
> >Best wishes
> >
> >DK
> >
> >
> >________________________________
> >From: Berry, Charles <ccberry at ucsd.edu>
> >Sent: 11 December 2017 17:04
> >To: Damjan Krstajic
> >Cc: Bert Gunter; r-help at r-project.org
> >Subject: Re: Gaussian Process Classification R packages
> >
> >
> >> On Dec 11, 2017, at 8:06 AM, Damjan Krstajic <dkrstajic at hotma...
2018 Jun 08
0
Subsetting the "ROW"s of an object
...min mean max
#> <chr> <bch:tm> <bch:tm> <bch:tm>
#> 1 arr[i, TRUE, TRUE, TRUE] 41.8ms 43.6ms 46.5ms
#> 2 arr[i, , , ] 41.7ms 43.1ms 46.3ms
On Fri, Jun 8, 2018 at 12:31 PM, Berry, Charles <ccberry at ucsd.edu> wrote:
>
>
>> On Jun 8, 2018, at 11:52 AM, Hadley Wickham <h.wickham at gmail.com> wrote:
>>
>> On Fri, Jun 8, 2018 at 11:38 AM, Berry, Charles <ccberry at ucsd.edu> wrote:
>>>
>>>
>>>> On Jun 8, 2018, at 10:37 AM, He...
2015 Dec 11
1
How do I reliably and efficiently hash a function?
In addition to what Charles wrote, you can also use 'local' if you don't
want a function that creates another function.
> f <- local({info <- 10; function(x) x + info})
> f(3)
[1] 13
best,
Mark
Op vr 11 dec. 2015 om 03:27 schreef Charles C. Berry <ccberry at ucsd.edu>:
> On Thu, 10 Dec 2015, Konrad Rudolph wrote:
>
> > I?ve got the following scenario: I need to store information about an
> > R function, and retrieve it at a later point. In other programming
> > languages I?d implement this using a dictionary with the func...
2017 Dec 11
2
Gaussian Process Classification R packages
...cade and contact r-help when I am struggling (I don't see anything wrong with this word) to find a solution in R. Replies like "Google it!" are below my level of my communication and understanding of others.
Best wishes
DK
________________________________
From: Berry, Charles <ccberry at ucsd.edu>
Sent: 11 December 2017 17:04
To: Damjan Krstajic
Cc: Bert Gunter; r-help at r-project.org
Subject: Re: Gaussian Process Classification R packages
> On Dec 11, 2017, at 8:06 AM, Damjan Krstajic <dkrstajic at hotmail.com> wrote:
>
> I have kindly asked for help and I...
2013 May 03
2
how to parallelize 'apply' across multiple cores on a Mac
Hi everyone,
I'm trying to use apply (with a call to zoo's rollapply within) on the
columns of a 1.5Kx165K matrix, and I'd like to make use of the other cores
on my machine to speed it up. (And hopefully also leave more memory free: I
find that after I create a big object like this, I have to save my
workspace and then close and reopen R to be able to recover memory tied up
by R, but
2017 Dec 11
0
Gaussian Process Classification R packages
...(I don't see anything wrong with this word) to find a
>solution in R. Replies like "Google it!" are below my level of my
>communication and understanding of others.
>
>
>Best wishes
>
>DK
>
>
>________________________________
>From: Berry, Charles <ccberry at ucsd.edu>
>Sent: 11 December 2017 17:04
>To: Damjan Krstajic
>Cc: Bert Gunter; r-help at r-project.org
>Subject: Re: Gaussian Process Classification R packages
>
>
>> On Dec 11, 2017, at 8:06 AM, Damjan Krstajic <dkrstajic at hotmail.com>
>wrote:
>>
>...
2019 Jun 07
2
[R] Open a file which name contains a tilde
> On Jun 6, 2019, at 2:04 PM, Richard O'Keefe <raoknz at gmail.com> wrote:
>
> How can expanding tildes anywhere but the beginning of a file name NOT be
> considered a bug?
>
>
I think that that IS what libreadline is doing if one allows a whitespace separated list of file names.
As reported in R-help,
https://www.mail-archive.com/r-help at
2018 Jun 08
0
Subsetting the "ROW"s of an object
...cript too long
H.
On 06/08/2018 10:29 AM, Hadley Wickham wrote:
> I suspect this will have suboptimal performance since the TRUEs will
> get recycled. (Maybe there is, or could be, ALTREP, support for
> recycling)
> Hadley
>
> On Fri, Jun 8, 2018 at 10:16 AM, Berry, Charles <ccberry at ucsd.edu> wrote:
>>
>>
>>> On Jun 8, 2018, at 8:45 AM, Hadley Wickham <h.wickham at gmail.com> wrote:
>>>
>>> Hi all,
>>>
>>> Is there a better to way to subset the ROWs (in the sense of NROW) of
>>> an vector, matrix, da...
2018 Jun 08
0
Subsetting the "ROW"s of an object
On Fri, Jun 8, 2018 at 11:38 AM, Berry, Charles <ccberry at ucsd.edu> wrote:
>
>
>> On Jun 8, 2018, at 10:37 AM, Herv? Pag?s <hpages at fredhutch.org> wrote:
>>
>> Also the TRUEs cause problems if some dimensions are 0:
>>
>> > matrix(raw(0), nrow=5, ncol=0)[1:3 , TRUE]
>> Error in matrix(raw(0), nr...
2018 Jun 08
0
Subsetting the "ROW"s of an object
On Fri, Jun 8, 2018 at 2:09 PM, Berry, Charles <ccberry at ucsd.edu> wrote:
>
>
>> On Jun 8, 2018, at 1:49 PM, Hadley Wickham <h.wickham at gmail.com> wrote:
>>
>> Hmmm, yes, there must be some special case in the C code to avoid
>> recycling a length-1 logical vector:
>
>
> Here is a version that (I think...
2018 Aug 04
2
Puzzle or bug with matrix indexing
I'm not sure why this is happening:
tmp <- data.frame(
a = letters[1:2],
b=c(TRUE, FALSE),
stringsAsFactors = FALSE
)
idx <- matrix(c(1, 2, 2, 2), 2, byrow = TRUE)
tmp[idx]
[1] " TRUE" "FALSE"
Notice there is a space before the TRUE: " TRUE".
This space isn't happening purely because of coercion:
c("blah", TRUE, FALSE)
[1]
2011 Dec 12
1
k-folds cross validation with conditional logistic
--begin inclusion --
I have a matched-case control dataset that I'm using conditional
logistic regression (clogit in survival) to analyze. I'm trying to
conduct k-folds cross validation on my top models but all of the
packages I can find (CVbinary in DAAG, KVX) won't work with clogit
models. Is there any easy way to do this in R?
-end inclusion --
The clogit funciton is simply a
2017 Nov 23
0
libPaths displays truncated path?
> On Nov 23, 2017, at 4:34 AM, Loris Bennett <loris.bennett at fu-berlin.de> wrote:
>
> Hi,
>
> TL;DR
> -----
>
> I define the path
>
> /cm/shared/apps/R/site-library/3.4.2
>
> and add it to libPath. Why does libPath then display it as
>
> /cm/shared/apps/R/site-library/3.4
>
> ?
>
Because it is a symbolic link.
2018 May 28
0
to R Core T: mle function in 32bits not respecting the constrain
> On May 27, 2018, at 10:31 PM, francesc badia roca <fbr600 at gmail.com> wrote:
>
> I have an issue using mle in versions of 32 bits.
>
> I am writing a package which I want to submit to the CRAN.
> When doing the check, there is an example that has an error running in the
> 32 bits version.
>
> The problem comes from the mle function, using it with a lower