search for: coolbutuseless

Displaying 11 results from an estimated 11 matches for "coolbutuseless".

2019 Oct 11
7
New matrix function
...ng link: https://www.mathworks.com/matlabcentral/answers/194708-index-a-small-matrix-in-a-larger-matrix I couldn't find anything. The above function can be seen as a "generalisation" of the "which" function as well as the function described in the following post: https://coolbutuseless.github.io/2018/04/03/finding-a-length-n-needle-in-a-haystack/ Would be possible to add such a function to base R? I am happy to work with someone from the R core team (if you wish) and suggest an implementation in C. Thank you Best regards, Morgan [[alternative HTML version deleted]]
2019 Oct 11
3
New matrix function
...-small-matrix-in-a-larger-matrix > > > > I couldn't find anything. > > > > The above function can be seen as a "generalisation" of the "which" > > function as well as the function described in the following post: > > > > > https://coolbutuseless.github.io/2018/04/03/finding-a-length-n-needle-in-a-haystack/ > > > > Would be possible to add such a function to base R? > > > > I am happy to work with someone from the R core team (if you wish) and > > suggest an implementation in C. > > That seems like it wou...
2020 Aug 26
1
NAs and rle
Hi All, A twitter user, Mike fc (@coolbutuseless) mentioned today that he was surprised that repeated NAs weren't treated as a run by the rle function. Now I know why they are not. NAs represent values which could be the same or different from eachother if they were known, so from a purely conceptual standpoint there is no way to tell whethe...
2019 Oct 11
1
New matrix function
...dex-a-small-matrix-in-a-larger-matrix > > > > I couldn't find anything. > > > > The above function can be seen as a "generalisation" of the "which" > > function as well as the function described in the following post: > > > > https://coolbutuseless.github.io/2018/04/03/finding-a-length-n-needle-in-a-haystack/ > > > > Would be possible to add such a function to base R? > > > > I am happy to work with someone from the R core team (if you wish) and > > suggest an implementation in C. > > > > Thank you &g...
2019 Oct 11
4
New matrix function
...39;t find anything. >> > > >> > > The above function can be seen as a "generalisation" of the "which" >> > > function as well as the function described in the following post: >> > > >> > > >> > >> https://coolbutuseless.github.io/2018/04/03/finding-a-length-n-needle-in-a-haystack/ >> > > >> > > Would be possible to add such a function to base R? >> > > >> > > I am happy to work with someone from the R core team (if you wish) and >> > > suggest an implemen...
2018 Sep 24
3
Fwd: Bug report: cbind with numeric and raw gives incorrect result
Hi there, using cbind with a numeric and raw argument produces an incorrect result. I've posted some details below, kind regards, Mike. e.g. > cbind(0, as.raw(0)) [,1] [,2] [1,] 0 6.950136e-310 A longer example shows that the result is not a rounding error, is not consistent, and repeated applications get different results. > cbind(0, as.raw(1:10))
2018 Sep 25
1
Fwd: Bug report: cbind with numeric and raw gives incorrect result
...t; + MOD_ITERATE1(idx, k, i, i1, { > + REAL(result)[n++] = (unsigned char) RAW(u)[i1]; > + }); > } > } > } > > > > > > > On Tuesday, September 25, 2018, 7:58:31 AM EDT, mikefc < > mikefc at coolbutuseless.com> wrote: > > > > > > Hi there, > > using cbind with a numeric and raw argument produces an incorrect result. > > I've posted some details below, > > kind regards, > Mike. > > > > e.g. > > cbind(0, as.raw(0)) > [,1] [...
2019 Oct 11
0
New matrix function
...t; > > > I couldn't find anything. > > > > > > The above function can be seen as a "generalisation" of the "which" > > > function as well as the function described in the following post: > > > > > > > > > https://coolbutuseless.github.io/2018/04/03/finding-a-length-n-needle-in-a-haystack/ > > > > > > Would be possible to add such a function to base R? > > > > > > I am happy to work with someone from the R core team (if you wish) and > > > suggest an implementation in C. > &g...
2019 Oct 11
0
New matrix function
...com/matlabcentral/answers/194708-index-a-small-matrix-in-a-larger-matrix > > I couldn't find anything. > > The above function can be seen as a "generalisation" of the "which" > function as well as the function described in the following post: > > https://coolbutuseless.github.io/2018/04/03/finding-a-length-n-needle-in-a-haystack/ > > Would be possible to add such a function to base R? > > I am happy to work with someone from the R core team (if you wish) and > suggest an implementation in C. > > Thank you > Best regards, > Morgan > &...
2018 Sep 25
0
Fwd: Bug report: cbind with numeric and raw gives incorrect result
...?? ??? ?}); +?? ??? ???? } else { +?? ??? ??? ?R_xlen_t i, i1; +?? ??? ??? ?MOD_ITERATE1(idx, k, i, i1, { +?? ??? ??? ???? REAL(result)[n++] = (unsigned char) RAW(u)[i1]; +?? ??? ??? ?}); ??? ??? ???? } ??? ??? ?} ??? ???? } On Tuesday, September 25, 2018, 7:58:31 AM EDT, mikefc <mikefc at coolbutuseless.com> wrote: Hi there, using cbind with a numeric and raw argument produces an incorrect result. I've posted some details below, kind regards, Mike. e.g. > cbind(0, as.raw(0)) ? ? [,1]? ? ? ? ? [,2] [1,]? ? 0 6.950136e-310 A longer example shows that the result is not a roun...
2019 Oct 11
0
New matrix function
...gt; > >> > > The above function can be seen as a "generalisation" of the "which" > >> > > function as well as the function described in the following post: > >> > > > >> > > > >> > > >> > https://coolbutuseless.github.io/2018/04/03/finding-a-length-n-needle-in-a-haystack/ > >> > > > >> > > Would be possible to add such a function to base R? > >> > > > >> > > I am happy to work with someone from the R core team (if you wish) > and > >>...