{"id":2459,"date":"2022-06-23T03:05:44","date_gmt":"2022-06-23T02:05:44","guid":{"rendered":"https:\/\/www.microdata.no\/?p=2459"},"modified":"2022-06-23T08:51:25","modified_gmt":"2022-06-23T07:51:25","slug":"new-recode-tool","status":"publish","type":"post","link":"https:\/\/www.microdata.no\/en\/new-recode-tool\/","title":{"rendered":"New recode tool"},"content":{"rendered":"\n<p><strong>Microdata.no now has a new tool that simplifies larger recode operations.<\/strong><\/p>\n\n\n\n<p>In microdata.no you can recode both numeric and alphanumeric variables. Users can freely define their own ranges and rules. <\/p>\n\n\n\n<p>In some situations it is useful to base recode rules on official classifications and\/or reuse well defined correspondence tables when recoding.<\/p>\n\n\n\n<p>In script-mode you can now use a new tool for recoding that allows you to upload correspondence tables in CSV-format, and that generates <code>recode<\/code>-expressions based upon the uploaded table. You then paste the generated expression into your script. <\/p>\n\n\n\n<p>The illustration below shows where to launch the CSV recode tool.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"495\" src=\"https:\/\/www.microdata.no\/wp-content\/uploads\/2022\/06\/Screenshot-2022-06-23-3.32.46-AM-1-1024x495.png\" alt=\"\" class=\"wp-image-2461\" srcset=\"https:\/\/www.microdata.no\/wp-content\/uploads\/2022\/06\/Screenshot-2022-06-23-3.32.46-AM-1-1024x495.png 1024w, https:\/\/www.microdata.no\/wp-content\/uploads\/2022\/06\/Screenshot-2022-06-23-3.32.46-AM-1-300x145.png 300w, https:\/\/www.microdata.no\/wp-content\/uploads\/2022\/06\/Screenshot-2022-06-23-3.32.46-AM-1-768x371.png 768w, https:\/\/www.microdata.no\/wp-content\/uploads\/2022\/06\/Screenshot-2022-06-23-3.32.46-AM-1-1536x742.png 1536w, https:\/\/www.microdata.no\/wp-content\/uploads\/2022\/06\/Screenshot-2022-06-23-3.32.46-AM-1.png 1919w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Statistics Norway maintains a service KLASS (<a href=\"https:\/\/www.ssb.no\/klass\/\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/www.ssb.no\/klass\/<\/a>) where you can find both classifications, code lists and correspondence tables in CSV-format.<\/p>\n\n\n\n<p>The illustrated example above shows a recode expression based upon KLASS&#8217; correspondance table from Municipalities 2020 to Centrality 2020, and generated the following recode expression that may be pasted into a script:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><code>recode variable ('0301' '3020' '3024' '3027' '3029' '3030' = '01' 'Sentralitet: 1 (925-1000) - h\u00f8y') ('1103' '1108' '3002' '3003' '3004' '3005' '3019' '3021' '3022' '3025' '3031' '3032' '3033' '3049' '3403' '3801' '3803' '4601' '5001' = '02' 'Sentralitet: 2 (870-924)') ('1106' '1120' '1121' '1122' '1124' '1127' '1507' '1804' '3001' '3006' '3007' '3014' '3015' '3016' '3017' '3018' '3023' '3026' '3028' '3034' '3035' '3036' '3038' '3047' '3048' '3053' '3054' '3401' '3405' '3407' '3411' '3412' '3413' '3420' '3443' '3446' '3802' '3804' '3805' '3806' '3807' '3811' '3813' '4202' '4203' '4204' '4215' '4627' '5031' '5035' '5401' = '03' 'Sentralitet: 3 (775-869)') ('1101' '1114' '1119' '1130' '1146' '1149' '1505' '1506' '1516' '1517' '1520' '1528' '1531' '1532' '1577' '1806' '1824' '1833' '1841' '1870' '3011' '3013' '3037' '3041' '3050' '3414' '3415' '3416' '3440' '3441' '3442' '3447' '3448' '3451' '3808' '3812' '3814' '3816' '3817' '4201' '4205' '4206' '4207' '4213' '4214' '4216' '4219' '4223' '4225' '4612' '4614' '4621' '4622' '4623' '4624' '4626' '4630' '4631' '4647' '5006' '5007' '5028' '5029' '5036' '5037' '5038' '5053' '5059' '5402' '5403' '5406' = '04' 'Sentralitet: 4 (670-774)') ('1111' '1112' '1135' '1145' '1160' '1515' '1525' '1535' '1539' '1547' '1554' '1557' '1560' '1563' '1566' '1579' '1813' '1820' '1840' '1860' '1865' '1866' '1868' '3012' '3039' '3040' '3042' '3043' '3044' '3045' '3046' '3051' '3417' '3418' '3419' '3421' '3422' '3427' '3428' '3430' '3435' '3436' '3437' '3438' '3439' '3449' '3450' '3452' '3453' '3815' '3818' '3819' '3820' '3821' '4211' '4212' '4217' '4218' '4226' '4227' '4228' '4602' '4611' '4613' '4615' '4617' '4618' '4625' '4628' '4632' '4640' '4643' '4649' '4650' '4651' '5021' '5022' '5025' '5027' '5032' '5034' '5045' '5047' '5054' '5055' '5057' '5061' '5405' '5411' '5416' '5418' '5419' '5421' '5428' '5437' '5444' = '05' 'Sentralitet: 5 (565-669)') ('1133' '1134' '1144' '1151' '1511' '1514' '1573' '1576' '1578' '1811' '1812' '1815' '1816' '1818' '1822' '1825' '1826' '1827' '1828' '1832' '1834' '1835' '1836' '1837' '1838' '1839' '1845' '1848' '1851' '1853' '1856' '1857' '1859' '1867' '1871' '1874' '1875' '3052' '3423' '3424' '3425' '3426' '3429' '3431' '3432' '3433' '3434' '3454' '3822' '3823' '3824' '3825' '4220' '4221' '4222' '4224' '4616' '4619' '4620' '4629' '4633' '4634' '4635' '4636' '4637' '4638' '4639' '4641' '4642' '4644' '4645' '4646' '4648' '5014' '5020' '5026' '5033' '5041' '5042' '5043' '5044' '5046' '5049' '5052' '5056' '5058' '5060' '5404' '5412' '5413' '5414' '5415' '5417' '5420' '5422' '5423' '5424' '5425' '5426' '5427' '5429' '5430' '5432' '5433' '5434' '5435' '5436' '5438' '5439' '5440' '5441' '5442' '5443' = '06' 'Sentralitet: 6 (0-564) - lav')<\/code><\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Microdata.no now has a new tool that simplifies larger recode operations. In microdata.no you can recode both numeric and alphanumeric variables. Users can freely define their own ranges and rules. In some situations it is useful to base recode rules on official classifications and\/or reuse well defined correspondence tables when recoding. In script-mode you can&#8230;<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"inline_featured_image":false,"_kad_blocks_custom_css":"","_kad_blocks_head_custom_js":"","_kad_blocks_body_custom_js":"","_kad_blocks_footer_custom_js":"","_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"_kad_post_classname":"","footnotes":""},"categories":[2],"tags":[],"class_list":["post-2459","post","type-post","status-publish","format-standard","hentry","category-news"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>New recode tool - microdata.no<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.microdata.no\/en\/new-recode-tool\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"New recode tool - microdata.no\" \/>\n<meta property=\"og:description\" content=\"Microdata.no now has a new tool that simplifies larger recode operations. In microdata.no you can recode both numeric and alphanumeric variables. Users can freely define their own ranges and rules. In some situations it is useful to base recode rules on official classifications and\/or reuse well defined correspondence tables when recoding. In script-mode you can...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.microdata.no\/en\/new-recode-tool\/\" \/>\n<meta property=\"og:site_name\" content=\"microdata.no\" \/>\n<meta property=\"article:published_time\" content=\"2022-06-23T02:05:44+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-06-23T07:51:25+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.microdata.no\/wp-content\/uploads\/2022\/06\/Screenshot-2022-06-23-3.32.46-AM-1-1024x495.png\" \/>\n<meta name=\"author\" content=\"\u00d8rnulf Risnes\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u00d8rnulf Risnes\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.microdata.no\\\/en\\\/new-recode-tool\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.microdata.no\\\/en\\\/new-recode-tool\\\/\"},\"author\":{\"name\":\"\u00d8rnulf Risnes\",\"@id\":\"https:\\\/\\\/www.microdata.no\\\/#\\\/schema\\\/person\\\/0077d421855fe8663fb71c0b5c1a99df\"},\"headline\":\"New recode tool\",\"datePublished\":\"2022-06-23T02:05:44+00:00\",\"dateModified\":\"2022-06-23T07:51:25+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.microdata.no\\\/en\\\/new-recode-tool\\\/\"},\"wordCount\":160,\"image\":{\"@id\":\"https:\\\/\\\/www.microdata.no\\\/en\\\/new-recode-tool\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.microdata.no\\\/wp-content\\\/uploads\\\/2022\\\/06\\\/Screenshot-2022-06-23-3.32.46-AM-1-1024x495.png\",\"articleSection\":[\"News\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.microdata.no\\\/en\\\/new-recode-tool\\\/\",\"url\":\"https:\\\/\\\/www.microdata.no\\\/en\\\/new-recode-tool\\\/\",\"name\":\"New recode tool - microdata.no\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.microdata.no\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.microdata.no\\\/en\\\/new-recode-tool\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.microdata.no\\\/en\\\/new-recode-tool\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.microdata.no\\\/wp-content\\\/uploads\\\/2022\\\/06\\\/Screenshot-2022-06-23-3.32.46-AM-1-1024x495.png\",\"datePublished\":\"2022-06-23T02:05:44+00:00\",\"dateModified\":\"2022-06-23T07:51:25+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.microdata.no\\\/#\\\/schema\\\/person\\\/0077d421855fe8663fb71c0b5c1a99df\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.microdata.no\\\/en\\\/new-recode-tool\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.microdata.no\\\/en\\\/new-recode-tool\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.microdata.no\\\/en\\\/new-recode-tool\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.microdata.no\\\/wp-content\\\/uploads\\\/2022\\\/06\\\/Screenshot-2022-06-23-3.32.46-AM-1-1024x495.png\",\"contentUrl\":\"https:\\\/\\\/www.microdata.no\\\/wp-content\\\/uploads\\\/2022\\\/06\\\/Screenshot-2022-06-23-3.32.46-AM-1-1024x495.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.microdata.no\\\/en\\\/new-recode-tool\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Hjem\",\"item\":\"https:\\\/\\\/www.microdata.no\\\/en\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"New recode tool\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.microdata.no\\\/#website\",\"url\":\"https:\\\/\\\/www.microdata.no\\\/\",\"name\":\"microdata.no\",\"description\":\"Gj\u00f8r det enklere \u00e5 analysere registerdata\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.microdata.no\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.microdata.no\\\/#\\\/schema\\\/person\\\/0077d421855fe8663fb71c0b5c1a99df\",\"name\":\"\u00d8rnulf Risnes\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/e8d8acbbc43a7099fe8ac77a77497924f93b35277750ead1dbb984a8c6b5dc1b?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/e8d8acbbc43a7099fe8ac77a77497924f93b35277750ead1dbb984a8c6b5dc1b?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/e8d8acbbc43a7099fe8ac77a77497924f93b35277750ead1dbb984a8c6b5dc1b?s=96&d=mm&r=g\",\"caption\":\"\u00d8rnulf Risnes\"},\"url\":\"https:\\\/\\\/www.microdata.no\\\/en\\\/author\\\/ornulf\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"New recode tool - microdata.no","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.microdata.no\/en\/new-recode-tool\/","og_locale":"en_US","og_type":"article","og_title":"New recode tool - microdata.no","og_description":"Microdata.no now has a new tool that simplifies larger recode operations. In microdata.no you can recode both numeric and alphanumeric variables. Users can freely define their own ranges and rules. In some situations it is useful to base recode rules on official classifications and\/or reuse well defined correspondence tables when recoding. In script-mode you can...","og_url":"https:\/\/www.microdata.no\/en\/new-recode-tool\/","og_site_name":"microdata.no","article_published_time":"2022-06-23T02:05:44+00:00","article_modified_time":"2022-06-23T07:51:25+00:00","og_image":[{"url":"https:\/\/www.microdata.no\/wp-content\/uploads\/2022\/06\/Screenshot-2022-06-23-3.32.46-AM-1-1024x495.png","type":"","width":"","height":""}],"author":"\u00d8rnulf Risnes","twitter_card":"summary_large_image","twitter_misc":{"Written by":"\u00d8rnulf Risnes","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.microdata.no\/en\/new-recode-tool\/#article","isPartOf":{"@id":"https:\/\/www.microdata.no\/en\/new-recode-tool\/"},"author":{"name":"\u00d8rnulf Risnes","@id":"https:\/\/www.microdata.no\/#\/schema\/person\/0077d421855fe8663fb71c0b5c1a99df"},"headline":"New recode tool","datePublished":"2022-06-23T02:05:44+00:00","dateModified":"2022-06-23T07:51:25+00:00","mainEntityOfPage":{"@id":"https:\/\/www.microdata.no\/en\/new-recode-tool\/"},"wordCount":160,"image":{"@id":"https:\/\/www.microdata.no\/en\/new-recode-tool\/#primaryimage"},"thumbnailUrl":"https:\/\/www.microdata.no\/wp-content\/uploads\/2022\/06\/Screenshot-2022-06-23-3.32.46-AM-1-1024x495.png","articleSection":["News"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.microdata.no\/en\/new-recode-tool\/","url":"https:\/\/www.microdata.no\/en\/new-recode-tool\/","name":"New recode tool - microdata.no","isPartOf":{"@id":"https:\/\/www.microdata.no\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.microdata.no\/en\/new-recode-tool\/#primaryimage"},"image":{"@id":"https:\/\/www.microdata.no\/en\/new-recode-tool\/#primaryimage"},"thumbnailUrl":"https:\/\/www.microdata.no\/wp-content\/uploads\/2022\/06\/Screenshot-2022-06-23-3.32.46-AM-1-1024x495.png","datePublished":"2022-06-23T02:05:44+00:00","dateModified":"2022-06-23T07:51:25+00:00","author":{"@id":"https:\/\/www.microdata.no\/#\/schema\/person\/0077d421855fe8663fb71c0b5c1a99df"},"breadcrumb":{"@id":"https:\/\/www.microdata.no\/en\/new-recode-tool\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.microdata.no\/en\/new-recode-tool\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.microdata.no\/en\/new-recode-tool\/#primaryimage","url":"https:\/\/www.microdata.no\/wp-content\/uploads\/2022\/06\/Screenshot-2022-06-23-3.32.46-AM-1-1024x495.png","contentUrl":"https:\/\/www.microdata.no\/wp-content\/uploads\/2022\/06\/Screenshot-2022-06-23-3.32.46-AM-1-1024x495.png"},{"@type":"BreadcrumbList","@id":"https:\/\/www.microdata.no\/en\/new-recode-tool\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Hjem","item":"https:\/\/www.microdata.no\/en\/"},{"@type":"ListItem","position":2,"name":"New recode tool"}]},{"@type":"WebSite","@id":"https:\/\/www.microdata.no\/#website","url":"https:\/\/www.microdata.no\/","name":"microdata.no","description":"Gj\u00f8r det enklere \u00e5 analysere registerdata","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.microdata.no\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.microdata.no\/#\/schema\/person\/0077d421855fe8663fb71c0b5c1a99df","name":"\u00d8rnulf Risnes","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/e8d8acbbc43a7099fe8ac77a77497924f93b35277750ead1dbb984a8c6b5dc1b?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/e8d8acbbc43a7099fe8ac77a77497924f93b35277750ead1dbb984a8c6b5dc1b?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/e8d8acbbc43a7099fe8ac77a77497924f93b35277750ead1dbb984a8c6b5dc1b?s=96&d=mm&r=g","caption":"\u00d8rnulf Risnes"},"url":"https:\/\/www.microdata.no\/en\/author\/ornulf\/"}]}},"taxonomy_info":{"category":[{"value":2,"label":"News"}]},"featured_image_src_large":false,"author_info":{"display_name":"\u00d8rnulf Risnes","author_link":"https:\/\/www.microdata.no\/en\/author\/ornulf\/"},"comment_info":0,"category_info":[{"term_id":2,"name":"News","slug":"news","term_group":0,"term_taxonomy_id":2,"taxonomy":"category","description":"","parent":0,"count":79,"filter":"raw","cat_ID":2,"category_count":79,"category_description":"","cat_name":"News","category_nicename":"news","category_parent":0}],"tag_info":false,"_links":{"self":[{"href":"https:\/\/www.microdata.no\/en\/wp-json\/wp\/v2\/posts\/2459","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.microdata.no\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.microdata.no\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.microdata.no\/en\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/www.microdata.no\/en\/wp-json\/wp\/v2\/comments?post=2459"}],"version-history":[{"count":6,"href":"https:\/\/www.microdata.no\/en\/wp-json\/wp\/v2\/posts\/2459\/revisions"}],"predecessor-version":[{"id":2509,"href":"https:\/\/www.microdata.no\/en\/wp-json\/wp\/v2\/posts\/2459\/revisions\/2509"}],"wp:attachment":[{"href":"https:\/\/www.microdata.no\/en\/wp-json\/wp\/v2\/media?parent=2459"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.microdata.no\/en\/wp-json\/wp\/v2\/categories?post=2459"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.microdata.no\/en\/wp-json\/wp\/v2\/tags?post=2459"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}