tabulate using tabyl by grouping variable using group_split and group_map

To get a quick frequency (tabulate) of one column or multiple columns at the one time I use tabyl function like so: library(janitor) library(tidyverse) #tabulate one column at a time iris %>% tabyl(Petal.Width) #tabulate multiple columns at once using map iris %>% select(Petal.Width, Petal.Length) %>% map(tabyl) I’m trying to replicate these two cases but have…

Discover more

Elastic Search – is there a way to force documents in results that may match “must_not” criteria?

We run a very large data set of articles. We do our searches based on certain keyword, filters, ranges etc. Our queries contain the MUST/SHOULD/MUST_NOT/FILTER structure. We need to be able to force certain results to show that would otherwise match MUST_NOT criteria. Is there a way to force document ids into the query that…

Discover more

Javascript extract subarray from 2D array using spreadsheet range A1 notation – [Google Apps Script]

Among many Google Apps Script best practices, as for script performance improvement, it is recommended to minimise calls to other services: Using JavaScript operations within your script is considerably faster than calling other services. Anything you can accomplish within Google Apps Script itself will be much faster than making calls that need to fetch data…

Discover more