search for: coolbutuseless

Displaying 14 results from an estimated 14 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...
2025 Jan 11
1
Package compression benchmarks for zstd vs gzip
zstd is accessible within R using the archive package [1]. I use it all the time when saving large objects, using code I adapted from [2]. Is your suggestion to import the libraries/source code into base? [1] https://CRAN.R-project.org/package=archive [2] https://coolbutuseless.github.io/2018/10/02/using-lz4-and-zstandard-to-compress-files-with-saverds/ On Fri, Jan 10, 2025 at 6:17?PM Jeroen Ooms <jeroenooms at gmail.com> wrote: > > Many distros and browsers these days use zstd as the preferred > compression method. For example if you unpack a .deb or .rpm...
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...
2025 Jan 12
1
Package compression benchmarks for zstd vs gzip
...ble system 'libzstd'. Spams personal email addresses of team members. X-CRAN-History: Removed on 2024-03-13 for policy violation and misrepresentation of copyright holder(s). . Does not even attempt to use system 'libzstd'. Back on CRAN on 2024-03-17. [1] https://github.com/coolbutuseless/zstdlite /Henrik On Sat, Jan 11, 2025 at 3:41?PM Avraham Adler <avraham.adler at gmail.com> wrote: > > zstd is accessible within R using the archive package [1]. I use it > all the time when saving large objects, using code I adapted from [2]. > Is your suggestion to import the...
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 > >>...
2025 Jan 10
2
Package compression benchmarks for zstd vs gzip
Many distros and browsers these days use zstd as the preferred compression method. For example if you unpack a .deb or .rpm file on Debian or Fedora there is zstd archive inside. It is claimed that zstd offers improved compression over gzip, but (unlike lzma) it has comparable decompression speed. Maybe it is interesting to get an estimate of how much R packages would benefit from zstd. Testing