Published
Edited
Oct 26, 2021
1 fork
Importers
1 star
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
ref_words = parser(ref)
Insert cell
refF = counter(word_indices, ref_words)
Insert cell
comp_words = parser(comp)
Insert cell
compF = counter(word_indices, comp_words)
Insert cell
word_indices = Object.fromEntries(words.map((d, i) => [d, i]))
Insert cell
lens = labMT.map(d => +d.happs)
Insert cell
words = labMT.map(d => d.word)
Insert cell
Insert cell
// import { labMT, shifterator, d3 } from "@andyreagan/d3-shifterator-v4"
import { labMT } from "@andyreagan/d3-shifterator-v4-preloaded"
Insert cell
import { wordshift }
with { lens as lens, words as words, refF as refF, compF as compF }
from "@andyreagan/d3-shifterator-v4"
Insert cell
import { parser, counter } from "@andyreagan/count-words"
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more