{"id":12095,"date":"2022-09-29T14:44:55","date_gmt":"2022-09-29T09:14:55","guid":{"rendered":"https:\/\/jassweb.com\/solved\/solved-finding-the-index-based-on-two-data-frames-of-strings\/"},"modified":"2022-09-29T14:44:55","modified_gmt":"2022-09-29T09:14:55","slug":"solved-finding-the-index-based-on-two-data-frames-of-strings","status":"publish","type":"post","link":"https:\/\/jassweb.com\/solved\/solved-finding-the-index-based-on-two-data-frames-of-strings\/","title":{"rendered":"[Solved] Finding the index based on two data frames of strings"},"content":{"rendered":"<p> [ad_1]<br \/>\n<\/p>\n<div id=\"answer-38211394\" class=\"answer js-answer accepted-answer js-accepted-answer\" data-answerid=\"38211394\" data-parentid=\"38211089\" data-score=\"4\" data-position-on-page=\"1\" data-highest-scored=\"1\" data-question-has-accepted-highest-score=\"1\" itemprop=\"acceptedAnswer\" itemscope itemtype=\"https:\/\/schema.org\/Answer\">\n<div class=\"post-layout\">\n<div class=\"votecell post-layout--left\"><\/div>\n<div class=\"answercell post-layout--right\">\n<div class=\"s-prose js-post-body\" itemprop=\"text\">\n<p>A possible solution with base R by using a combination of <code>colSums<\/code>, <code>which<\/code>, <code>toString<\/code> and <code>apply<\/code>:<\/p>\n<pre><code>strs$colids &lt;- apply(strs, 1, function(x) toString(which(colSums(lut == x, na.rm=TRUE) &gt; 0)))\n<\/code><\/pre>\n<p>which gives:<\/p>\n<pre><code>&gt; strs\n  strings  colids\n1  O75663    1, 3\n2  O95400    1, 3\n3  O95433    1, 3\n4  O95456 2, 3, 4\n5  O95670 2, 3, 4\n6  O95801       4\n7  P00352       4\n8  P00492        \n<\/code><\/pre>\n<p>To see what each part does, start by looking at the output of <code>lut == 'O75663'<\/code> which will give you a <code>TRUE\/FALSE<\/code> table. By wrapping this in <code>colSums<\/code> you sum the <code>TRUE\/FALSE<\/code>. A <code>0<\/code> means that there is no match in that column for that string, a number above zero means that there is one or more matches. With <code>which<\/code> you get the column indexes and by wrapping that in <code>toString<\/code> you get a character values with indexes of the matching columns.<\/p>\n<p>This approach could also be implemented with either <code>data.table<\/code> or <code>dplyr<\/code>:<\/p>\n<pre><code>library(data.table)\nsetDT(strs)[, colids := toString(which(colSums(lut == strings, na.rm=TRUE) &gt; 0)), by = 1:nrow(strs)][]\n\nlibrary(dplyr)\nstrs %&gt;% rowwise() %&gt;% mutate(colids = toString(which(colSums(lut == strings, na.rm=TRUE) &gt; 0)))\n<\/code><\/pre>\n<hr>\n<p>In response to your comment: An example for multiple columns in <code>strs<\/code> with <code>data.table<\/code>:<\/p>\n<pre><code># create an extra strings column\nset.seed(1)\nstrs$strings2 &lt;- sample(strs$strings)\n\n# create two 'colids' columns\nlibrary(data.table)\nsetDT(strs)[, c('colids1','colids2') := lapply(.SD, function(x) toString(which(colSums(lut == x, na.rm=TRUE) &gt; 0))), by = 1:nrow(strs)][]\n<\/code><\/pre>\n<p>which gives:<\/p>\n<pre><code>   strings strings2 colids1 colids2\n1:  O75663   O95433    1, 3    1, 3\n2:  O95400   P00492    1, 3        \n3:  O95433   O95456    1, 3 2, 3, 4\n4:  O95456   O95670 2, 3, 4 2, 3, 4\n5:  O95670   O75663 2, 3, 4    1, 3\n6:  O95801   P00352       4       4\n7:  P00352   O95400       4    1, 3\n8:  P00492   O95801               4\n<\/code><\/pre>\n<hr>\n<p><em>Used data<\/em>:<\/p>\n<pre><code>lut &lt;- structure(list(V1 = c(\"O75663\", \"O95400\", \"O95433\", NA, NA), \n                      V2 = c(\"O95456\", \"O95670\", NA, NA, NA), \n                      V3 = c(\"O75663\", \"O95400\", \"O95433\", \"O95456\", \"O95670\"), \n                      V4 = c(\"O95456\", \"O95670\", \"O95801\", \"P00352\", NA)), \n                 .Names = c(\"V1\", \"V2\", \"V3\", \"V4\"), class = \"data.frame\", row.names = c(NA, -5L))\n\nstrs &lt;- structure(list(strings = c(\"O75663\", \"O95400\", \"O95433\", \"O95456\", \"O95670\", \"O95801\", \"P00352\", \"P00492\")), \n                  .Names = \"strings\", class = \"data.frame\", row.names = c(NA, -8L))\n<\/code><\/pre>\n<hr>\n<p>With regard to the extended example you added to your question: The reason you are getting that error is because you are trying to compare factor-variables with character-variables. See the difference in output between <code>sapply(strs,class)<\/code> and <code>sapply(lut,class)<\/code>:<\/p>\n<pre><code>&gt; sapply(strs,class)\nstrings1 strings2 strings3 strings4 strings5 \n\"factor\" \"factor\" \"factor\" \"factor\" \"factor\" \n&gt; sapply(lut,class)\n         V1          V2          V3          V4          V5          V6          V7          V8 \n\"character\" \"character\" \"character\" \"character\" \"character\" \"character\" \"character\" \"character\" \n<\/code><\/pre>\n<p>It is therefore necessary to convert the <code>factor<\/code>&#8216;s to <code>character<\/code>&#8216;s first and then do the comparison. The following code:<\/p>\n<pre><code>library(data.table)\nsetDT(strs)[, lapply(.SD, as.character)\n            ][, paste0('colids.',seq_along(strs)) := lapply(.SD, function(x) toString(which(colSums(lut == x, na.rm=TRUE) &gt; 0))), \n              by = 1:nrow(strs)][]\n<\/code><\/pre>\n<p>now gives the correct output:<\/p>\n<pre><code>   strings1 strings2 strings3 strings4 strings5         colids.1         colids.2         colids.3         colids.4         colids.5\n1:   O75663   O95456   O95456   O95400   P00492       1, 3, 5, 7 2, 3, 4, 6, 7, 8 2, 3, 4, 6, 7, 8       1, 3, 5, 7                 \n2:   O95400   O75663   O95801   P00492   O95400       1, 3, 5, 7       1, 3, 5, 7             4, 8                        1, 3, 5, 7\n3:   O95433   P00492   P00352   O95456   P00352       1, 3, 5, 7                              4, 8 2, 3, 4, 6, 7, 8             4, 8\n4:   O95456   P00352   P00492   O95801   O75663 2, 3, 4, 6, 7, 8             4, 8                              4, 8       1, 3, 5, 7\n5:   O95670   O95433   O75663            O95433 2, 3, 4, 6, 7, 8       1, 3, 5, 7       1, 3, 5, 7                        1, 3, 5, 7\n6:   O95801            O95400            O95801             4, 8                        1, 3, 5, 7                              4, 8\n7:                     O95670            O95670                                   2, 3, 4, 6, 7, 8                  2, 3, 4, 6, 7, 8\n8:                                       O95456                                                                     2, 3, 4, 6, 7, 8\n<\/code><\/pre>\n<hr>\n<p><em>Used data extended example<\/em>:<\/p>\n<pre><code>strs &lt;- structure(list(strings1 = structure(c(2L, 3L, 4L, 5L, 6L, 7L, 1L, 1L), .Label = c(\"\", \"O75663\", \"O95400\", \"O95433\", \"O95456\", \"O95670\", \"O95801\"), class = \"factor\"), \n                       strings2 = structure(c(4L, 2L, 6L, 5L, 3L, 1L, 1L, 1L), .Label = c(\"\", \"O75663\", \"O95433\", \"O95456\", \"P00352\", \"P00492\"), class = \"factor\"), \n                       strings3 = structure(c(4L, 6L, 7L, 8L, 2L, 3L, 5L, 1L), .Label = c(\"\", \"O75663\", \"O95400\", \"O95456\", \"O95670\", \"O95801\", \"P00352\", \"P00492\"), class = \"factor\"), \n                       strings4 = structure(c(2L, 5L, 3L, 4L, 1L, 1L, 1L, 1L), .Label = c(\"\", \"O95400\", \"O95456\", \"O95801\", \"P00492\"), class = \"factor\"), \n                       strings5 = structure(c(8L, 2L, 7L, 1L, 3L, 6L, 5L, 4L), .Label = c(\"O75663\", \"O95400\", \"O95433\", \"O95456\", \"O95670\", \"O95801\", \"P00352\", \"P00492\"), class = \"factor\")), \n                  .Names = c(\"strings1\", \"strings2\", \"strings3\", \"strings4\", \"strings5\"), class = \"data.frame\", row.names = c(NA, -8L))\n\nlut &lt;- structure(list(V1 = c(\"O75663\", \"O95400\", \"O95433\", NA, NA), \n                      V2 = c(\"O95456\", \"O95670\", NA, NA, NA), \n                      V3 = c(\"O75663\", \"O95400\", \"O95433\", \"O95456\", \"O95670\"), \n                      V4 = c(\"O95456\", \"O95670\", \"O95801\", \"P00352\", NA), \n                      V5 = c(\"O75663\", \"O95400\", \"O95433\", NA, NA), \n                      V6 = c(\"O95456\", \"O95670\", NA, NA, NA), \n                      V7 = c(\"O75663\", \"O95400\", \"O95433\", \"O95456\", \"O95670\"), \n                      V8 = c(\"O95456\", \"O95670\", \"O95801\", \"P00352\", NA)), \n                 .Names = c(\"V1\", \"V2\", \"V3\", \"V4\", \"V5\", \"V6\", \"V7\", \"V8\"), row.names = c(NA, -5L), class = \"data.frame\")\n<\/code><\/pre>\n<\/p><\/div>\n<div class=\"mt24\"><\/div>\n<\/div>\n<p>            <span class=\"d-none\" itemprop=\"commentCount\">14<\/span> <\/p><\/div>\n<\/div>\n<p>[ad_2]<\/p>\n<p>solved Finding the index based on two data frames of strings <\/p>\n","protected":false},"excerpt":{"rendered":"<p>[ad_1] A possible solution with base R by using a combination of colSums, which, toString and apply: strs$colids &lt;- apply(strs, 1, function(x) toString(which(colSums(lut == x, na.rm=TRUE) &gt; 0))) which gives: &gt; strs strings colids 1 O75663 1, 3 2 O95400 1, 3 3 O95433 1, 3 4 O95456 2, 3, 4 5 O95670 2, 3, &#8230; <a title=\"[Solved] Finding the index based on two data frames of strings\" class=\"read-more\" href=\"https:\/\/jassweb.com\/solved\/solved-finding-the-index-based-on-two-data-frames-of-strings\/\" aria-label=\"More on [Solved] Finding the index based on two data frames of strings\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[320],"tags":[321],"class_list":["post-12095","post","type-post","status-publish","format-standard","hentry","category-solved","tag-r"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>[Solved] Finding the index based on two data frames of strings - JassWeb<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/jassweb.com\/solved\/solved-finding-the-index-based-on-two-data-frames-of-strings\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"[Solved] Finding the index based on two data frames of strings - JassWeb\" \/>\n<meta property=\"og:description\" content=\"[ad_1] A possible solution with base R by using a combination of colSums, which, toString and apply: strs$colids &lt;- apply(strs, 1, function(x) toString(which(colSums(lut == x, na.rm=TRUE) &gt; 0))) which gives: &gt; strs strings colids 1 O75663 1, 3 2 O95400 1, 3 3 O95433 1, 3 4 O95456 2, 3, 4 5 O95670 2, 3, ... Read more\" \/>\n<meta property=\"og:url\" content=\"https:\/\/jassweb.com\/solved\/solved-finding-the-index-based-on-two-data-frames-of-strings\/\" \/>\n<meta property=\"og:site_name\" content=\"JassWeb\" \/>\n<meta property=\"article:published_time\" content=\"2022-09-29T09:14:55+00:00\" \/>\n<meta name=\"author\" content=\"Kirat\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Kirat\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/jassweb.com\/solved\/solved-finding-the-index-based-on-two-data-frames-of-strings\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/jassweb.com\/solved\/solved-finding-the-index-based-on-two-data-frames-of-strings\/\"},\"author\":{\"name\":\"Kirat\",\"@id\":\"https:\/\/jassweb.com\/solved\/#\/schema\/person\/65c9c7b7958150c0dc8371fa35dd7c31\"},\"headline\":\"[Solved] Finding the index based on two data frames of strings\",\"datePublished\":\"2022-09-29T09:14:55+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/jassweb.com\/solved\/solved-finding-the-index-based-on-two-data-frames-of-strings\/\"},\"wordCount\":199,\"publisher\":{\"@id\":\"https:\/\/jassweb.com\/solved\/#organization\"},\"keywords\":[\"r\"],\"articleSection\":[\"Solved\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/jassweb.com\/solved\/solved-finding-the-index-based-on-two-data-frames-of-strings\/\",\"url\":\"https:\/\/jassweb.com\/solved\/solved-finding-the-index-based-on-two-data-frames-of-strings\/\",\"name\":\"[Solved] Finding the index based on two data frames of strings - JassWeb\",\"isPartOf\":{\"@id\":\"https:\/\/jassweb.com\/solved\/#website\"},\"datePublished\":\"2022-09-29T09:14:55+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/jassweb.com\/solved\/solved-finding-the-index-based-on-two-data-frames-of-strings\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/jassweb.com\/solved\/solved-finding-the-index-based-on-two-data-frames-of-strings\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/jassweb.com\/solved\/solved-finding-the-index-based-on-two-data-frames-of-strings\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/jassweb.com\/solved\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"[Solved] Finding the index based on two data frames of strings\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/jassweb.com\/solved\/#website\",\"url\":\"https:\/\/jassweb.com\/solved\/\",\"name\":\"JassWeb\",\"description\":\"Build High-quality Websites\",\"publisher\":{\"@id\":\"https:\/\/jassweb.com\/solved\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/jassweb.com\/solved\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/jassweb.com\/solved\/#organization\",\"name\":\"Jass Web\",\"url\":\"https:\/\/jassweb.com\/solved\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/jassweb.com\/solved\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/jassweb.com\/wp-content\/uploads\/2021\/02\/jass-website-logo-1.png\",\"contentUrl\":\"https:\/\/jassweb.com\/wp-content\/uploads\/2021\/02\/jass-website-logo-1.png\",\"width\":693,\"height\":132,\"caption\":\"Jass Web\"},\"image\":{\"@id\":\"https:\/\/jassweb.com\/solved\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/jassweb.com\/solved\/#\/schema\/person\/65c9c7b7958150c0dc8371fa35dd7c31\",\"name\":\"Kirat\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/jassweb.com\/solved\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/jassweb.com\/solved\/wp-content\/litespeed\/avatar\/1261af3c9451399fa1336d28b98ea3bb.jpg?ver=1776403586\",\"contentUrl\":\"https:\/\/jassweb.com\/solved\/wp-content\/litespeed\/avatar\/1261af3c9451399fa1336d28b98ea3bb.jpg?ver=1776403586\",\"caption\":\"Kirat\"},\"sameAs\":[\"http:\/\/jassweb.com\"],\"url\":\"https:\/\/jassweb.com\/solved\/author\/jaspritsinghghumangmail-com\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"[Solved] Finding the index based on two data frames of strings - JassWeb","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/jassweb.com\/solved\/solved-finding-the-index-based-on-two-data-frames-of-strings\/","og_locale":"en_US","og_type":"article","og_title":"[Solved] Finding the index based on two data frames of strings - JassWeb","og_description":"[ad_1] A possible solution with base R by using a combination of colSums, which, toString and apply: strs$colids &lt;- apply(strs, 1, function(x) toString(which(colSums(lut == x, na.rm=TRUE) &gt; 0))) which gives: &gt; strs strings colids 1 O75663 1, 3 2 O95400 1, 3 3 O95433 1, 3 4 O95456 2, 3, 4 5 O95670 2, 3, ... Read more","og_url":"https:\/\/jassweb.com\/solved\/solved-finding-the-index-based-on-two-data-frames-of-strings\/","og_site_name":"JassWeb","article_published_time":"2022-09-29T09:14:55+00:00","author":"Kirat","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Kirat","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/jassweb.com\/solved\/solved-finding-the-index-based-on-two-data-frames-of-strings\/#article","isPartOf":{"@id":"https:\/\/jassweb.com\/solved\/solved-finding-the-index-based-on-two-data-frames-of-strings\/"},"author":{"name":"Kirat","@id":"https:\/\/jassweb.com\/solved\/#\/schema\/person\/65c9c7b7958150c0dc8371fa35dd7c31"},"headline":"[Solved] Finding the index based on two data frames of strings","datePublished":"2022-09-29T09:14:55+00:00","mainEntityOfPage":{"@id":"https:\/\/jassweb.com\/solved\/solved-finding-the-index-based-on-two-data-frames-of-strings\/"},"wordCount":199,"publisher":{"@id":"https:\/\/jassweb.com\/solved\/#organization"},"keywords":["r"],"articleSection":["Solved"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/jassweb.com\/solved\/solved-finding-the-index-based-on-two-data-frames-of-strings\/","url":"https:\/\/jassweb.com\/solved\/solved-finding-the-index-based-on-two-data-frames-of-strings\/","name":"[Solved] Finding the index based on two data frames of strings - JassWeb","isPartOf":{"@id":"https:\/\/jassweb.com\/solved\/#website"},"datePublished":"2022-09-29T09:14:55+00:00","breadcrumb":{"@id":"https:\/\/jassweb.com\/solved\/solved-finding-the-index-based-on-two-data-frames-of-strings\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/jassweb.com\/solved\/solved-finding-the-index-based-on-two-data-frames-of-strings\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/jassweb.com\/solved\/solved-finding-the-index-based-on-two-data-frames-of-strings\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/jassweb.com\/solved\/"},{"@type":"ListItem","position":2,"name":"[Solved] Finding the index based on two data frames of strings"}]},{"@type":"WebSite","@id":"https:\/\/jassweb.com\/solved\/#website","url":"https:\/\/jassweb.com\/solved\/","name":"JassWeb","description":"Build High-quality Websites","publisher":{"@id":"https:\/\/jassweb.com\/solved\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/jassweb.com\/solved\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/jassweb.com\/solved\/#organization","name":"Jass Web","url":"https:\/\/jassweb.com\/solved\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/jassweb.com\/solved\/#\/schema\/logo\/image\/","url":"https:\/\/jassweb.com\/wp-content\/uploads\/2021\/02\/jass-website-logo-1.png","contentUrl":"https:\/\/jassweb.com\/wp-content\/uploads\/2021\/02\/jass-website-logo-1.png","width":693,"height":132,"caption":"Jass Web"},"image":{"@id":"https:\/\/jassweb.com\/solved\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/jassweb.com\/solved\/#\/schema\/person\/65c9c7b7958150c0dc8371fa35dd7c31","name":"Kirat","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/jassweb.com\/solved\/#\/schema\/person\/image\/","url":"https:\/\/jassweb.com\/solved\/wp-content\/litespeed\/avatar\/1261af3c9451399fa1336d28b98ea3bb.jpg?ver=1776403586","contentUrl":"https:\/\/jassweb.com\/solved\/wp-content\/litespeed\/avatar\/1261af3c9451399fa1336d28b98ea3bb.jpg?ver=1776403586","caption":"Kirat"},"sameAs":["http:\/\/jassweb.com"],"url":"https:\/\/jassweb.com\/solved\/author\/jaspritsinghghumangmail-com\/"}]}},"_links":{"self":[{"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/posts\/12095","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/comments?post=12095"}],"version-history":[{"count":0,"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/posts\/12095\/revisions"}],"wp:attachment":[{"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/media?parent=12095"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/categories?post=12095"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/tags?post=12095"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}