openrefine


enumerate the values of a range in google refine / openrefine


I have an OpenRefine column with a sequence of identifiers. Some are single integers (22, 27) and some represent a range (28-33, 10023-10110). I'm looking for a way to make each number in that range explicit, so I can then make each value its own row.
Here's the basic technique:
Split the range identifiers into two columns: Id1 and Id2.
Create a new column based on Id2 with this expression
forRange(cells.Id1.value,cells.Id2.value+1,1,x,x).join(",")
Then click "Edits Cells" on the new column and pick "Split multi-valued
cells". This will create new rows for the range.
if you want to populate the data for the new rows click "Edit Cells" and "Fill
Down" on each of the data columns.

Related Links

Openrefine: cross.cell for similar but not identical values
OpenRefine changing the port and host when executable is run directly
How can I join two datasets using a key in OpenRefine, with the secondary table having more than one value?
Open Refine: Open Project Issue
Progressive number in Openrefine column
Lost all my files on Openrefine [closed]
freebaseapps reconciliation stuck in Open Refine 2.6
OpenRefine - add sequence number, reset for each record
How to transpose cell data by section in Open Refine?
OpenRefine columnwise scripting
Remove content inside parentheses
Extra blank space between words
forNonBlank function in OpenRefine
Import columns to existing OpenRefine project
Bulk replace text in all columns
Split multi valued cells in more than one column into rows (Open Refine)

Categories

HOME
listview
proxy
omnet++
openstack
reflection
server
mediawiki
syntax
mean-stack
read-eval-print-loop
tizen-web-app
paradox
elasticsearch-hadoop
numeral.js
jplayer
task
dtrace
fortumo
hapi
normalizr
clickonce
blazemeter
windows-error-reporting
librato
bosh
http-referer
wpf-controls
android-ble
io-redirection
swift3.0.2
service-discovery
lumberjack
cookiecutter-django
unoconv
elmah
midl
turbogears
jlink
sqlbulkcopy
dynamics-sl
or-tools
time-and-attendance
url-pattern
nxt
heidisql
yaws
uid
separator
r-tree
marching-cubes
wireshark-dissector
embedded-code
muse
emailrelay
0xdbe
generic-programming
bridge.net
directoryservices
block-device
file-copying
onactivityresult
typeof
contenttype
doskey
poller
flexmojos
aqtime
dir
ora-00911
anonymous-methods
pvrtc
gil
cufon
whoosh
fireworks
mercurial-server
data-loss
file-comparison
radcombobox
subviews
gamequery
database-management
kdbg
lzh

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App