On Mon, Dec 7, 2020 at 9:09 AM Gabor Grothendieck
<[email protected]> wrote:
>
> On Sat, Dec 5, 2020 at 1:19 PM <[email protected]> wrote:
> > Let's get some experience
>
> Here is my last SO post using dplyr rewritten to use R 4.1 devel.  Seems

It occurred to me it would also be interesting to show this example
rewritten using John Mount's bizarro pipe
(which is clever use of syntax to get the effect of a pipe) with the
new \(x) ...
This can be done entirely in base R 4.1.  It does not use \>, just \(x)...

  "myfile.csv" ->.;
    readLines(.) ->.;
    gsub(r'{(c\(.*?\)|integer\(0\))}', r'{"\1"}', .) ->.;
    read.csv(text = .) ->.;
    replace(., 2:3, lapply(.[2:3], \(col) lapply(col, \(x)
eval(parse(text = x))))) ->.;
    . -> DF

______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel

Reply via email to