{"id":301014,"date":"2020-03-31T09:00:29","date_gmt":"2020-03-31T09:00:29","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=301014"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=301014","title":{"rendered":"\u0420\u0430\u0437\u0432\u043e\u0440\u0430\u0447\u0438\u0432\u0430\u0435\u043c \u0432\u043b\u043e\u0436\u0435\u043d\u043d\u044b\u0435 \u0441\u0442\u043e\u043b\u0431\u0446\u044b \u2014 \u0441\u043f\u0438\u0441\u043a\u0438 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u044f\u0437\u044b\u043a\u0430 R (\u043f\u0430\u043a\u0435\u0442 tidyr)"},"content":{"rendered":"\n<div class=\"post__text post__text-html post__text_v1\" id=\"post-content-body\" data-io-article-url=\"https:\/\/habr.com\/ru\/post\/491726\/\">\n<p>\u0412 \u0431\u043e\u043b\u044c\u0448\u0438\u043d\u0441\u0442\u0432\u0435 \u0441\u043b\u0443\u0447\u0430\u0435\u0432 \u043f\u0440\u0438 \u0440\u0430\u0431\u043e\u0442\u0435 \u0441 \u043e\u0442\u0432\u0435\u0442\u043e\u043c \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u044b\u043c \u043e\u0442 API, \u0438\u043b\u0438 \u0441 \u043b\u044e\u0431\u044b\u043c\u0438 \u0434\u0440\u0443\u0433\u0438\u043c\u0438 \u0434\u0430\u043d\u043d\u044b\u043c\u0438 \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0438\u043c\u0435\u044e\u0442 \u0441\u043b\u043e\u0436\u043d\u0443\u044e \u0434\u0440\u0435\u0432\u043e\u0432\u0438\u0434\u043d\u0443\u044e \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443, \u0432\u044b \u0441\u0442\u0430\u043b\u043a\u0438\u0432\u0430\u0435\u0442\u0435\u0441\u044c \u0441 \u0444\u043e\u0440\u043c\u0430\u0442\u0430\u043c\u0438 JSON \u0438 XML.<\/p>\n<p>  <\/p>\n<p>\u042d\u0442\u0438 \u0444\u043e\u0440\u043c\u0430\u0442\u044b \u0438\u043c\u0435\u044e\u0442 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e \u043f\u0440\u0435\u0438\u043c\u0443\u0449\u0435\u0441\u0442\u0432: \u043e\u043d\u0438 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043a\u043e\u043c\u043f\u0430\u043a\u0442\u043d\u043e \u0445\u0440\u0430\u043d\u044f\u0442 \u0434\u0430\u043d\u043d\u044b\u0435 \u0438 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0442 \u0438\u0437\u0431\u0435\u0436\u0430\u0442\u044c \u0438\u0437\u043b\u0438\u0448\u043d\u0435\u0433\u043e \u0434\u0443\u0431\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438. <\/p>\n<p>  <\/p>\n<p>\u041c\u0438\u043d\u0443\u0441\u043e\u043c \u0434\u0430\u043d\u043d\u044b\u0445 \u0444\u043e\u0440\u043c\u0430\u0442\u043e\u0432 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0441\u043b\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0438\u0445 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0438 \u0430\u043d\u0430\u043b\u0438\u0437\u0430. \u041d\u0435\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u043d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0432 \u0432\u044b\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u044f\u0445 \u0438 \u043d\u0435\u043b\u044c\u0437\u044f \u0441\u0442\u0440\u043e\u0438\u0442\u044c \u043d\u0430 \u0438\u0445 \u043e\u0441\u043d\u043e\u0432\u0435 \u0432\u0438\u0437\u0443\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044e. <\/p>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/7s\/yf\/gr\/7syfgrnpyegv-ihhcguupzuwm9c.jpeg\">  <\/p>\n<p>  <\/p>\n<p>\u0414\u0430\u043d\u043d\u0430\u044f \u0441\u0442\u0430\u0442\u044c\u044f \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u043c \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0435\u043d\u0438\u0435\u043c \u043f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u0438 <a href=\"https:\/\/habr.com\/ru\/post\/444622\/\">&quot;R \u043f\u0430\u043a\u0435\u0442 tidyr \u0438 \u0435\u0433\u043e \u043d\u043e\u0432\u044b\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 pivot_longer \u0438 pivot_wider&quot;<\/a>. \u041e\u043d\u0430 \u043f\u043e\u043c\u043e\u0436\u0435\u0442 \u0432\u0430\u043c \u043f\u0440\u0438\u0432\u0435\u0441\u0442\u0438 \u043d\u0435\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438 \u0434\u0430\u043d\u043d\u044b\u0445 \u043a \u043f\u0440\u0438\u0432\u044b\u0447\u043d\u043e\u043c\u0443, \u0438 \u043f\u0440\u0438\u0433\u043e\u0434\u043d\u043e\u043c\u0443 \u0434\u043b\u044f \u0430\u043d\u0430\u043b\u0438\u0437\u0430 \u0442\u0430\u0431\u043b\u0438\u0447\u043d\u043e\u043c\u0443 \u0432\u0438\u0434\u0443 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043f\u0430\u043a\u0435\u0442\u0430 <code>tidyr<\/code>, \u0432\u0445\u043e\u0434\u044f\u0449\u0435\u0433\u043e \u0432 \u044f\u0434\u0440\u043e \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 <code>tidyverse<\/code>, \u0438 \u0435\u0433\u043e \u0444\u0443\u043d\u043a\u0446\u0438\u0439 \u0441\u0435\u043c\u0435\u0439\u0441\u0442\u0432\u0430 <code>unnest_*()<\/code>. <\/p>\n<p><a name=\"habracut\"><\/a>  <\/p>\n<h1 id=\"soderzhanie\">\u0421\u043e\u0434\u0435\u0440\u0436\u0430\u043d\u0438\u0435<\/h1>\n<p>  <\/p>\n<p><em>\u0415\u0441\u043b\u0438 \u0432\u044b \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u0443\u0435\u0442\u0435\u0441\u044c \u0430\u043d\u0430\u043b\u0438\u0437\u043e\u043c \u0434\u0430\u043d\u043d\u044b\u0445 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u0432\u0430\u043c \u0431\u0443\u0434\u0443\u0442 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b \u043c\u043e\u0438 <a href=\"https:\/\/t.me\/R4marketing\" rel=\"nofollow\">telegram<\/a> \u0438 <a href=\"https:\/\/www.youtube.com\/R4marketing\/?sub_confirmation=1\" rel=\"nofollow\">youtube<\/a> \u043a\u0430\u043d\u0430\u043b\u044b. \u0411\u043e\u043b\u044c\u0448\u0430\u044f \u0447\u0430\u0441\u0442\u044c \u043a\u043e\u043d\u0442\u0435\u043d\u0442\u0430 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043f\u043e\u0441\u0432\u044f\u0449\u0435\u043d\u044b \u044f\u0437\u044b\u043a\u0443 R.<\/em><\/p>\n<p>  <\/p>\n<ol>\n<li><a href=\"#vvedenie\">\u0412\u0432\u0435\u0434\u0435\u043d\u0438\u0435<\/a><\/li>\n<li><a href=\"#polzovateli-github\">\u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0438 GitHub<\/a><\/li>\n<li><a href=\"#repozitorii-github\">\u0420\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0438 Github<\/a><\/li>\n<li><a href=\"#personazhi-igry-prestolov\">\u041f\u0435\u0440\u0441\u043e\u043d\u0430\u0436\u0438 \u0418\u0433\u0440\u044b \u041f\u0440\u0435\u0441\u0442\u043e\u043b\u043e\u0432<\/a><\/li>\n<li><a href=\"#geokodirovanie-s-pomoschyu-google\">\u0413\u0435\u043e\u043a\u043e\u0434\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e Google<\/a><\/li>\n<li><a href=\"#diskografiya-sharly-gelfand\">\u0414\u0438\u0441\u043a\u043e\u0433\u0440\u0430\u0444\u0438\u044f \u0428\u0430\u0440\u043b\u044b \u0413\u0435\u043b\u044c\u0444\u0430\u043d\u0434<\/a><\/li>\n<li><a href=\"#zaklyuchenie\">\u0417\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435<\/a><\/li>\n<\/ol>\n<p>  <\/p>\n<h1 id=\"vvedenie\">\u0412\u0432\u0435\u0434\u0435\u043d\u0438\u0435<\/h1>\n<p>  <\/p>\n<p><strong>Rectangling<\/strong> <em>(\u043f\u0440\u0438\u043c. \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u0447\u0438\u043a\u0430, \u043d\u0435 \u043d\u0430\u0448\u0435\u043b \u0430\u0434\u0435\u043a\u0432\u0430\u0442\u043d\u044b\u0445 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u043e\u0432 \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u0430 \u044d\u0442\u043e\u0433\u043e \u0442\u0435\u0440\u043c\u0438\u043d\u0430, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043e\u0441\u0442\u0430\u0432\u0438\u043c \u0435\u0433\u043e \u043a\u0430\u043a \u0435\u0441\u0442\u044c.)<\/em> \u2014 \u044d\u0442\u043e \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u043f\u0440\u0438\u0432\u0435\u0434\u0435\u043d\u0438\u044f \u043d\u0435 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0445 \u0441 \u0432\u043b\u043e\u0436\u0435\u043d\u043d\u044b\u043c\u0438 \u043c\u0430\u0441\u0441\u0438\u0432\u0430\u043c\u0438 \u043a \u0434\u0432\u0443\u0445\u043c\u0435\u0440\u043d\u043e\u0439 \u0442\u0430\u0431\u043b\u0438\u0446\u0435, \u0441\u043e\u0441\u0442\u043e\u044f\u0449\u0435\u0439 \u0438\u0437 \u043f\u0440\u0438\u0432\u044b\u0447\u043d\u044b\u0445 \u043d\u0430\u043c \u0441\u0442\u0440\u043e\u043a \u0438 \u0441\u0442\u043e\u043b\u0431\u0446\u043e\u0432. \u0412 <code>tidyr<\/code> \u0435\u0441\u0442\u044c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0444\u0443\u043d\u043a\u0446\u0438\u0439, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u043e\u043c\u043e\u0433\u0443\u0442 \u0432\u0430\u043c \u0440\u0430\u0437\u0432\u0435\u0440\u043d\u0443\u0442\u044c \u0432\u043b\u043e\u0436\u0435\u043d\u043d\u044b\u0435 \u0441\u0442\u043e\u043b\u0431\u0446\u044b-\u0441\u043f\u0438\u0441\u043a\u0438 \u0438 \u043f\u0440\u0438\u0432\u0435\u0441\u0442\u0438 \u0434\u0430\u043d\u043d\u044b\u0435 \u043a \u043f\u0440\u044f\u043c\u043e\u0443\u0433\u043e\u043b\u044c\u043d\u043e\u0439, \u0442\u0430\u0431\u043b\u0438\u0447\u043d\u043e\u0439 \u0444\u043e\u0440\u043c\u0435:<\/p>\n<p>  <\/p>\n<ul>\n<li><code>unnest_longer()<\/code> \u0431\u0435\u0440\u0435\u0442 \u043a\u0430\u0436\u0434\u044b\u0439 \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u0441\u043f\u0438\u0441\u043a\u0430-\u0441\u0442\u043e\u043b\u0431\u0446\u0430 \u0438 \u0441\u043e\u0437\u0434\u0430\u0435\u0442 \u043d\u043e\u0432\u0443\u044e \u0441\u0442\u0440\u043e\u043a\u0443.<\/li>\n<li><code>unnest_wider()<\/code> \u0431\u0435\u0440\u0435\u0442 \u043a\u0430\u0436\u0434\u044b\u0439 \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u0441\u043f\u0438\u0441\u043a\u0430-\u0441\u0442\u043e\u043b\u0431\u0446\u0430 \u0438 \u0441\u043e\u0437\u0434\u0430\u0435\u0442 \u043d\u043e\u0432\u044b\u0439 \u0441\u0442\u043e\u043b\u0431\u0435\u0446.<\/li>\n<li><code>unnest_auto()<\/code> \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442 \u043a\u0430\u043a\u0443\u044e \u0438\u0437 \u0444\u0443\u043d\u043a\u0446\u0438\u0439 \u043b\u0443\u0447\u0448\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c<br \/>  <code>unnest_longer()<\/code> \u0438\u043b\u0438 <code>unnest_wider()<\/code>.<\/li>\n<li><code>hoist()<\/code> \u043f\u043e\u0445\u043e\u0436\u0430 \u043d\u0430 <code>unnest_wider()<\/code> \u043d\u043e \u043e\u0442\u0431\u0438\u0440\u0430\u0435\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u044b\u0435 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b \u0438 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0441 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u043c\u0438 \u0443\u0440\u043e\u0432\u043d\u044f\u043c\u0438 \u0432\u043b\u043e\u0436\u0435\u043d\u043d\u043e\u0441\u0442\u0438.<\/li>\n<\/ul>\n<p>  <\/p>\n<p>\u0411\u043e\u043b\u044c\u0448\u0438\u043d\u0441\u0442\u0432\u043e \u043f\u0440\u043e\u0431\u043b\u0435\u043c \u0441\u0432\u044f\u0437\u0430\u043d\u043d\u044b\u0445 \u0441 \u043f\u0440\u0438\u0432\u0435\u0434\u0435\u043d\u0438\u0435\u043c \u043d\u0435 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0445 \u0441 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u043c\u0438 \u0443\u0440\u043e\u0432\u043d\u044f\u043c\u0438 \u0432\u043b\u043e\u0436\u0435\u043d\u043d\u043e\u0441\u0442\u0438 \u043a \u0434\u0432\u0443\u0445\u043c\u0435\u0440\u043d\u043e\u0439 \u0442\u0430\u0431\u043b\u0438\u0446\u0435 \u043c\u043e\u0436\u043d\u043e \u0440\u0435\u0448\u0438\u0442\u044c, \u043a\u043e\u043c\u0431\u0438\u043d\u0438\u0440\u0443\u044f \u043f\u0435\u0440\u0435\u0447\u0438\u0441\u043b\u0435\u043d\u043d\u044b\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0441 dplyr.<\/p>\n<p>  <\/p>\n<p>\u0414\u043b\u044f \u0434\u0435\u043c\u043e\u043d\u0441\u0442\u0440\u0430\u0446\u0438\u0438 \u044d\u0442\u0438\u0445 \u043f\u0440\u0438\u0435\u043c\u043e\u0432, \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043f\u0430\u043a\u0435\u0442 <code>repurrrsive<\/code>, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u043b\u043e\u0436\u043d\u044b\u0445, \u043c\u043d\u043e\u0433\u043e\u0443\u0440\u043e\u0432\u043d\u0435\u0432\u044b\u0445 \u0441\u043f\u0438\u0441\u043a\u043e\u0432, \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u044b\u0445 \u0438\u0437 \u0432\u0435\u0431-API.<\/p>\n<p>  <\/p>\n<pre><code class=\"plaintext\">library(tidyr) library(dplyr) library(repurrrsive)<\/code><\/pre>\n<p>  <\/p>\n<h1 id=\"polzovateli-github\">\u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0438 GitHub<\/h1>\n<p>  <\/p>\n<p>\u041d\u0430\u0447\u043d\u0435\u043c \u0441 <em>gh_users<\/em>, \u0441\u043f\u0438\u0441\u043a\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043e \u0448\u0435\u0441\u0442\u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f\u0445 GitHub. \u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u0443\u0435\u043c \u0441\u043f\u0438\u0441\u043e\u043a <em>gh_users<\/em> \u0432 <em>tibble<\/em> \u0444\u0440\u0435\u0439\u043c.:<\/p>\n<p>  <\/p>\n<pre><code class=\"plaintext\">users &lt;-   tibble( user = gh_users ) <\/code><\/pre>\n<p>  <\/p>\n<p>\u042d\u0442\u043e \u043a\u0430\u0436\u0435\u0442\u0441\u044f \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u043d\u0435\u043b\u043e\u0433\u0438\u0447\u043d\u044b\u043c: \u0437\u0430\u0447\u0435\u043c \u043f\u0440\u0438\u0432\u043e\u0434\u0438\u0442\u044c \u0441\u043f\u0438\u0441\u043e\u043a <em>gh_users<\/em>, \u043a \u0431\u043e\u043b\u0435\u0435 \u0441\u043b\u043e\u0436\u043d\u043e\u0439 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0435 \u0434\u0430\u043d\u043d\u044b\u0445? \u041d\u043e \u0443 \u0434\u0430\u0442\u0430 \u0444\u0440\u0435\u0439\u043c\u0430 \u0435\u0441\u0442\u044c \u0431\u043e\u043b\u044c\u0448\u043e\u0435 \u043f\u0440\u0435\u0438\u043c\u0443\u0449\u0435\u0441\u0442\u0432\u043e: \u043e\u043d \u043e\u0431\u044a\u0435\u0434\u0438\u043d\u044f\u0435\u0442 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0432\u0435\u043a\u0442\u043e\u0440\u043e\u0432, \u0442\u0430\u043a \u0447\u0442\u043e \u0432\u0441\u0435 \u043e\u0442\u0441\u043b\u0435\u0436\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0432 \u043e\u0434\u043d\u043e\u043c \u043e\u0431\u044a\u0435\u043a\u0442\u0435.<\/p>\n<p>  <\/p>\n<p>\u041a\u0430\u0436\u0434\u044b\u0439 \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u043e\u0431\u044a\u0435\u043a\u0442\u0430 <code>users<\/code> \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0441\u043e\u0431\u043e\u0439 \u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u0441\u043f\u0438\u0441\u043e\u043a, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u043a\u0430\u0436\u0434\u044b\u0439 \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0441\u0442\u043e\u043b\u0431\u0435\u0446.<\/p>\n<p>  <\/p>\n<pre><code class=\"plaintext\">names(users$user[[1]]) #&gt;  [1] &quot;login&quot;               &quot;id&quot;                  &quot;avatar_url&quot;          #&gt;  [4] &quot;gravatar_id&quot;         &quot;url&quot;                 &quot;html_url&quot;            #&gt;  [7] &quot;followers_url&quot;       &quot;following_url&quot;       &quot;gists_url&quot;           #&gt; [10] &quot;starred_url&quot;         &quot;subscriptions_url&quot;   &quot;organizations_url&quot;   #&gt; [13] &quot;repos_url&quot;           &quot;events_url&quot;          &quot;received_events_url&quot; #&gt; [16] &quot;type&quot;                &quot;site_admin&quot;          &quot;name&quot;                #&gt; [19] &quot;company&quot;             &quot;blog&quot;                &quot;location&quot;            #&gt; [22] &quot;email&quot;               &quot;hireable&quot;            &quot;bio&quot;                 #&gt; [25] &quot;public_repos&quot;        &quot;public_gists&quot;        &quot;followers&quot;           #&gt; [28] &quot;following&quot;           &quot;created_at&quot;          &quot;updated_at&quot;<\/code><\/pre>\n<p>  <\/p>\n<p>\u0415\u0441\u0442\u044c \u0434\u0432\u0430 \u0441\u043f\u043e\u0441\u043e\u0431\u0430 \u043f\u0440\u0435\u0432\u0440\u0430\u0442\u0438\u0442\u044c \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b \u0441\u043f\u0438\u0441\u043a\u0430 \u0432 \u0441\u0442\u043e\u043b\u0431\u0446\u044b. <code>unnest_wider()<\/code> \u0431\u0435\u0440\u0435\u0442 \u043a\u0430\u0436\u0434\u044b\u0439 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442 \u0438 \u0441\u043e\u0437\u0434\u0430\u0435\u0442 \u043d\u043e\u0432\u044b\u0439 \u0441\u0442\u043e\u043b\u0431\u0435\u0446:<\/p>\n<p>  <\/p>\n<pre><code class=\"plaintext\">users %&gt;% unnest_wider(user) #&gt; # A tibble: 6 x 30 #&gt;   login     id avatar_url gravatar_id url   html_url followers_url #&gt;   &lt;chr&gt;  &lt;int&gt; &lt;chr&gt;      &lt;chr&gt;       &lt;chr&gt; &lt;chr&gt;    &lt;chr&gt;         #&gt; 1 gabo\u2026 6.60e5 https:\/\/a\u2026 &quot;&quot;          http\u2026 https:\/\u2026 https:\/\/api.\u2026 #&gt; 2 jenn\u2026 5.99e5 https:\/\/a\u2026 &quot;&quot;          http\u2026 https:\/\u2026 https:\/\/api.\u2026 #&gt; 3 jtle\u2026 1.57e6 https:\/\/a\u2026 &quot;&quot;          http\u2026 https:\/\u2026 https:\/\/api.\u2026 #&gt; 4 juli\u2026 1.25e7 https:\/\/a\u2026 &quot;&quot;          http\u2026 https:\/\u2026 https:\/\/api.\u2026 #&gt; 5 leep\u2026 3.51e6 https:\/\/a\u2026 &quot;&quot;          http\u2026 https:\/\u2026 https:\/\/api.\u2026 #&gt; 6 masa\u2026 8.36e6 https:\/\/a\u2026 &quot;&quot;          http\u2026 https:\/\u2026 https:\/\/api.\u2026 #&gt; # \u2026 with 23 more variables: following_url &lt;chr&gt;, gists_url &lt;chr&gt;, #&gt; #   starred_url &lt;chr&gt;, subscriptions_url &lt;chr&gt;, organizations_url &lt;chr&gt;, #&gt; #   repos_url &lt;chr&gt;, events_url &lt;chr&gt;, received_events_url &lt;chr&gt;, #&gt; #   type &lt;chr&gt;, site_admin &lt;lgl&gt;, name &lt;chr&gt;, company &lt;chr&gt;, blog &lt;chr&gt;, #&gt; #   location &lt;chr&gt;, email &lt;chr&gt;, public_repos &lt;int&gt;, public_gists &lt;int&gt;, #&gt; #   followers &lt;int&gt;, following &lt;int&gt;, created_at &lt;chr&gt;, updated_at &lt;chr&gt;, #&gt; #   bio &lt;chr&gt;, hireable &lt;lgl&gt;<\/code><\/pre>\n<p>  <\/p>\n<p>\u0412 \u044d\u0442\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043c\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0438 \u0442\u0430\u0431\u043b\u0438\u0446\u0443 \u0441\u043e\u0441\u0442\u043e\u044f\u0449\u0443\u044e \u0438\u0437 30 \u0441\u0442\u043e\u043b\u0431\u0446\u043e\u0432, \u0438 \u0431\u043e\u043b\u044c\u0448\u0438\u043d\u0441\u0442\u0432\u043e \u0438\u0437 \u043d\u0438\u0445 \u043d\u0430\u043c \u043d\u0435 \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u044f\u0442\u0441\u044f, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u0432\u043c\u0435\u0441\u0442\u043e <code>unnest_wider()<\/code> \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c <code>hoist()<\/code>. <code>hoist()<\/code> \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043d\u0430\u043c \u0438\u0437\u0432\u043b\u0435\u043a\u0430\u0442\u044c \u0432\u044b\u0431\u0440\u0430\u043d\u043d\u044b\u0435 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u0442\u043e\u0442 \u0436\u0435 \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441, \u0447\u0442\u043e \u0438 <code>purrr::pluck()<\/code>:<\/p>\n<p>  <\/p>\n<pre><code class=\"plaintext\">users %&gt;% hoist(user,    followers = &quot;followers&quot;,    login = &quot;login&quot;,    url = &quot;html_url&quot; ) #&gt; # A tibble: 6 x 4 #&gt;   followers login       url                            user              #&gt;       &lt;int&gt; &lt;chr&gt;       &lt;chr&gt;                          &lt;list&gt;            #&gt; 1       303 gaborcsardi https:\/\/github.com\/gaborcsardi &lt;named list [27]&gt; #&gt; 2       780 jennybc     https:\/\/github.com\/jennybc     &lt;named list [27]&gt; #&gt; 3      3958 jtleek      https:\/\/github.com\/jtleek      &lt;named list [27]&gt; #&gt; 4       115 juliasilge  https:\/\/github.com\/juliasilge  &lt;named list [27]&gt; #&gt; 5       213 leeper      https:\/\/github.com\/leeper      &lt;named list [27]&gt; #&gt; 6        34 masalmon    https:\/\/github.com\/masalmon    &lt;named list [27]&gt;<\/code><\/pre>\n<p>  <\/p>\n<p><code>hoist()<\/code> \u0443\u0434\u0430\u043b\u044f\u0435\u0442 \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u044b\u0435 \u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b \u0438\u0437 \u0441\u043f\u0438\u0441\u043a\u0430-\u0441\u0442\u043e\u043b\u0431\u0446\u0430 <em>user<\/em>, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0440\u0430\u0441\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u0442\u044c <code>hoist()<\/code> \u043a\u0430\u043a \u043f\u0435\u0440\u0435\u043c\u0435\u0449\u0435\u043d\u0438\u0435 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u043e\u0432 \u0438\u0437 \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0435\u0433\u043e \u0441\u043f\u0438\u0441\u043a\u0430 \u0434\u0430\u0442\u0430 \u0444\u0440\u0435\u0439\u043c\u0430 \u043a \u0435\u0433\u043e \u0432\u0435\u0440\u0445\u043d\u0435\u043c\u0443 \u0443\u0440\u043e\u0432\u043d\u044e.<\/p>\n<p>  <\/p>\n<h1 id=\"repozitorii-github\">\u0420\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0438 Github<\/h1>\n<p>  <\/p>\n<p>\u0412\u044b\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u043d\u0438\u0435 \u0441\u043f\u0438\u0441\u043a\u0430 <code>gh_repos<\/code> \u043c\u044b \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u043c \u0430\u043d\u0430\u043b\u043e\u0433\u0438\u0447\u043d\u043e, \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u0443\u044f \u0435\u0433\u043e \u0432 <code>tibble<\/code>:<\/p>\n<p>  <\/p>\n<pre><code class=\"plaintext\">repos &lt;- tibble(repo = gh_repos) repos #&gt; # A tibble: 6 x 1 #&gt;   repo        #&gt;   &lt;list&gt;      #&gt; 1 &lt;list [30]&gt; #&gt; 2 &lt;list [30]&gt; #&gt; 3 &lt;list [30]&gt; #&gt; 4 &lt;list [26]&gt; #&gt; 5 &lt;list [30]&gt; #&gt; 6 &lt;list [30]&gt;<\/code><\/pre>\n<p>  <\/p>\n<p>\u041d\u0430 \u044d\u0442\u043e\u0442 \u0440\u0430\u0437 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b <em>user<\/em> \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0442 \u0441\u043e\u0431\u043e\u0439 \u0441\u043f\u0438\u0441\u043e\u043a \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0435\u0432, \u043f\u0440\u0438\u043d\u0430\u0434\u043b\u0435\u0436\u0430\u0449\u0438\u0445 \u044d\u0442\u043e\u043c\u0443 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044e. \u041a\u0430\u0436\u0434\u044b\u0439 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0439 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u043c \u043d\u0430\u0431\u043b\u044e\u0434\u0435\u043d\u0438\u0435\u043c, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0441\u043e\u0433\u043b\u0430\u0441\u043d\u043e \u043a\u043e\u043d\u0446\u0435\u043f\u0446\u0438\u0438 \u0430\u043a\u043a\u0443\u0440\u0430\u0442\u043d\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0445 <em>(\u043f\u0440\u0438\u043c. tidy data)<\/em> \u043e\u043d\u0438 \u0434\u043e\u043b\u0436\u043d\u044b \u0441\u0442\u0430\u0442\u044c \u043d\u043e\u0432\u044b\u043c\u0438 \u0441\u0442\u0440\u043e\u043a\u0430\u043c\u0438, \u0432 \u0441\u0432\u044f\u0437\u0438 \u0441 \u0447\u0435\u043c \u043c\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c <code>unnest_longer()<\/code> \u0430 \u043d\u0435 <code>unnest_wider()<\/code>:<\/p>\n<p>  <\/p>\n<pre><code class=\"plaintext\">repos &lt;- repos %&gt;% unnest_longer(repo) repos #&gt; # A tibble: 176 x 1 #&gt;    repo              #&gt;    &lt;list&gt;            #&gt;  1 &lt;named list [68]&gt; #&gt;  2 &lt;named list [68]&gt; #&gt;  3 &lt;named list [68]&gt; #&gt;  4 &lt;named list [68]&gt; #&gt;  5 &lt;named list [68]&gt; #&gt;  6 &lt;named list [68]&gt; #&gt;  7 &lt;named list [68]&gt; #&gt;  8 &lt;named list [68]&gt; #&gt;  9 &lt;named list [68]&gt; #&gt; 10 &lt;named list [68]&gt; #&gt; # \u2026 with 166 more rows<\/code><\/pre>\n<p>  <\/p>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c <code>unnest_wider()<\/code> \u0438\u043b\u0438 <code>hoist()<\/code> :<\/p>\n<p>  <\/p>\n<pre><code class=\"plaintext\">repos %&gt;% hoist(repo,    login = c(&quot;owner&quot;, &quot;login&quot;),    name = &quot;name&quot;,   homepage = &quot;homepage&quot;,   watchers = &quot;watchers_count&quot; ) #&gt; # A tibble: 176 x 5 #&gt;    login       name        homepage watchers repo              #&gt;    &lt;chr&gt;       &lt;chr&gt;       &lt;chr&gt;       &lt;int&gt; &lt;list&gt;            #&gt;  1 gaborcsardi after       &lt;NA&gt;            5 &lt;named list [65]&gt; #&gt;  2 gaborcsardi argufy      &lt;NA&gt;           19 &lt;named list [65]&gt; #&gt;  3 gaborcsardi ask         &lt;NA&gt;            5 &lt;named list [65]&gt; #&gt;  4 gaborcsardi baseimports &lt;NA&gt;            0 &lt;named list [65]&gt; #&gt;  5 gaborcsardi citest      &lt;NA&gt;            0 &lt;named list [65]&gt; #&gt;  6 gaborcsardi clisymbols  &quot;&quot;             18 &lt;named list [65]&gt; #&gt;  7 gaborcsardi cmaker      &lt;NA&gt;            0 &lt;named list [65]&gt; #&gt;  8 gaborcsardi cmark       &lt;NA&gt;            0 &lt;named list [65]&gt; #&gt;  9 gaborcsardi conditions  &lt;NA&gt;            0 &lt;named list [65]&gt; #&gt; 10 gaborcsardi crayon      &lt;NA&gt;           52 &lt;named list [65]&gt; #&gt; # \u2026 with 166 more rows<\/code><\/pre>\n<p>  <\/p>\n<p>\u041e\u0431\u0440\u0430\u0442\u0438\u0442\u0435 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u043d\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 <code>c(&quot;owner&quot;, &quot;login&quot;)<\/code>: \u044d\u0442\u043e \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043d\u0430\u043c \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0432\u0442\u043e\u0440\u043e\u0433\u043e \u0443\u0440\u043e\u0432\u043d\u044f \u0438\u0437 \u0432\u043b\u043e\u0436\u0435\u043d\u043d\u043e\u0433\u043e \u0441\u043f\u0438\u0441\u043a\u0430 <code>owner<\/code>. \u0410\u043b\u044c\u0442\u0435\u0440\u043d\u0430\u0442\u0438\u0432\u043d\u044b\u0439 \u043f\u043e\u0434\u0445\u043e\u0434 \u0441\u043e\u0441\u0442\u043e\u0438\u0442 \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0432\u0435\u0441\u044c \u0441\u043f\u0438\u0441\u043e\u043a <code>owner<\/code> \u0438 \u0437\u0430\u0442\u0435\u043c \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0444\u0443\u043d\u043a\u0446\u0438\u0438 <code>unnest_wider()<\/code> \u043f\u043e\u043c\u0435\u0441\u0442\u0438\u0442\u044c \u043a\u0430\u0436\u0434\u044b\u0439 \u0435\u0433\u043e \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u0432 \u0441\u0442\u043e\u043b\u0431\u0435\u0446:<\/p>\n<p>  <\/p>\n<pre><code class=\"plaintext\">repos %&gt;%    hoist(repo, owner = &quot;owner&quot;) %&gt;%    unnest_wider(owner) #&gt; # A tibble: 176 x 18 #&gt;    login     id avatar_url gravatar_id url   html_url followers_url #&gt;    &lt;chr&gt;  &lt;int&gt; &lt;chr&gt;      &lt;chr&gt;       &lt;chr&gt; &lt;chr&gt;    &lt;chr&gt;         #&gt;  1 gabo\u2026 660288 https:\/\/a\u2026 &quot;&quot;          http\u2026 https:\/\u2026 https:\/\/api.\u2026 #&gt;  2 gabo\u2026 660288 https:\/\/a\u2026 &quot;&quot;          http\u2026 https:\/\u2026 https:\/\/api.\u2026 #&gt;  3 gabo\u2026 660288 https:\/\/a\u2026 &quot;&quot;          http\u2026 https:\/\u2026 https:\/\/api.\u2026 #&gt;  4 gabo\u2026 660288 https:\/\/a\u2026 &quot;&quot;          http\u2026 https:\/\u2026 https:\/\/api.\u2026 #&gt;  5 gabo\u2026 660288 https:\/\/a\u2026 &quot;&quot;          http\u2026 https:\/\u2026 https:\/\/api.\u2026 #&gt;  6 gabo\u2026 660288 https:\/\/a\u2026 &quot;&quot;          http\u2026 https:\/\u2026 https:\/\/api.\u2026 #&gt;  7 gabo\u2026 660288 https:\/\/a\u2026 &quot;&quot;          http\u2026 https:\/\u2026 https:\/\/api.\u2026 #&gt;  8 gabo\u2026 660288 https:\/\/a\u2026 &quot;&quot;          http\u2026 https:\/\u2026 https:\/\/api.\u2026 #&gt;  9 gabo\u2026 660288 https:\/\/a\u2026 &quot;&quot;          http\u2026 https:\/\u2026 https:\/\/api.\u2026 #&gt; 10 gabo\u2026 660288 https:\/\/a\u2026 &quot;&quot;          http\u2026 https:\/\u2026 https:\/\/api.\u2026 #&gt; # \u2026 with 166 more rows, and 11 more variables: following_url &lt;chr&gt;, #&gt; #   gists_url &lt;chr&gt;, starred_url &lt;chr&gt;, subscriptions_url &lt;chr&gt;, #&gt; #   organizations_url &lt;chr&gt;, repos_url &lt;chr&gt;, events_url &lt;chr&gt;, #&gt; #   received_events_url &lt;chr&gt;, type &lt;chr&gt;, site_admin &lt;lgl&gt;, repo &lt;list&gt;<\/code><\/pre>\n<p>  <\/p>\n<p>\u0412\u043c\u0435\u0441\u0442\u043e \u0442\u043e\u0433\u043e, \u0447\u0442\u043e \u0431\u044b \u0440\u0430\u0437\u043c\u044b\u0448\u043b\u044f\u0442\u044c \u043d\u0430\u0434 \u0432\u044b\u0431\u043e\u0440\u043e\u043c \u043d\u0443\u0436\u043d\u043e\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 <code>unnest_longer()<\/code> \u0438\u043b\u0438 <code>unnest_wider()<\/code> \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c <code>unnest_auto()<\/code>. \u042d\u0442\u0430 \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u044d\u0432\u0440\u0438\u0441\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u043c\u0435\u0442\u043e\u0434\u043e\u0432 \u0434\u043b\u044f \u043f\u043e\u0434\u0431\u043e\u0440\u0430 \u043d\u0430\u0438\u0431\u043e\u043b\u0435\u0435 \u043f\u043e\u0434\u0445\u043e\u0434\u044f\u0449\u0435\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0434\u043b\u044f \u0442\u0440\u0430\u043d\u0441\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u0434\u0430\u043d\u043d\u044b\u0445, \u0438 \u0432\u044b\u0432\u043e\u0434\u0438\u0442 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 \u043e \u0432\u044b\u0431\u0440\u0430\u043d\u043d\u043e\u043c \u0441\u043f\u043e\u0441\u043e\u0431\u0435. <\/p>\n<p>  <\/p>\n<pre><code class=\"plaintext\">tibble(repo = gh_repos) %&gt;%    unnest_auto(repo) %&gt;%    unnest_auto(repo) #&gt; Using `unnest_longer(repo)`; no element has names #&gt; Using `unnest_wider(repo)`; elements have 68 names in common #&gt; # A tibble: 176 x 67 #&gt;        id name  full_name owner private html_url description fork  url   #&gt;     &lt;int&gt; &lt;chr&gt; &lt;chr&gt;     &lt;lis&gt; &lt;lgl&gt;   &lt;chr&gt;    &lt;chr&gt;       &lt;lgl&gt; &lt;chr&gt; #&gt;  1 6.12e7 after gaborcsa\u2026 &lt;nam\u2026 FALSE   https:\/\u2026 Run Code i\u2026 FALSE http\u2026 #&gt;  2 4.05e7 argu\u2026 gaborcsa\u2026 &lt;nam\u2026 FALSE   https:\/\u2026 Declarativ\u2026 FALSE http\u2026 #&gt;  3 3.64e7 ask   gaborcsa\u2026 &lt;nam\u2026 FALSE   https:\/\u2026 Friendly C\u2026 FALSE http\u2026 #&gt;  4 3.49e7 base\u2026 gaborcsa\u2026 &lt;nam\u2026 FALSE   https:\/\u2026 Do we get \u2026 FALSE http\u2026 #&gt;  5 6.16e7 cite\u2026 gaborcsa\u2026 &lt;nam\u2026 FALSE   https:\/\u2026 Test R pac\u2026 TRUE  http\u2026 #&gt;  6 3.39e7 clis\u2026 gaborcsa\u2026 &lt;nam\u2026 FALSE   https:\/\u2026 Unicode sy\u2026 FALSE http\u2026 #&gt;  7 3.72e7 cmak\u2026 gaborcsa\u2026 &lt;nam\u2026 FALSE   https:\/\u2026 port of cm\u2026 TRUE  http\u2026 #&gt;  8 6.80e7 cmark gaborcsa\u2026 &lt;nam\u2026 FALSE   https:\/\u2026 CommonMark\u2026 TRUE  http\u2026 #&gt;  9 6.32e7 cond\u2026 gaborcsa\u2026 &lt;nam\u2026 FALSE   https:\/\u2026 &lt;NA&gt;        TRUE  http\u2026 #&gt; 10 2.43e7 cray\u2026 gaborcsa\u2026 &lt;nam\u2026 FALSE   https:\/\u2026 R package \u2026 FALSE http\u2026 #&gt; # \u2026 with 166 more rows, and 58 more variables: forks_url &lt;chr&gt;, #&gt; #   keys_url &lt;chr&gt;, collaborators_url &lt;chr&gt;, teams_url &lt;chr&gt;, #&gt; #   hooks_url &lt;chr&gt;, issue_events_url &lt;chr&gt;, events_url &lt;chr&gt;, #&gt; #   assignees_url &lt;chr&gt;, branches_url &lt;chr&gt;, tags_url &lt;chr&gt;, #&gt; #   blobs_url &lt;chr&gt;, git_tags_url &lt;chr&gt;, git_refs_url &lt;chr&gt;, #&gt; #   trees_url &lt;chr&gt;, statuses_url &lt;chr&gt;, languages_url &lt;chr&gt;, #&gt; #   stargazers_url &lt;chr&gt;, contributors_url &lt;chr&gt;, subscribers_url &lt;chr&gt;, #&gt; #   subscription_url &lt;chr&gt;, commits_url &lt;chr&gt;, git_commits_url &lt;chr&gt;, #&gt; #   comments_url &lt;chr&gt;, issue_comment_url &lt;chr&gt;, contents_url &lt;chr&gt;, #&gt; #   compare_url &lt;chr&gt;, merges_url &lt;chr&gt;, archive_url &lt;chr&gt;, #&gt; #   downloads_url &lt;chr&gt;, issues_url &lt;chr&gt;, pulls_url &lt;chr&gt;, #&gt; #   milestones_url &lt;chr&gt;, notifications_url &lt;chr&gt;, labels_url &lt;chr&gt;, #&gt; #   releases_url &lt;chr&gt;, deployments_url &lt;chr&gt;, created_at &lt;chr&gt;, #&gt; #   updated_at &lt;chr&gt;, pushed_at &lt;chr&gt;, git_url &lt;chr&gt;, ssh_url &lt;chr&gt;, #&gt; #   clone_url &lt;chr&gt;, svn_url &lt;chr&gt;, size &lt;int&gt;, stargazers_count &lt;int&gt;, #&gt; #   watchers_count &lt;int&gt;, language &lt;chr&gt;, has_issues &lt;lgl&gt;, #&gt; #   has_downloads &lt;lgl&gt;, has_wiki &lt;lgl&gt;, has_pages &lt;lgl&gt;, #&gt; #   forks_count &lt;int&gt;, open_issues_count &lt;int&gt;, forks &lt;int&gt;, #&gt; #   open_issues &lt;int&gt;, watchers &lt;int&gt;, default_branch &lt;chr&gt;, #&gt; #   homepage &lt;chr&gt;<\/code><\/pre>\n<p>  <\/p>\n<h1 id=\"personazhi-igry-prestolov\">\u041f\u0435\u0440\u0441\u043e\u043d\u0430\u0436\u0438 \u0418\u0433\u0440\u044b \u041f\u0440\u0435\u0441\u0442\u043e\u043b\u043e\u0432<\/h1>\n<p>  <\/p>\n<p><code>got_chars<\/code> \u0438\u043c\u0435\u0435\u0442 \u0438\u0434\u0435\u043d\u0442\u0438\u0447\u043d\u0443\u044e \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443 \u0441 <code>gh_users<\/code>: \u044d\u0442\u043e \u043d\u0430\u0431\u043e\u0440 \u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u043d\u044b\u0445 \u0441\u043f\u0438\u0441\u043a\u043e\u0432, \u0433\u0434\u0435 \u043a\u0430\u0436\u0434\u044b\u0439 \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0435\u0433\u043e \u0441\u043f\u0438\u0441\u043a\u0430 \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0430\u0442\u0440\u0438\u0431\u0443\u0442 \u043f\u0435\u0440\u0441\u043e\u043d\u0430\u0436\u0430 \u0418\u0433\u0440\u044b \u041f\u0440\u0435\u0441\u0442\u043e\u043b\u043e\u0432. \u041f\u0440\u0438\u0432\u0435\u0434\u0435\u043d\u0438\u0435 <code>got_chars<\/code> \u043a \u0442\u0430\u0431\u043b\u0438\u0447\u043d\u043e\u043c\u0443 \u0432\u0438\u0434\u0443 \u043c\u044b \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u043c \u0441 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0434\u0430\u0442\u0430 \u0444\u0440\u0435\u0439\u043c\u0430, \u0442\u0430\u043a \u0436\u0435 \u043a\u0430\u043a \u0438 \u0432 \u043f\u0440\u0438\u0432\u0435\u0434\u0451\u043d\u043d\u044b\u0445 \u0440\u0430\u043d\u0435\u0435 \u043f\u0440\u0438\u043c\u0435\u0440\u0430\u0445, \u0430 \u0437\u0430\u0442\u0435\u043c \u043f\u0435\u0440\u0435\u0432\u0435\u0434\u0451\u043c \u043a\u0430\u0436\u0434\u044b\u0439 \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u0432 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0439 \u0441\u0442\u043e\u043b\u0431\u0435\u0446:<\/p>\n<p>  <\/p>\n<pre><code class=\"plaintext\">chars &lt;- tibble(char = got_chars) chars #&gt; # A tibble: 30 x 1 #&gt;    char              #&gt;    &lt;list&gt;            #&gt;  1 &lt;named list [18]&gt; #&gt;  2 &lt;named list [18]&gt; #&gt;  3 &lt;named list [18]&gt; #&gt;  4 &lt;named list [18]&gt; #&gt;  5 &lt;named list [18]&gt; #&gt;  6 &lt;named list [18]&gt; #&gt;  7 &lt;named list [18]&gt; #&gt;  8 &lt;named list [18]&gt; #&gt;  9 &lt;named list [18]&gt; #&gt; 10 &lt;named list [18]&gt; #&gt; # \u2026 with 20 more rows  chars2 &lt;- chars %&gt;% unnest_wider(char) chars2 #&gt; # A tibble: 30 x 18 #&gt;    url      id name  gender culture born  died  alive titles aliases father #&gt;    &lt;chr&gt; &lt;int&gt; &lt;chr&gt; &lt;chr&gt;  &lt;chr&gt;   &lt;chr&gt; &lt;chr&gt; &lt;lgl&gt; &lt;list&gt; &lt;list&gt;  &lt;chr&gt;  #&gt;  1 http\u2026  1022 Theo\u2026 Male   Ironbo\u2026 In 2\u2026 &quot;&quot;    TRUE  &lt;chr \u2026 &lt;chr [\u2026 &quot;&quot;     #&gt;  2 http\u2026  1052 Tyri\u2026 Male   &quot;&quot;      In 2\u2026 &quot;&quot;    TRUE  &lt;chr \u2026 &lt;chr [\u2026 &quot;&quot;     #&gt;  3 http\u2026  1074 Vict\u2026 Male   Ironbo\u2026 In 2\u2026 &quot;&quot;    TRUE  &lt;chr \u2026 &lt;chr [\u2026 &quot;&quot;     #&gt;  4 http\u2026  1109 Will  Male   &quot;&quot;      &quot;&quot;    In 2\u2026 FALSE &lt;chr \u2026 &lt;chr [\u2026 &quot;&quot;     #&gt;  5 http\u2026  1166 Areo\u2026 Male   Norvos\u2026 In 2\u2026 &quot;&quot;    TRUE  &lt;chr \u2026 &lt;chr [\u2026 &quot;&quot;     #&gt;  6 http\u2026  1267 Chett Male   &quot;&quot;      At H\u2026 In 2\u2026 FALSE &lt;chr \u2026 &lt;chr [\u2026 &quot;&quot;     #&gt;  7 http\u2026  1295 Cres\u2026 Male   &quot;&quot;      In 2\u2026 In 2\u2026 FALSE &lt;chr \u2026 &lt;chr [\u2026 &quot;&quot;     #&gt;  8 http\u2026   130 Aria\u2026 Female Dornish In 2\u2026 &quot;&quot;    TRUE  &lt;chr \u2026 &lt;chr [\u2026 &quot;&quot;     #&gt;  9 http\u2026  1303 Daen\u2026 Female Valyri\u2026 In 2\u2026 &quot;&quot;    TRUE  &lt;chr \u2026 &lt;chr [\u2026 &quot;&quot;     #&gt; 10 http\u2026  1319 Davo\u2026 Male   Wester\u2026 In 2\u2026 &quot;&quot;    TRUE  &lt;chr \u2026 &lt;chr [\u2026 &quot;&quot;     #&gt; # \u2026 with 20 more rows, and 7 more variables: mother &lt;chr&gt;, spouse &lt;chr&gt;, #&gt; #   allegiances &lt;list&gt;, books &lt;list&gt;, povBooks &lt;list&gt;, tvSeries &lt;list&gt;, #&gt; #   playedBy &lt;list&gt;<\/code><\/pre>\n<p>  <\/p>\n<p>\u0421\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 <code>got_chars<\/code> \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u043b\u043e\u0436\u043d\u0435\u0435, \u0447\u0435\u043c <code>gh_users<\/code>, \u0442.\u043a. \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b \u0441\u043f\u0438\u0441\u043a\u0430 <code>char<\/code> \u0441\u0430\u043c\u0438 \u043f\u043e \u0441\u0435\u0431\u0435 \u044f\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u0441\u043f\u0438\u0441\u043a\u043e\u043c, \u0432 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0435 \u043c\u044b \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0441\u0442\u043e\u043b\u0431\u044b \u2014 \u0441\u043f\u0438\u0441\u043a\u0438:<\/p>\n<p>  <\/p>\n<pre><code class=\"plaintext\">chars2 %&gt;% select_if(is.list) #&gt; # A tibble: 30 x 7 #&gt;    titles    aliases    allegiances books     povBooks  tvSeries  playedBy  #&gt;    &lt;list&gt;    &lt;list&gt;     &lt;list&gt;      &lt;list&gt;    &lt;list&gt;    &lt;list&gt;    &lt;list&gt;    #&gt;  1 &lt;chr [3]&gt; &lt;chr [4]&gt;  &lt;chr [1]&gt;   &lt;chr [3]&gt; &lt;chr [2]&gt; &lt;chr [6]&gt; &lt;chr [1]&gt; #&gt;  2 &lt;chr [2]&gt; &lt;chr [11]&gt; &lt;chr [1]&gt;   &lt;chr [2]&gt; &lt;chr [4]&gt; &lt;chr [6]&gt; &lt;chr [1]&gt; #&gt;  3 &lt;chr [2]&gt; &lt;chr [1]&gt;  &lt;chr [1]&gt;   &lt;chr [3]&gt; &lt;chr [2]&gt; &lt;chr [1]&gt; &lt;chr [1]&gt; #&gt;  4 &lt;chr [1]&gt; &lt;chr [1]&gt;  &lt;???&gt;       &lt;chr [1]&gt; &lt;chr [1]&gt; &lt;chr [1]&gt; &lt;chr [1]&gt; #&gt;  5 &lt;chr [1]&gt; &lt;chr [1]&gt;  &lt;chr [1]&gt;   &lt;chr [3]&gt; &lt;chr [2]&gt; &lt;chr [2]&gt; &lt;chr [1]&gt; #&gt;  6 &lt;chr [1]&gt; &lt;chr [1]&gt;  &lt;???&gt;       &lt;chr [2]&gt; &lt;chr [1]&gt; &lt;chr [1]&gt; &lt;chr [1]&gt; #&gt;  7 &lt;chr [1]&gt; &lt;chr [1]&gt;  &lt;???&gt;       &lt;chr [2]&gt; &lt;chr [1]&gt; &lt;chr [1]&gt; &lt;chr [1]&gt; #&gt;  8 &lt;chr [1]&gt; &lt;chr [1]&gt;  &lt;chr [1]&gt;   &lt;chr [4]&gt; &lt;chr [1]&gt; &lt;chr [1]&gt; &lt;chr [1]&gt; #&gt;  9 &lt;chr [5]&gt; &lt;chr [11]&gt; &lt;chr [1]&gt;   &lt;chr [1]&gt; &lt;chr [4]&gt; &lt;chr [6]&gt; &lt;chr [1]&gt; #&gt; 10 &lt;chr [4]&gt; &lt;chr [5]&gt;  &lt;chr [2]&gt;   &lt;chr [1]&gt; &lt;chr [3]&gt; &lt;chr [5]&gt; &lt;chr [1]&gt; #&gt; # \u2026 with 20 more rows<\/code><\/pre>\n<p>  <\/p>\n<p>\u0412\u0430\u0448\u0438 \u0434\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0438\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u0437\u0430\u0432\u0438\u0441\u044f\u0442 \u043e\u0442 \u0446\u0435\u043b\u0435\u0439 \u0430\u043d\u0430\u043b\u0438\u0437\u0430. \u0412\u043e\u0437\u043c\u043e\u0436\u043d\u043e, \u0432\u0430\u043c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043f\u043e\u043c\u0435\u0441\u0442\u0438\u0442\u044c \u0432 \u0441\u0442\u0440\u043e\u043a\u0438 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043f\u043e \u043a\u0430\u0436\u0434\u043e\u0439 \u043a\u043d\u0438\u0433\u0435 \u0438 \u0441\u0435\u0440\u0438\u0430\u043b\u0435, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u043f\u043e\u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043f\u0435\u0440\u0441\u043e\u043d\u0430\u0436:<\/p>\n<p>  <\/p>\n<pre><code class=\"plaintext\">chars2 %&gt;%    select(name, books, tvSeries) %&gt;%    pivot_longer(c(books, tvSeries), names_to = &quot;media&quot;, values_to = &quot;value&quot;) %&gt;%    unnest_longer(value) #&gt; # A tibble: 180 x 3 #&gt;    name             media    value             #&gt;    &lt;chr&gt;            &lt;chr&gt;    &lt;chr&gt;             #&gt;  1 Theon Greyjoy    books    A Game of Thrones #&gt;  2 Theon Greyjoy    books    A Storm of Swords #&gt;  3 Theon Greyjoy    books    A Feast for Crows #&gt;  4 Theon Greyjoy    tvSeries Season 1          #&gt;  5 Theon Greyjoy    tvSeries Season 2          #&gt;  6 Theon Greyjoy    tvSeries Season 3          #&gt;  7 Theon Greyjoy    tvSeries Season 4          #&gt;  8 Theon Greyjoy    tvSeries Season 5          #&gt;  9 Theon Greyjoy    tvSeries Season 6          #&gt; 10 Tyrion Lannister books    A Feast for Crows #&gt; # \u2026 with 170 more rows<\/code><\/pre>\n<p>  <\/p>\n<p>\u0418\u043b\u0438, \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c, \u0432\u044b \u0445\u043e\u0442\u0438\u0442\u0435 \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0442\u0430\u0431\u043b\u0438\u0446\u0443, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043f\u043e\u0437\u0432\u043e\u043b\u0438\u0442 \u0432\u0430\u043c \u0441\u043e\u043f\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043f\u0435\u0440\u0441\u043e\u043d\u0430\u0436\u0430 \u0438 \u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u0435:<\/p>\n<p>  <\/p>\n<pre><code class=\"plaintext\">chars2 %&gt;%    select(name, title = titles) %&gt;%    unnest_longer(title) #&gt; # A tibble: 60 x 2 #&gt;    name              title                                                #&gt;    &lt;chr&gt;             &lt;chr&gt;                                                #&gt;  1 Theon Greyjoy     Prince of Winterfell                                 #&gt;  2 Theon Greyjoy     Captain of Sea Bitch                                 #&gt;  3 Theon Greyjoy     Lord of the Iron Islands (by law of the green lands) #&gt;  4 Tyrion Lannister  Acting Hand of the King (former)                     #&gt;  5 Tyrion Lannister  Master of Coin (former)                              #&gt;  6 Victarion Greyjoy Lord Captain of the Iron Fleet                       #&gt;  7 Victarion Greyjoy Master of the Iron Victory                           #&gt;  8 Will              &quot;&quot;                                                   #&gt;  9 Areo Hotah        Captain of the Guard at Sunspear                     #&gt; 10 Chett             &quot;&quot;                                                   #&gt; # \u2026 with 50 more rows<\/code><\/pre>\n<p>  <\/p>\n<p>(\u041e\u0431\u0440\u0430\u0442\u0438\u0442\u0435 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435, \u043d\u0430 \u043f\u0443\u0441\u0442\u044b\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f <code>&quot;&quot;<\/code> \u0432 \u043f\u043e\u043b\u0435 <code>title<\/code>, \u044d\u0442\u043e \u0441\u0432\u044f\u0437\u0430\u043d\u043e \u0441 \u043e\u0448\u0438\u0431\u043a\u0430\u043c\u0438 \u0434\u043e\u043f\u0443\u0449\u0435\u043d\u043d\u044b\u043c\u0438 \u043f\u0440\u0438 \u0432\u0432\u043e\u0434\u0435 \u0434\u0430\u043d\u043d\u044b\u0445 \u0432 <code>got_chars<\/code>: \u043d\u0430 \u0441\u0430\u043c\u043e\u043c \u0434\u0435\u043b\u0435 \u043f\u0435\u0440\u0441\u043e\u043d\u0430\u0436\u0438 \u0434\u043b\u044f \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043d\u0435\u0442 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0445 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u043e\u0432 \u043a\u043d\u0438\u0433 \u0438 \u0441\u0435\u0440\u0438\u0430\u043b\u043e\u0432 \u0432 \u043f\u043e\u043b\u0435 <code>title<\/code> \u0434\u043e\u043b\u0436\u043d\u044b \u0438\u043c\u0435\u0442\u044c \u0432\u0435\u043a\u0442\u043e\u0440 \u0434\u043b\u0438\u043d\u044b 0, \u0430 \u043d\u0435 \u0432\u0435\u043a\u0442\u043e\u0440 \u0434\u043b\u0438\u043d\u044b 1, \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0449\u0438\u0439 \u043f\u0443\u0441\u0442\u0443\u044e \u0441\u0442\u0440\u043e\u043a\u0443.)<\/p>\n<p>  <\/p>\n<p>\u041c\u044b \u043c\u043e\u0436\u0435\u043c \u043f\u0435\u0440\u0435\u043f\u0438\u0441\u0430\u0442\u044c \u043f\u0440\u0438\u0432\u0435\u0434\u0451\u043d\u043d\u044b\u0439 \u0432\u044b\u0448\u0435 \u043f\u0440\u0438\u043c\u0435\u0440 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u044e <code>unnest_auto()<\/code>. \u042d\u0442\u043e\u0442 \u043f\u043e\u0434\u0445\u043e\u0434 \u0443\u0434\u043e\u0431\u0435\u043d \u0434\u043b\u044f \u0440\u0430\u0437\u043e\u0432\u043e\u0433\u043e \u0430\u043d\u0430\u043b\u0438\u0437\u0430, \u043d\u043e \u043d\u0435 \u0441\u0442\u043e\u0438\u0442 \u043f\u043e\u043b\u0430\u0433\u0430\u0442\u044c\u0441\u044f \u043d\u0430 <code>unnest_auto()<\/code> \u0434\u043b\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u043d\u0430 \u0440\u0435\u0433\u0443\u043b\u044f\u0440\u043d\u043e\u0439 \u043e\u0441\u043d\u043e\u0432\u0435. \u0414\u0435\u043b\u043e \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u0435\u0441\u043b\u0438 \u0432\u0430\u0448\u0430 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 \u0434\u0430\u043d\u043d\u044b\u0445 \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u0441\u044f <code>unnest_auto()<\/code> \u043c\u043e\u0436\u0435\u0442 \u043f\u043e\u043c\u0435\u043d\u044f\u0442\u044c \u0432\u044b\u0431\u0440\u0430\u043d\u043d\u044b\u0439 \u043c\u0435\u0445\u0430\u043d\u0438\u0437\u043c \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0434\u0430\u043d\u043d\u044b\u0445, \u0435\u0441\u043b\u0438 \u0438\u0437\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e \u043e\u043d \u0440\u0430\u0437\u0432\u043e\u0440\u0430\u0447\u0438\u0432\u0430\u043b \u0441\u0442\u043e\u043b\u0431\u0446\u044b-\u0441\u043f\u0438\u0441\u043a\u0438 \u0432 \u0441\u0442\u0440\u043e\u043a\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f <code>unnest_longer()<\/code>, \u0442\u043e \u043f\u0440\u0438 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0438 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b \u0432\u0445\u043e\u0434\u044f\u0449\u0438\u0445 \u0434\u0430\u043d\u043d\u044b\u0445 \u043b\u043e\u0433\u0438\u043a\u0430 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0430 \u0432 \u043f\u043e\u043b\u044c\u0437\u0443 <code>unnest_wider()<\/code>, \u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u0442\u0430\u043a\u043e\u0433\u043e \u043f\u043e\u0434\u0445\u043e\u0434\u0430 \u043d\u0430 \u043f\u043e\u0441\u0442\u043e\u044f\u043d\u043d\u043e\u0439 \u043e\u0441\u043d\u043e\u0432\u0435 \u043c\u043e\u0436\u0435\u0442 \u043f\u0440\u0438\u0432\u0435\u0441\u0442\u0438 \u043a \u043d\u0435\u043f\u0440\u0435\u0434\u0432\u0438\u0434\u0435\u043d\u043d\u044b\u043c \u043e\u0448\u0438\u0431\u043a\u0430\u043c.<\/p>\n<p>  <\/p>\n<pre><code class=\"plaintext\">tibble(char = got_chars) %&gt;%    unnest_auto(char) %&gt;%    select(name, title = titles) %&gt;%    unnest_auto(title) #&gt; Using `unnest_wider(char)`; elements have 18 names in common #&gt; Using `unnest_longer(title)`; no element has names #&gt; # A tibble: 60 x 2 #&gt;    name              title                                                #&gt;    &lt;chr&gt;             &lt;chr&gt;                                                #&gt;  1 Theon Greyjoy     Prince of Winterfell                                 #&gt;  2 Theon Greyjoy     Captain of Sea Bitch                                 #&gt;  3 Theon Greyjoy     Lord of the Iron Islands (by law of the green lands) #&gt;  4 Tyrion Lannister  Acting Hand of the King (former)                     #&gt;  5 Tyrion Lannister  Master of Coin (former)                              #&gt;  6 Victarion Greyjoy Lord Captain of the Iron Fleet                       #&gt;  7 Victarion Greyjoy Master of the Iron Victory                           #&gt;  8 Will              &quot;&quot;                                                   #&gt;  9 Areo Hotah        Captain of the Guard at Sunspear                     #&gt; 10 Chett             &quot;&quot;                                                   #&gt; # \u2026 with 50 more rows<\/code><\/pre>\n<p>  <\/p>\n<h1 id=\"geokodirovanie-s-pomoschyu-google\">\u0413\u0435\u043e\u043a\u043e\u0434\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e Google<\/h1>\n<p>  <\/p>\n<p>\u0414\u0430\u043b\u0435\u0435 \u043c\u044b \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u0431\u043e\u043b\u0435\u0435 \u0441\u043b\u043e\u0436\u043d\u0443\u044e \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443 \u0434\u0430\u043d\u043d\u044b\u0445, \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c\u044b\u0445 \u043e\u0442 \u0441\u043b\u0443\u0436\u0431\u044b \u0433\u0435\u043e\u043a\u043e\u0434\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f Google. \u041a\u044d\u0448\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0443\u0447\u0451\u0442\u043d\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0445 \u043f\u0440\u043e\u0442\u0438\u0432\u043e\u0440\u0435\u0447\u0438\u0442 \u0443\u0441\u043b\u043e\u0432\u0438\u044f\u043c \u0440\u0430\u0431\u043e\u0442\u044b \u0441 API Google maps, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u044f \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u043d\u0430\u043f\u0438\u0448\u0443 \u043f\u0440\u043e\u0441\u0442\u0443\u044e \u043e\u0431\u043e\u043b\u043e\u0447\u043a\u0443 \u043a API. \u041a\u043e\u0442\u043e\u0440\u0430\u044f \u043e\u0441\u043d\u043e\u0432\u0430\u043d\u0430 \u043d\u0430 \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u0438 \u043a\u043b\u044e\u0447\u0430 API Google \u043a\u0430\u0440\u0442 \u0432 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 \u0441\u0440\u0435\u0434\u044b; \u0435\u0441\u043b\u0438 \u0432 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u0441\u0440\u0435\u0434\u044b \u0443 \u0432\u0430\u0441 \u043d\u0435 \u0441\u043e\u0445\u0440\u0430\u043d\u0451\u043d \u043a\u043b\u044e\u0447 \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 API Google Maps, \u0444\u0440\u0430\u0433\u043c\u0435\u043d\u0442\u044b \u043a\u043e\u0434\u0430 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u043d\u044b\u0435 \u0432 \u044d\u0442\u043e\u043c \u0440\u0430\u0437\u0434\u0435\u043b\u0435 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0442\u044c\u0441\u044f \u043d\u0435 \u0431\u0443\u0434\u0443\u0442.<\/p>\n<p>  <\/p>\n<pre><code class=\"plaintext\">has_key &lt;- !identical(Sys.getenv(&quot;GOOGLE_MAPS_API_KEY&quot;), &quot;&quot;) if (!has_key) {   message(&quot;No Google Maps API key found; code chunks will not be run&quot;) }  # https:\/\/developers.google.com\/maps\/documentation\/geocoding geocode &lt;- function(address, api_key = Sys.getenv(&quot;GOOGLE_MAPS_API_KEY&quot;)) {   url &lt;- &quot;https:\/\/maps.googleapis.com\/maps\/api\/geocode\/json&quot;   url &lt;- paste0(url, &quot;?address=&quot;, URLencode(address), &quot;&amp;key=&quot;, api_key)    jsonlite::read_json(url) }<\/code><\/pre>\n<p>  <\/p>\n<p>\u0421\u043f\u0438\u0441\u043e\u043a, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u044d\u0442\u0430 \u0444\u0443\u043d\u043a\u0446\u0438\u044f, \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u0441\u043b\u043e\u0436\u0435\u043d:<\/p>\n<p>  <\/p>\n<pre><code class=\"plaintext\">houston &lt;- geocode(&quot;Houston TX&quot;) str(houston) #&gt; List of 2 #&gt;  $ results:List of 1 #&gt;   ..$ :List of 5 #&gt;   .. ..$ address_components:List of 4 #&gt;   .. .. ..$ :List of 3 #&gt;   .. .. .. ..$ long_name : chr &quot;Houston&quot; #&gt;   .. .. .. ..$ short_name: chr &quot;Houston&quot; #&gt;   .. .. .. ..$ types     :List of 2 #&gt;   .. .. .. .. ..$ : chr &quot;locality&quot; #&gt;   .. .. .. .. ..$ : chr &quot;political&quot; #&gt;   .. .. ..$ :List of 3 #&gt;   .. .. .. ..$ long_name : chr &quot;Harris County&quot; #&gt;   .. .. .. ..$ short_name: chr &quot;Harris County&quot; #&gt;   .. .. .. ..$ types     :List of 2 #&gt;   .. .. .. .. ..$ : chr &quot;administrative_area_level_2&quot; #&gt;   .. .. .. .. ..$ : chr &quot;political&quot; #&gt;   .. .. ..$ :List of 3 #&gt;   .. .. .. ..$ long_name : chr &quot;Texas&quot; #&gt;   .. .. .. ..$ short_name: chr &quot;TX&quot; #&gt;   .. .. .. ..$ types     :List of 2 #&gt;   .. .. .. .. ..$ : chr &quot;administrative_area_level_1&quot; #&gt;   .. .. .. .. ..$ : chr &quot;political&quot; #&gt;   .. .. ..$ :List of 3 #&gt;   .. .. .. ..$ long_name : chr &quot;United States&quot; #&gt;   .. .. .. ..$ short_name: chr &quot;US&quot; #&gt;   .. .. .. ..$ types     :List of 2 #&gt;   .. .. .. .. ..$ : chr &quot;country&quot; #&gt;   .. .. .. .. ..$ : chr &quot;political&quot; #&gt;   .. ..$ formatted_address : chr &quot;Houston, TX, USA&quot; #&gt;   .. ..$ geometry          :List of 4 #&gt;   .. .. ..$ bounds       :List of 2 #&gt;   .. .. .. ..$ northeast:List of 2 #&gt;   .. .. .. .. ..$ lat: num 30.1 #&gt;   .. .. .. .. ..$ lng: num -95 #&gt;   .. .. .. ..$ southwest:List of 2 #&gt;   .. .. .. .. ..$ lat: num 29.5 #&gt;   .. .. .. .. ..$ lng: num -95.8 #&gt;   .. .. ..$ location     :List of 2 #&gt;   .. .. .. ..$ lat: num 29.8 #&gt;   .. .. .. ..$ lng: num -95.4 #&gt;   .. .. ..$ location_type: chr &quot;APPROXIMATE&quot; #&gt;   .. .. ..$ viewport     :List of 2 #&gt;   .. .. .. ..$ northeast:List of 2 #&gt;   .. .. .. .. ..$ lat: num 30.1 #&gt;   .. .. .. .. ..$ lng: num -95 #&gt;   .. .. .. ..$ southwest:List of 2 #&gt;   .. .. .. .. ..$ lat: num 29.5 #&gt;   .. .. .. .. ..$ lng: num -95.8 #&gt;   .. ..$ place_id          : chr &quot;ChIJAYWNSLS4QIYROwVl894CDco&quot; #&gt;   .. ..$ types             :List of 2 #&gt;   .. .. ..$ : chr &quot;locality&quot; #&gt;   .. .. ..$ : chr &quot;political&quot; #&gt;  $ status : chr &quot;OK&quot;<\/code><\/pre>\n<p>  <\/p>\n<p>\u041a \u0441\u0447\u0430\u0441\u0442\u044c\u044e, \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u043f\u043e\u0448\u0430\u0433\u043e\u0432\u043e \u0440\u0435\u0448\u0438\u0442\u044c \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0443 \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u044d\u0442\u0438\u0445 \u0434\u0430\u043d\u043d\u044b\u0445 \u0432 \u0442\u0430\u0431\u043b\u0438\u0447\u043d\u044b\u0439 \u0432\u0438\u0434 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0444\u0443\u043d\u043a\u0446\u0438\u0439 <code>tidyr<\/code>. \u0427\u0442\u043e\u0431\u044b \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0437\u0430\u0434\u0430\u0447\u0443 \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u0441\u043b\u043e\u0436\u043d\u0435\u0435 \u0438 \u0440\u0435\u0430\u043b\u0438\u0441\u0442\u0438\u0447\u043d\u0435\u0435, \u044f \u043d\u0430\u0447\u043d\u0443 \u0441 \u0433\u0435\u043e\u043a\u043e\u0434\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u0445 \u0433\u043e\u0440\u043e\u0434\u043e\u0432:<\/p>\n<p>  <\/p>\n<pre><code class=\"plaintext\">  city &lt;-   c ( &quot;Houston&quot; , &quot;LA&quot; , &quot;New York&quot; , &quot;Chicago&quot; , &quot;Springfield&quot; )  city_geo &lt;-   purrr::map (city, geocode) <\/code><\/pre>\n<p>  <\/p>\n<p>\u041f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u044b\u0439 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u044f \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u0443\u044e \u0432 <code>tibble<\/code>, \u0434\u043b\u044f \u0443\u0434\u043e\u0431\u0441\u0442\u0432\u0430 \u0434\u043e\u0431\u0430\u0432\u043b\u044e \u0441\u0442\u043e\u043b\u0431\u0435\u0446 \u0441 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u043c \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435\u043c \u0433\u043e\u0440\u043e\u0434\u0430. <\/p>\n<p>  <\/p>\n<pre><code class=\"plaintext\">loc &lt;- tibble(city = city, json = city_geo) loc #&gt; # A tibble: 5 x 2 #&gt;   city        json             #&gt;   &lt;chr&gt;       &lt;list&gt;           #&gt; 1 Houston     &lt;named list [2]&gt; #&gt; 2 LA          &lt;named list [2]&gt; #&gt; 3 New York    &lt;named list [2]&gt; #&gt; 4 Chicago     &lt;named list [2]&gt; #&gt; 5 Springfield &lt;named list [2]&gt;<\/code><\/pre>\n<p>  <\/p>\n<p>\u041f\u0435\u0440\u0432\u044b\u0439 \u0443\u0440\u043e\u0432\u0435\u043d\u044c \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b <code>status<\/code> \u0438 <code>result<\/code>, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u0440\u0430\u0437\u0432\u0435\u0440\u043d\u0443\u0442\u044c \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e <code>unnest_wider()<\/code> :<\/p>\n<p>  <\/p>\n<pre><code class=\"plaintext\">loc %&gt;%   unnest_wider(json) #&gt; # A tibble: 5 x 3 #&gt;   city        results    status #&gt;   &lt;chr&gt;       &lt;list&gt;     &lt;chr&gt;  #&gt; 1 Houston     &lt;list [1]&gt; OK     #&gt; 2 LA          &lt;list [1]&gt; OK     #&gt; 3 New York    &lt;list [1]&gt; OK     #&gt; 4 Chicago     &lt;list [1]&gt; OK     #&gt; 5 Springfield &lt;list [1]&gt; OK<\/code><\/pre>\n<p>  <\/p>\n<p>\u041e\u0431\u0440\u0430\u0442\u0438\u0442\u0435 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435, \u0447\u0442\u043e <code>results<\/code> \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043c\u043d\u043e\u0433\u043e\u0443\u0440\u043e\u0432\u043d\u0435\u0432\u044b\u043c \u0441\u043f\u0438\u0441\u043a\u043e\u043c. \u0423 \u0431\u043e\u043b\u044c\u0448\u0438\u043d\u0441\u0442\u0432\u0430 \u0433\u043e\u0440\u043e\u0434\u043e\u0432 \u0435\u0441\u0442\u044c 1 \u044d\u043b\u0435\u043c\u0435\u043d\u0442 (\u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0449\u0438\u0439 \u0443\u043d\u0438\u043a\u0430\u043b\u044c\u043d\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435, \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0435\u0435 API \u0433\u0435\u043e\u043a\u043e\u0434\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f), \u043d\u043e \u0443 \u0421\u043f\u0440\u0438\u043d\u0433\u0444\u0438\u043b\u0434\u0430 \u0438\u0445 \u0434\u0432\u0430. \u041c\u044b \u043c\u043e\u0436\u0435\u043c \u0432\u044b\u0442\u0430\u0449\u0438\u0442\u044c \u0438\u0445 \u0432 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0435 \u0441\u0442\u0440\u043e\u043a\u0438 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e <code>unnest_longer()<\/code> :<\/p>\n<p>  <\/p>\n<pre><code class=\"plaintext\">loc %&gt;%   unnest_wider(json) %&gt;%    unnest_longer(results) #&gt; # A tibble: 5 x 3 #&gt;   city        results          status #&gt;   &lt;chr&gt;       &lt;list&gt;           &lt;chr&gt;  #&gt; 1 Houston     &lt;named list [5]&gt; OK     #&gt; 2 LA          &lt;named list [5]&gt; OK     #&gt; 3 New York    &lt;named list [5]&gt; OK     #&gt; 4 Chicago     &lt;named list [5]&gt; OK     #&gt; 5 Springfield &lt;named list [5]&gt; OK<\/code><\/pre>\n<p>  <\/p>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u0432\u0441\u0435 \u043e\u043d\u0438 \u0438\u043c\u0435\u044e\u0442 \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u044b\u0435 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b, \u0432 \u0447\u0451\u043c \u043c\u043e\u0436\u043d\u043e \u0443\u0431\u0435\u0434\u0438\u0442\u044c\u0441\u044f \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e <code>unnest_wider()<\/code>:<\/p>\n<p>  <\/p>\n<pre><code class=\"plaintext\">loc %&gt;%   unnest_wider(json) %&gt;%    unnest_longer(results) %&gt;%    unnest_wider(results) #&gt; # A tibble: 5 x 7 #&gt;   city   address_componen\u2026 formatted_addre\u2026 geometry place_id  types status #&gt;   &lt;chr&gt;  &lt;list&gt;            &lt;chr&gt;            &lt;list&gt;   &lt;chr&gt;     &lt;lis&gt; &lt;chr&gt;  #&gt; 1 Houst\u2026 &lt;list [4]&gt;        Houston, TX, USA &lt;named \u2026 ChIJAYWN\u2026 &lt;lis\u2026 OK     #&gt; 2 LA     &lt;list [4]&gt;        Los Angeles, CA\u2026 &lt;named \u2026 ChIJE9on\u2026 &lt;lis\u2026 OK     #&gt; 3 New Y\u2026 &lt;list [3]&gt;        New York, NY, U\u2026 &lt;named \u2026 ChIJOwg_\u2026 &lt;lis\u2026 OK     #&gt; 4 Chica\u2026 &lt;list [4]&gt;        Chicago, IL, USA &lt;named \u2026 ChIJ7cv0\u2026 &lt;lis\u2026 OK     #&gt; 5 Sprin\u2026 &lt;list [5]&gt;        Springfield, MO\u2026 &lt;named \u2026 ChIJP5jI\u2026 &lt;lis\u2026 OK<\/code><\/pre>\n<p>  <\/p>\n<p>\u041c\u044b \u043c\u043e\u0436\u0435\u043c \u043d\u0430\u0439\u0442\u0438 \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442\u044b \u0448\u0438\u0440\u043e\u0442\u044b \u0438 \u0434\u043e\u043b\u0433\u043e\u0442\u044b \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0433\u043e\u0440\u043e\u0434\u0430 \u0440\u0430\u0437\u0432\u0435\u0440\u043d\u0443\u0432 \u0441\u043f\u0438\u0441\u043e\u043a <code>geometry<\/code>:<\/p>\n<p>  <\/p>\n<pre><code class=\"plaintext\">loc %&gt;%   unnest_wider(json) %&gt;%    unnest_longer(results) %&gt;%    unnest_wider(results) %&gt;%    unnest_wider(geometry) #&gt; # A tibble: 5 x 10 #&gt;   city  address_compone\u2026 formatted_addre\u2026 bounds location location_type #&gt;   &lt;chr&gt; &lt;list&gt;           &lt;chr&gt;            &lt;list&gt; &lt;list&gt;   &lt;chr&gt;         #&gt; 1 Hous\u2026 &lt;list [4]&gt;       Houston, TX, USA &lt;name\u2026 &lt;named \u2026 APPROXIMATE   #&gt; 2 LA    &lt;list [4]&gt;       Los Angeles, CA\u2026 &lt;name\u2026 &lt;named \u2026 APPROXIMATE   #&gt; 3 New \u2026 &lt;list [3]&gt;       New York, NY, U\u2026 &lt;name\u2026 &lt;named \u2026 APPROXIMATE   #&gt; 4 Chic\u2026 &lt;list [4]&gt;       Chicago, IL, USA &lt;name\u2026 &lt;named \u2026 APPROXIMATE   #&gt; 5 Spri\u2026 &lt;list [5]&gt;       Springfield, MO\u2026 &lt;name\u2026 &lt;named \u2026 APPROXIMATE   #&gt; # \u2026 with 4 more variables: viewport &lt;list&gt;, place_id &lt;chr&gt;, types &lt;list&gt;, #&gt; #   status &lt;chr&gt;<\/code><\/pre>\n<p>  <\/p>\n<p>\u0410 \u0437\u0430\u0442\u0435\u043c \u043c\u0435\u0441\u0442\u043e\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435, \u0434\u043b\u044f \u0447\u0435\u0433\u043e \u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u0440\u0430\u0437\u0432\u0435\u0440\u043d\u0443\u0442\u044c <code>location<\/code>:<\/p>\n<p>  <\/p>\n<pre><code class=\"plaintext\">loc %&gt;%   unnest_wider(json) %&gt;%   unnest_longer(results) %&gt;%   unnest_wider(results) %&gt;%   unnest_wider(geometry) %&gt;%   unnest_wider(location) #&gt; # A tibble: 5 x 11 #&gt;   city  address_compone\u2026 formatted_addre\u2026 bounds   lat    lng location_type #&gt;   &lt;chr&gt; &lt;list&gt;           &lt;chr&gt;            &lt;list&gt; &lt;dbl&gt;  &lt;dbl&gt; &lt;chr&gt;         #&gt; 1 Hous\u2026 &lt;list [4]&gt;       Houston, TX, USA &lt;name\u2026  29.8  -95.4 APPROXIMATE   #&gt; 2 LA    &lt;list [4]&gt;       Los Angeles, CA\u2026 &lt;name\u2026  34.1 -118.  APPROXIMATE   #&gt; 3 New \u2026 &lt;list [3]&gt;       New York, NY, U\u2026 &lt;name\u2026  40.7  -74.0 APPROXIMATE   #&gt; 4 Chic\u2026 &lt;list [4]&gt;       Chicago, IL, USA &lt;name\u2026  41.9  -87.6 APPROXIMATE   #&gt; 5 Spri\u2026 &lt;list [5]&gt;       Springfield, MO\u2026 &lt;name\u2026  37.2  -93.3 APPROXIMATE   #&gt; # \u2026 with 4 more variables: viewport &lt;list&gt;, place_id &lt;chr&gt;, types &lt;list&gt;, #&gt; #   status &lt;chr&gt;<\/code><\/pre>\n<p>  <\/p>\n<p>\u041e\u043f\u044f\u0442\u044c \u0436\u0435, <code>unnest_auto()<\/code> \u0443\u043f\u0440\u043e\u0449\u0430\u0435\u0442 \u043e\u043f\u0438\u0441\u0430\u043d\u043d\u0443\u044e \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u044e \u0441 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u043c\u0438 \u0440\u0438\u0441\u043a\u0430\u043c\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u043e\u0433\u0443\u0442 \u0431\u044b\u0442\u044c \u0432\u044b\u0437\u0432\u0430\u043d\u044b \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435\u043c \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b \u0432\u0445\u043e\u0434\u044f\u0449\u0438\u0445 \u0434\u0430\u043d\u043d\u044b\u0445:<\/p>\n<p>  <\/p>\n<pre><code class=\"plaintext\">loc %&gt;%   unnest_auto(json) %&gt;%   unnest_auto(results) %&gt;%   unnest_auto(results) %&gt;%   unnest_auto(geometry) %&gt;%   unnest_auto(location) #&gt; Using `unnest_wider(json)`; elements have 2 names in common #&gt; Using `unnest_longer(results)`; no element has names #&gt; Using `unnest_wider(results)`; elements have 5 names in common #&gt; Using `unnest_wider(geometry)`; elements have 4 names in common #&gt; Using `unnest_wider(location)`; elements have 2 names in common #&gt; # A tibble: 5 x 11 #&gt;   city  address_compone\u2026 formatted_addre\u2026 bounds   lat    lng location_type #&gt;   &lt;chr&gt; &lt;list&gt;           &lt;chr&gt;            &lt;list&gt; &lt;dbl&gt;  &lt;dbl&gt; &lt;chr&gt;         #&gt; 1 Hous\u2026 &lt;list [4]&gt;       Houston, TX, USA &lt;name\u2026  29.8  -95.4 APPROXIMATE   #&gt; 2 LA    &lt;list [4]&gt;       Los Angeles, CA\u2026 &lt;name\u2026  34.1 -118.  APPROXIMATE   #&gt; 3 New \u2026 &lt;list [3]&gt;       New York, NY, U\u2026 &lt;name\u2026  40.7  -74.0 APPROXIMATE   #&gt; 4 Chic\u2026 &lt;list [4]&gt;       Chicago, IL, USA &lt;name\u2026  41.9  -87.6 APPROXIMATE   #&gt; 5 Spri\u2026 &lt;list [5]&gt;       Springfield, MO\u2026 &lt;name\u2026  37.2  -93.3 APPROXIMATE   #&gt; # \u2026 with 4 more variables: viewport &lt;list&gt;, place_id &lt;chr&gt;, types &lt;list&gt;, #&gt; #   status &lt;chr&gt;<\/code><\/pre>\n<p>  <\/p>\n<p>\u041c\u044b \u0442\u0430\u043a\u0436\u0435 \u043c\u043e\u0436\u0435\u043c \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043d\u0430 \u043f\u0435\u0440\u0432\u044b\u0439 \u0430\u0434\u0440\u0435\u0441 \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0433\u043e\u0440\u043e\u0434\u0430:<\/p>\n<p>  <\/p>\n<pre><code class=\"plaintext\">loc %&gt;%   unnest_wider(json) %&gt;%   hoist(results, first_result = 1) %&gt;%   unnest_wider(first_result) %&gt;%   unnest_wider(geometry) %&gt;%   unnest_wider(location) #&gt; # A tibble: 5 x 11 #&gt;   city  address_compone\u2026 formatted_addre\u2026 bounds   lat    lng location_type #&gt;   &lt;chr&gt; &lt;list&gt;           &lt;chr&gt;            &lt;list&gt; &lt;dbl&gt;  &lt;dbl&gt; &lt;chr&gt;         #&gt; 1 Hous\u2026 &lt;list [4]&gt;       Houston, TX, USA &lt;name\u2026  29.8  -95.4 APPROXIMATE   #&gt; 2 LA    &lt;list [4]&gt;       Los Angeles, CA\u2026 &lt;name\u2026  34.1 -118.  APPROXIMATE   #&gt; 3 New \u2026 &lt;list [3]&gt;       New York, NY, U\u2026 &lt;name\u2026  40.7  -74.0 APPROXIMATE   #&gt; 4 Chic\u2026 &lt;list [4]&gt;       Chicago, IL, USA &lt;name\u2026  41.9  -87.6 APPROXIMATE   #&gt; 5 Spri\u2026 &lt;list [5]&gt;       Springfield, MO\u2026 &lt;name\u2026  37.2  -93.3 APPROXIMATE   #&gt; # \u2026 with 4 more variables: viewport &lt;list&gt;, place_id &lt;chr&gt;, types &lt;list&gt;, #&gt; #   status &lt;chr&gt;<\/code><\/pre>\n<p>  <\/p>\n<p>\u0418\u043b\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c <code>hoist()<\/code> \u0434\u043b\u044f \u043c\u043d\u043e\u0433\u043e\u0443\u0440\u043e\u0432\u043d\u0435\u0432\u043e\u0433\u043e \u043f\u043e\u0433\u0440\u0443\u0436\u0435\u043d\u0438\u044f, \u0447\u0442\u043e\u0431\u044b \u043f\u0435\u0440\u0435\u0439\u0442\u0438 \u043d\u0435\u043f\u043e\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u043a <code>lat<\/code> \u0438 <code>lng<\/code>. <\/p>\n<p>  <\/p>\n<pre><code class=\"plaintext\">loc %&gt;%   hoist(json,     lat = list(&quot;results&quot;, 1, &quot;geometry&quot;, &quot;location&quot;, &quot;lat&quot;),     lng = list(&quot;results&quot;, 1, &quot;geometry&quot;, &quot;location&quot;, &quot;lng&quot;)   ) #&gt; # A tibble: 5 x 4 #&gt;   city          lat    lng json             #&gt;   &lt;chr&gt;       &lt;dbl&gt;  &lt;dbl&gt; &lt;list&gt;           #&gt; 1 Houston      29.8  -95.4 &lt;named list [2]&gt; #&gt; 2 LA           34.1 -118.  &lt;named list [2]&gt; #&gt; 3 New York     40.7  -74.0 &lt;named list [2]&gt; #&gt; 4 Chicago      41.9  -87.6 &lt;named list [2]&gt; #&gt; 5 Springfield  37.2  -93.3 &lt;named list [2]&gt;<\/code><\/pre>\n<p>  <\/p>\n<h1 id=\"diskografiya-sharly-gelfand\">\u0414\u0438\u0441\u043a\u043e\u0433\u0440\u0430\u0444\u0438\u044f \u0428\u0430\u0440\u043b\u044b \u0413\u0435\u043b\u044c\u0444\u0430\u043d\u0434<\/h1>\n<p>  <\/p>\n<p>\u0412 \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d\u0438\u0438 \u043c\u044b \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u0441\u0430\u043c\u0443\u044e \u0441\u043b\u043e\u0436\u043d\u0443\u044e \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044e \u2014 \u0434\u0438\u0441\u043a\u043e\u0433\u0440\u0430\u0444\u0438\u044e \u0428\u0430\u0440\u043b\u044b \u0413\u0435\u043b\u044c\u0444\u0430\u043d\u0434. \u041a\u0430\u043a \u0438 \u0432 \u043f\u0440\u0438\u0432\u0435\u0434\u0451\u043d\u043d\u044b\u0445 \u0432\u044b\u0448\u0435 \u043f\u0440\u0438\u043c\u0435\u0440\u0430\u0445, \u043c\u044b \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u043c \u0441 \u043a\u043e\u043d\u0432\u0435\u0440\u0442\u0430\u0446\u0438\u0438 \u0441\u043f\u0438\u0441\u043a\u0430 \u0432 \u0434\u0430\u0442\u0430 \u0444\u0440\u0435\u0439\u043c \u0441 \u043e\u0434\u043d\u0438\u043c \u0441\u0442\u043e\u043b\u0431\u0446\u043e\u043c, \u0430 \u0437\u0430\u0442\u0435\u043c \u0440\u0430\u0441\u0448\u0438\u0440\u0438\u043c \u0435\u0433\u043e, \u0447\u0442\u043e\u0431\u044b \u043a\u0430\u0436\u0434\u044b\u0439 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442 \u0431\u044b\u043b \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u043c \u0441\u0442\u043e\u043b\u0431\u0446\u043e\u043c. \u0422\u0430\u043a\u0436\u0435 \u044f \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u0443\u044e \u0441\u0442\u043e\u043b\u0431\u0435\u0446 <code>date_added<\/code> \u0432 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0439 \u0444\u043e\u0440\u043c\u0430\u0442 \u0434\u0430\u0442\u044b \u0438 \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0432 R.<\/p>\n<p>  <\/p>\n<pre><code class=\"plaintext\">discs &lt;- tibble(disc = discog) %&gt;%    unnest_wider(disc) %&gt;%    mutate(date_added = as.POSIXct(strptime(date_added, &quot;%Y-%m-%dT%H:%M:%S&quot;)))  discs #&gt; # A tibble: 155 x 5 #&gt;    instance_id date_added          basic_information       id rating #&gt;          &lt;int&gt; &lt;dttm&gt;              &lt;list&gt;               &lt;int&gt;  &lt;int&gt; #&gt;  1   354823933 2019-02-16 17:48:59 &lt;named list [11]&gt;  7496378      0 #&gt;  2   354092601 2019-02-13 14:13:11 &lt;named list [11]&gt;  4490852      0 #&gt;  3   354091476 2019-02-13 14:07:23 &lt;named list [11]&gt;  9827276      0 #&gt;  4   351244906 2019-02-02 11:39:58 &lt;named list [11]&gt;  9769203      0 #&gt;  5   351244801 2019-02-02 11:39:37 &lt;named list [11]&gt;  7237138      0 #&gt;  6   351052065 2019-02-01 20:40:53 &lt;named list [11]&gt; 13117042      0 #&gt;  7   350315345 2019-01-29 15:48:37 &lt;named list [11]&gt;  7113575      0 #&gt;  8   350315103 2019-01-29 15:47:22 &lt;named list [11]&gt; 10540713      0 #&gt;  9   350314507 2019-01-29 15:44:08 &lt;named list [11]&gt; 11260950      0 #&gt; 10   350314047 2019-01-29 15:41:35 &lt;named list [11]&gt; 11726853      0 #&gt; # \u2026 with 145 more rows<\/code><\/pre>\n<p>  <\/p>\n<p>\u041d\u0430 \u044d\u0442\u043e\u043c \u0443\u0440\u043e\u0432\u043d\u0435 \u043c\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0438 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043e \u0442\u043e\u043c, \u043a\u043e\u0433\u0434\u0430 \u043a\u0430\u0436\u0434\u044b\u0439 \u0434\u0438\u0441\u043a \u0431\u044b\u043b \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d \u0432 \u0434\u0438\u0441\u043a\u043e\u0433\u0440\u0430\u0444\u0438\u044e \u0428\u0430\u0440\u043b\u044b, \u043d\u043e \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u043d\u0435 \u0432\u0438\u0434\u0438\u043c \u043d\u0438\u043a\u0430\u043a\u0438\u0445 \u0434\u0430\u043d\u043d\u044b\u0445 \u043e\u0431 \u044d\u0442\u0438\u0445 \u0434\u0438\u0441\u043a\u0430\u0445. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043d\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u0440\u0430\u0441\u0448\u0438\u0440\u0438\u0442\u044c \u0441\u0442\u043e\u043b\u0431\u0435\u0446 <code>basic_information<\/code>:<\/p>\n<p>  <\/p>\n<pre><code class=\"plaintext\">discs %&gt;% unnest_wider(basic_information) #&gt; Column name `id` must not be duplicated. #&gt; Use .name_repair to specify repair.<\/code><\/pre>\n<p>  <\/p>\n<p>\u041a \u0441\u043e\u0436\u0430\u043b\u0435\u043d\u0438\u044e \u043c\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u043c \u043e\u0448\u0438\u0431\u043a\u0443, \u0442.\u043a. \u0432\u043d\u0443\u0442\u0440\u0438 \u0441\u043f\u0438\u0441\u043a\u0430 <code>basic_information<\/code> \u0435\u0441\u0442\u044c \u043e\u0434\u043d\u043e\u0438\u043c\u0451\u043d\u043d\u044b\u0439 \u0441\u0442\u043e\u043b\u0431\u0435\u0446 <code>basic_information<\/code>. \u041f\u0440\u0438 \u0432\u043e\u0437\u043d\u0438\u043a\u043d\u043e\u0432\u0435\u043d\u0438\u0438 \u043f\u043e\u0434\u043e\u0431\u043d\u043e\u0439 \u043e\u0448\u0438\u0431\u043a\u0438, \u0434\u043b\u044f \u0442\u043e\u0433\u043e, \u0447\u0442\u043e \u0431\u044b \u0431\u044b\u0441\u0442\u0440\u043e \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c \u0435\u0451 \u043f\u0440\u0438\u0447\u0438\u043d\u0443 \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c <code>names_repair = &quot;unique&quot;<\/code>:<\/p>\n<p>  <\/p>\n<pre><code class=\"plaintext\">discs %&gt;% unnest_wider(basic_information, names_repair = &quot;unique&quot;) #&gt; New names: #&gt; * id -&gt; id...6 #&gt; * id -&gt; id...14 #&gt; # A tibble: 155 x 15 #&gt;    instance_id date_added          labels  year artists id...6 thumb title #&gt;          &lt;int&gt; &lt;dttm&gt;              &lt;list&gt; &lt;int&gt; &lt;list&gt;   &lt;int&gt; &lt;chr&gt; &lt;chr&gt; #&gt;  1   354823933 2019-02-16 17:48:59 &lt;list\u2026  2015 &lt;list \u2026 7.50e6 http\u2026 Demo  #&gt;  2   354092601 2019-02-13 14:13:11 &lt;list\u2026  2013 &lt;list \u2026 4.49e6 http\u2026 Obse\u2026 #&gt;  3   354091476 2019-02-13 14:07:23 &lt;list\u2026  2017 &lt;list \u2026 9.83e6 http\u2026 I     #&gt;  4   351244906 2019-02-02 11:39:58 &lt;list\u2026  2017 &lt;list \u2026 9.77e6 http\u2026 O\u00eddo\u2026 #&gt;  5   351244801 2019-02-02 11:39:37 &lt;list\u2026  2015 &lt;list \u2026 7.24e6 http\u2026 A Ca\u2026 #&gt;  6   351052065 2019-02-01 20:40:53 &lt;list\u2026  2019 &lt;list \u2026 1.31e7 http\u2026 Tash\u2026 #&gt;  7   350315345 2019-01-29 15:48:37 &lt;list\u2026  2014 &lt;list \u2026 7.11e6 http\u2026 Demo  #&gt;  8   350315103 2019-01-29 15:47:22 &lt;list\u2026  2015 &lt;list \u2026 1.05e7 http\u2026 Let \u2026 #&gt;  9   350314507 2019-01-29 15:44:08 &lt;list\u2026  2017 &lt;list \u2026 1.13e7 &quot;&quot;    Sub \u2026 #&gt; 10   350314047 2019-01-29 15:41:35 &lt;list\u2026  2017 &lt;list \u2026 1.17e7 http\u2026 Demo  #&gt; # \u2026 with 145 more rows, and 7 more variables: formats &lt;list&gt;, #&gt; #   cover_image &lt;chr&gt;, resource_url &lt;chr&gt;, master_id &lt;int&gt;, #&gt; #   master_url &lt;chr&gt;, id...14 &lt;int&gt;, rating &lt;int&gt;<\/code><\/pre>\n<p>  <\/p>\n<p>\u041f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e <code>basic_information<\/code> \u043f\u043e\u0432\u0442\u043e\u0440\u044f\u0435\u0442 \u0441\u0442\u043e\u043b\u0431\u0435\u0446 id \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0442\u0430\u043a\u0436\u0435 \u0445\u0440\u0430\u043d\u0438\u0442\u0441\u044f \u043d\u0430 \u0432\u0435\u0440\u0445\u043d\u0435\u043c \u0443\u0440\u043e\u0432\u043d\u0435, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u043f\u0440\u043e\u0441\u0442\u043e \u0443\u0434\u0430\u043b\u0438\u0442\u044c \u0435\u0433\u043e:<\/p>\n<p>  <\/p>\n<pre><code class=\"plaintext\">discs %&gt;%    select(-id) %&gt;%    unnest_wider(basic_information) #&gt; # A tibble: 155 x 14 #&gt;    instance_id date_added          labels  year artists     id thumb title #&gt;          &lt;int&gt; &lt;dttm&gt;              &lt;list&gt; &lt;int&gt; &lt;list&gt;   &lt;int&gt; &lt;chr&gt; &lt;chr&gt; #&gt;  1   354823933 2019-02-16 17:48:59 &lt;list\u2026  2015 &lt;list \u2026 7.50e6 http\u2026 Demo  #&gt;  2   354092601 2019-02-13 14:13:11 &lt;list\u2026  2013 &lt;list \u2026 4.49e6 http\u2026 Obse\u2026 #&gt;  3   354091476 2019-02-13 14:07:23 &lt;list\u2026  2017 &lt;list \u2026 9.83e6 http\u2026 I     #&gt;  4   351244906 2019-02-02 11:39:58 &lt;list\u2026  2017 &lt;list \u2026 9.77e6 http\u2026 O\u00eddo\u2026 #&gt;  5   351244801 2019-02-02 11:39:37 &lt;list\u2026  2015 &lt;list \u2026 7.24e6 http\u2026 A Ca\u2026 #&gt;  6   351052065 2019-02-01 20:40:53 &lt;list\u2026  2019 &lt;list \u2026 1.31e7 http\u2026 Tash\u2026 #&gt;  7   350315345 2019-01-29 15:48:37 &lt;list\u2026  2014 &lt;list \u2026 7.11e6 http\u2026 Demo  #&gt;  8   350315103 2019-01-29 15:47:22 &lt;list\u2026  2015 &lt;list \u2026 1.05e7 http\u2026 Let \u2026 #&gt;  9   350314507 2019-01-29 15:44:08 &lt;list\u2026  2017 &lt;list \u2026 1.13e7 &quot;&quot;    Sub \u2026 #&gt; 10   350314047 2019-01-29 15:41:35 &lt;list\u2026  2017 &lt;list \u2026 1.17e7 http\u2026 Demo  #&gt; # \u2026 with 145 more rows, and 6 more variables: formats &lt;list&gt;, #&gt; #   cover_image &lt;chr&gt;, resource_url &lt;chr&gt;, master_id &lt;int&gt;, #&gt; #   master_url &lt;chr&gt;, rating &lt;int&gt;<\/code><\/pre>\n<p>  <\/p>\n<p>\u0412 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0430\u043b\u044c\u0442\u0435\u0440\u043d\u0430\u0442\u0438\u0432\u044b, \u043c\u044b \u043c\u043e\u0433\u043b\u0438 \u0431\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c <code>hoist()<\/code>:<\/p>\n<p>  <\/p>\n<pre><code class=\"plaintext\">discs %&gt;%    hoist(basic_information,     title = &quot;title&quot;,     year = &quot;year&quot;,     label = list(&quot;labels&quot;, 1, &quot;name&quot;),     artist = list(&quot;artists&quot;, 1, &quot;name&quot;)   ) #&gt; # A tibble: 155 x 9 #&gt;    instance_id date_added          title  year label artist #&gt;          &lt;int&gt; &lt;dttm&gt;              &lt;chr&gt; &lt;int&gt; &lt;chr&gt; &lt;chr&gt;  #&gt;  1   354823933 2019-02-16 17:48:59 Demo   2015 Tobi\u2026 Mollot #&gt;  2   354092601 2019-02-13 14:13:11 Obse\u2026  2013 La V\u2026 Una B\u2026 #&gt;  3   354091476 2019-02-13 14:07:23 I      2017 La V\u2026 S.H.I\u2026 #&gt;  4   351244906 2019-02-02 11:39:58 O\u00eddo\u2026  2017 La V\u2026 Rata \u2026 #&gt;  5   351244801 2019-02-02 11:39:37 A Ca\u2026  2015 Kato\u2026 Ivy (\u2026 #&gt;  6   351052065 2019-02-01 20:40:53 Tash\u2026  2019 High\u2026 Tashme #&gt;  7   350315345 2019-01-29 15:48:37 Demo   2014 Mind\u2026 Desgr\u2026 #&gt;  8   350315103 2019-01-29 15:47:22 Let \u2026  2015 Not \u2026 Phant\u2026 #&gt;  9   350314507 2019-01-29 15:44:08 Sub \u2026  2017 Not \u2026 Sub S\u2026 #&gt; 10   350314047 2019-01-29 15:41:35 Demo   2017 Pres\u2026 Small\u2026 #&gt; # \u2026 with 145 more rows, and 3 more variables: basic_information &lt;list&gt;, #&gt; #   id &lt;int&gt;, rating &lt;int&gt;<\/code><\/pre>\n<p>  <\/p>\n<p>\u0417\u0434\u0435\u0441\u044c \u044f \u0431\u044b\u0441\u0442\u0440\u043e \u0438\u0437\u0432\u043b\u0435\u043a\u0430\u044e \u0438\u043c\u044f \u043f\u0435\u0440\u0432\u043e\u0433\u043e \u043b\u0435\u0439\u0431\u043b\u0430 \u0438 \u0438\u0441\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044f \u043f\u043e \u0438\u043d\u0434\u0435\u043a\u0441\u0443, \u043f\u043e\u0433\u0440\u0443\u0437\u0438\u0432\u0448\u0438\u0441\u044c \u0432\u043e \u0432\u043b\u043e\u0436\u0435\u043d\u043d\u044b\u0439 \u0441\u043f\u0438\u0441\u043e\u043a.<\/p>\n<p>  <\/p>\n<p>\u0411\u043e\u043b\u0435\u0435 \u0441\u0438\u0441\u0442\u0435\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u043f\u043e\u0434\u0445\u043e\u0434 \u0437\u0430\u043a\u043b\u044e\u0447\u0430\u0435\u0442\u0441\u044f \u0432 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0438 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0445 \u0442\u0430\u0431\u043b\u0438\u0446 \u0434\u043b\u044f \u0438\u0441\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044f \u0438 \u043b\u0435\u0439\u0431\u043b\u0430:<\/p>\n<p>  <\/p>\n<pre><code class=\"plaintext\">discs %&gt;%    hoist(basic_information, artist = &quot;artists&quot;) %&gt;%    select(disc_id = id, artist) %&gt;%    unnest_longer(artist) %&gt;%    unnest_wider(artist) #&gt; # A tibble: 167 x 8 #&gt;     disc_id join  name        anv   tracks role  resource_url            id #&gt;       &lt;int&gt; &lt;chr&gt; &lt;chr&gt;       &lt;chr&gt; &lt;chr&gt;  &lt;chr&gt; &lt;chr&gt;                &lt;int&gt; #&gt;  1  7496378 &quot;&quot;    Mollot      &quot;&quot;    &quot;&quot;     &quot;&quot;    https:\/\/api.discog\u2026 4.62e6 #&gt;  2  4490852 &quot;&quot;    Una B\u00e8stia\u2026 &quot;&quot;    &quot;&quot;     &quot;&quot;    https:\/\/api.discog\u2026 3.19e6 #&gt;  3  9827276 &quot;&quot;    S.H.I.T. (\u2026 &quot;&quot;    &quot;&quot;     &quot;&quot;    https:\/\/api.discog\u2026 2.77e6 #&gt;  4  9769203 &quot;&quot;    Rata Negra  &quot;&quot;    &quot;&quot;     &quot;&quot;    https:\/\/api.discog\u2026 4.28e6 #&gt;  5  7237138 &quot;&quot;    Ivy (18)    &quot;&quot;    &quot;&quot;     &quot;&quot;    https:\/\/api.discog\u2026 3.60e6 #&gt;  6 13117042 &quot;&quot;    Tashme      &quot;&quot;    &quot;&quot;     &quot;&quot;    https:\/\/api.discog\u2026 5.21e6 #&gt;  7  7113575 &quot;&quot;    Desgraciad\u2026 &quot;&quot;    &quot;&quot;     &quot;&quot;    https:\/\/api.discog\u2026 4.45e6 #&gt;  8 10540713 &quot;&quot;    Phantom He\u2026 &quot;&quot;    &quot;&quot;     &quot;&quot;    https:\/\/api.discog\u2026 4.27e6 #&gt;  9 11260950 &quot;&quot;    Sub Space \u2026 &quot;&quot;    &quot;&quot;     &quot;&quot;    https:\/\/api.discog\u2026 5.69e6 #&gt; 10 11726853 &quot;&quot;    Small Man \u2026 &quot;&quot;    &quot;&quot;     &quot;&quot;    https:\/\/api.discog\u2026 6.37e6 #&gt; # \u2026 with 157 more rows  discs %&gt;%    hoist(basic_information, format = &quot;formats&quot;) %&gt;%    select(disc_id = id, format) %&gt;%    unnest_longer(format) %&gt;%    unnest_wider(format) %&gt;%    unnest_longer(descriptions) #&gt; # A tibble: 280 x 5 #&gt;     disc_id descriptions text  name     qty   #&gt;       &lt;int&gt; &lt;chr&gt;        &lt;chr&gt; &lt;chr&gt;    &lt;chr&gt; #&gt;  1  7496378 Numbered     Black Cassette 1     #&gt;  2  4490852 LP           &lt;NA&gt;  Vinyl    1     #&gt;  3  9827276 &quot;7\\&quot;&quot;        &lt;NA&gt;  Vinyl    1     #&gt;  4  9827276 45 RPM       &lt;NA&gt;  Vinyl    1     #&gt;  5  9827276 EP           &lt;NA&gt;  Vinyl    1     #&gt;  6  9769203 LP           &lt;NA&gt;  Vinyl    1     #&gt;  7  9769203 Album        &lt;NA&gt;  Vinyl    1     #&gt;  8  7237138 &quot;7\\&quot;&quot;        &lt;NA&gt;  Vinyl    1     #&gt;  9  7237138 45 RPM       &lt;NA&gt;  Vinyl    1     #&gt; 10 13117042 &quot;7\\&quot;&quot;        &lt;NA&gt;  Vinyl    1     #&gt; # \u2026 with 270 more rows<\/code><\/pre>\n<p>  <\/p>\n<p>\u0417\u0430\u0442\u0435\u043c \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u0440\u0438\u0441\u043e\u0435\u0434\u0438\u043d\u0438\u0442\u044c \u0438\u0445 \u043e\u0431\u0440\u0430\u0442\u043d\u043e \u043a \u0438\u0441\u0445\u043e\u0434\u043d\u043e\u043c\u0443 \u043d\u0430\u0431\u043e\u0440\u0443 \u0434\u0430\u043d\u043d\u044b\u0445 \u043f\u043e \u043c\u0435\u0440\u0435 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438.<\/p>\n<p>  <\/p>\n<h1 id=\"zaklyuchenie\">\u0417\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435<\/h1>\n<p>  <\/p>\n<p>\u0412 \u044f\u0434\u0440\u043e \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 <code>tidyverse<\/code> \u0432\u0445\u043e\u0434\u044f\u0442 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e \u043f\u043e\u043b\u0435\u0437\u043d\u044b\u0445 \u043f\u0430\u043a\u0435\u0442\u043e\u0432 \u043e\u0431\u044a\u0435\u0434\u0438\u043d\u0451\u043d\u043d\u044b\u0435 \u043e\u0431\u0449\u0435\u0439 \u0444\u0438\u043b\u043e\u0441\u043e\u0444\u0438\u0435\u0439 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0434\u0430\u043d\u043d\u044b\u0445. <\/p>\n<p>  <\/p>\n<p>\u0412 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u043c\u044b \u0440\u0430\u0437\u043e\u0431\u0440\u0430\u043b\u0438 \u0441\u0435\u043c\u0435\u0439\u0441\u0442\u0432\u043e \u0444\u0443\u043d\u043a\u0446\u0438\u0439 <code>unnest_*()<\/code>, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u044b \u043d\u0430 \u0440\u0430\u0431\u043e\u0442\u0443 \u0441 \u0438\u0437\u0432\u043b\u0435\u0447\u0435\u043d\u0438\u0435\u043c \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 \u0438\u0437 \u0432\u043b\u043e\u0436\u0435\u043d\u043d\u044b\u0445 \u0441\u043f\u0438\u0441\u043a\u043e\u0432. \u0414\u0430\u043d\u043d\u044b\u0439 \u043f\u0430\u043a\u0435\u0442 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e \u0434\u0440\u0443\u0433\u0438\u0445 \u043f\u043e\u043b\u0435\u0437\u043d\u044b\u0445 \u0444\u0443\u043d\u043a\u0446\u0438\u0439, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0443\u043f\u0440\u043e\u0449\u0430\u044e\u0442 \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u0434\u0430\u043d\u043d\u044b\u0445 \u0441\u043e\u0433\u043b\u0430\u0441\u043d\u043e \u043a\u043e\u043d\u0446\u0435\u043f\u0446\u0438\u0438 <em>Tidy Data<\/em>.<\/p>\n<\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/post\/491726\/\"> https:\/\/habr.com\/ru\/post\/491726\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"\n<div class=\"post__text post__text-html post__text_v1\" id=\"post-content-body\" data-io-article-url=\"https:\/\/habr.com\/ru\/post\/491726\/\">\n<p>\u0412 \u0431\u043e\u043b\u044c\u0448\u0438\u043d\u0441\u0442\u0432\u0435 \u0441\u043b\u0443\u0447\u0430\u0435\u0432 \u043f\u0440\u0438 \u0440\u0430\u0431\u043e\u0442\u0435 \u0441 \u043e\u0442\u0432\u0435\u0442\u043e\u043c \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u044b\u043c \u043e\u0442 API, \u0438\u043b\u0438 \u0441 \u043b\u044e\u0431\u044b\u043c\u0438 \u0434\u0440\u0443\u0433\u0438\u043c\u0438 \u0434\u0430\u043d\u043d\u044b\u043c\u0438 \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0438\u043c\u0435\u044e\u0442 \u0441\u043b\u043e\u0436\u043d\u0443\u044e \u0434\u0440\u0435\u0432\u043e\u0432\u0438\u0434\u043d\u0443\u044e \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443, \u0432\u044b \u0441\u0442\u0430\u043b\u043a\u0438\u0432\u0430\u0435\u0442\u0435\u0441\u044c \u0441 \u0444\u043e\u0440\u043c\u0430\u0442\u0430\u043c\u0438 JSON \u0438 XML.<\/p>\n<p>  <\/p>\n<p>\u042d\u0442\u0438 \u0444\u043e\u0440\u043c\u0430\u0442\u044b \u0438\u043c\u0435\u044e\u0442 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e \u043f\u0440\u0435\u0438\u043c\u0443\u0449\u0435\u0441\u0442\u0432: \u043e\u043d\u0438 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043a\u043e\u043c\u043f\u0430\u043a\u0442\u043d\u043e \u0445\u0440\u0430\u043d\u044f\u0442 \u0434\u0430\u043d\u043d\u044b\u0435 \u0438 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0442 \u0438\u0437\u0431\u0435\u0436\u0430\u0442\u044c \u0438\u0437\u043b\u0438\u0448\u043d\u0435\u0433\u043e \u0434\u0443\u0431\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438. <\/p>\n<p>  <\/p>\n<p>\u041c\u0438\u043d\u0443\u0441\u043e\u043c \u0434\u0430\u043d\u043d\u044b\u0445 \u0444\u043e\u0440\u043c\u0430\u0442\u043e\u0432 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0441\u043b\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0438\u0445 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0438 \u0430\u043d\u0430\u043b\u0438\u0437\u0430. \u041d\u0435\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u043d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0432 \u0432\u044b\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u044f\u0445 \u0438 \u043d\u0435\u043b\u044c\u0437\u044f \u0441\u0442\u0440\u043e\u0438\u0442\u044c \u043d\u0430 \u0438\u0445 \u043e\u0441\u043d\u043e\u0432\u0435 \u0432\u0438\u0437\u0443\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044e. <\/p>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/7s\/yf\/gr\/7syfgrnpyegv-ihhcguupzuwm9c.jpeg\">  <\/p>\n<p>  <\/p>\n<p>\u0414\u0430\u043d\u043d\u0430\u044f \u0441\u0442\u0430\u0442\u044c\u044f \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u043c \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0435\u043d\u0438\u0435\u043c \u043f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u0438 <a href=\"https:\/\/habr.com\/ru\/post\/444622\/\">&quot;R \u043f\u0430\u043a\u0435\u0442 tidyr \u0438 \u0435\u0433\u043e \u043d\u043e\u0432\u044b\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 pivot_longer \u0438 pivot_wider&quot;<\/a>. \u041e\u043d\u0430 \u043f\u043e\u043c\u043e\u0436\u0435\u0442 \u0432\u0430\u043c \u043f\u0440\u0438\u0432\u0435\u0441\u0442\u0438 \u043d\u0435\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438 \u0434\u0430\u043d\u043d\u044b\u0445 \u043a \u043f\u0440\u0438\u0432\u044b\u0447\u043d\u043e\u043c\u0443, \u0438 \u043f\u0440\u0438\u0433\u043e\u0434\u043d\u043e\u043c\u0443 \u0434\u043b\u044f \u0430\u043d\u0430\u043b\u0438\u0437\u0430 \u0442\u0430\u0431\u043b\u0438\u0447\u043d\u043e\u043c\u0443 \u0432\u0438\u0434\u0443 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043f\u0430\u043a\u0435\u0442\u0430 <code>tidyr<\/code>, \u0432\u0445\u043e\u0434\u044f\u0449\u0435\u0433\u043e \u0432 \u044f\u0434\u0440\u043e \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 <code>tidyverse<\/code>, \u0438 \u0435\u0433\u043e \u0444\u0443\u043d\u043a\u0446\u0438\u0439 \u0441\u0435\u043c\u0435\u0439\u0441\u0442\u0432\u0430 <code>unnest_*()<\/code>. <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-301014","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/301014","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=301014"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/301014\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=301014"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=301014"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=301014"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}