<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:gd="http://schemas.google.com/g/2005"><id>tag:blogger.com,1999:blog-7958828565254404797.post7025376625253444362..comments</id><updated>2024-12-13T03:11:35.450-08:00</updated><title type='text'>Comments on ListenData: R : Convert Data from Wide to Long Format</title><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='https://www.listendata.com/feeds/comments/default'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/7958828565254404797/7025376625253444362/comments/default'/><link rel='alternate' type='text/html' href='https://www.listendata.com/2016/01/r-convert-data-from-wide-to-long-format.html'/><link rel="hub" href="http://pubsubhubbub.appspot.com/"/><author><name>Deepanshu Bhalla</name><uri>http://www.blogger.com/profile/09802839558125192674</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiXm_iOrXFR9Ls-mjtOci4qd1m1V1TXkkWJINuMy84-Axo5pNS6CG7oKwR7hfHHI3tB1yuz8W_qo9HK2Cw5fHfe_4cL_2DCf_LyoK9LMLicZojbNYgypIP-RXNsw1GsVhk/s100/pic.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>2</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-7958828565254404797.post-1219790263637207313</id><published>2021-10-07T02:49:21.222-07:00</published><updated>2021-10-07T02:49:21.222-07:00</updated><title type='text'>#sample data
household &lt;- data.frame(county = c...</title><content type='html'>#sample data<br />household &lt;- data.frame(county = c(&quot;Nairobi&quot;,<br /> &quot;Kiambu&quot;,<br /> &quot;Laikipia&quot;,<br /> &quot;Murang&#39;a&quot;),<br /> subCounty = c(&quot;Dagoretti&quot;,<br /> &quot;Lari&quot;,<br /> &quot;L.North&quot;,<br /> &quot;Kigumo&quot;),<br /> Name_p1 = c(&quot;Tiana&quot;,<br /> &quot;Joseph&quot;,<br /> &quot;Ochweri&quot;,<br /> &quot;Maina&quot;),<br /> Age_p1 = c(25, 16, 15, 45),<br /> <br /> Name_p2 = c(NA,<br /> &quot;Mary&quot;,<br /> NA,<br /> &quot;Susan&quot;),<br /> Age_p2 = c(NA, 34, NA, 16))<br />##How would you convert this to long format?</content><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/7958828565254404797/7025376625253444362/comments/default/1219790263637207313'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/7958828565254404797/7025376625253444362/comments/default/1219790263637207313'/><link rel='alternate' type='text/html' href='https://www.listendata.com/2016/01/r-convert-data-from-wide-to-long-format.html?showComment=1633600161222#c1219790263637207313' title=''/><author><name>David Karanja</name><uri>https://www.blogger.com/profile/10129574094153224133</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='https://www.listendata.com/2016/01/r-convert-data-from-wide-to-long-format.html' ref='tag:blogger.com,1999:blog-7958828565254404797.post-7025376625253444362' source='http://www.blogger.com/feeds/7958828565254404797/posts/default/7025376625253444362' type='text/html'/><gd:extendedProperty name="blogger.itemClass" value="pid-1948498904"/><gd:extendedProperty name="blogger.displayTime" value="October 7, 2021 at 2:49 AM"/></entry><entry><id>tag:blogger.com,1999:blog-7958828565254404797.post-8120979377715909281</id><published>2016-01-13T12:45:08.279-08:00</published><updated>2016-01-13T12:45:08.279-08:00</updated><title type='text'>I would use tidyr for a nice clean data conversion...</title><content type='html'>I would use tidyr for a nice clean data conversion</content><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/7958828565254404797/7025376625253444362/comments/default/8120979377715909281'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/7958828565254404797/7025376625253444362/comments/default/8120979377715909281'/><link rel='alternate' type='text/html' href='https://www.listendata.com/2016/01/r-convert-data-from-wide-to-long-format.html?showComment=1452717908279#c8120979377715909281' title=''/><author><name>Anonymous</name><uri>https://www.blogger.com/profile/01844165002999972935</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='https://www.listendata.com/2016/01/r-convert-data-from-wide-to-long-format.html' ref='tag:blogger.com,1999:blog-7958828565254404797.post-7025376625253444362' source='http://www.blogger.com/feeds/7958828565254404797/posts/default/7025376625253444362' type='text/html'/><gd:extendedProperty name="blogger.itemClass" value="pid-1842862078"/><gd:extendedProperty name="blogger.displayTime" value="January 13, 2016 at 12:45 PM"/></entry></feed>