<?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.post304926244336319511..comments</id><updated>2024-12-13T03:11:35.450-08:00</updated><title type='text'>Comments on ListenData: 4 Ways to Create Blank Data Frame with R</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/304926244336319511/comments/default'/><link rel='alternate' type='text/html' href='https://www.listendata.com/2016/02/create-blank-data-frame-with-r.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-458952148835036697</id><published>2018-08-18T03:46:55.880-07:00</published><updated>2018-08-18T03:46:55.880-07:00</updated><title type='text'>&gt; dummydt=data.frame(matrix(ncol=0,nrow=0))
&...</title><content type='html'>&gt; dummydt=data.frame(matrix(ncol=0,nrow=0))<br />&gt; unilogit2 = function(df,depvar, output) {<br />+ dummydt=data.frame(matrix(ncol=0,nrow=0)) depvar1 = deparse(substitute(depvar))<br />Error: unexpected symbol in:<br />&quot;unilogit2 = function(df,depvar, output) {<br /> dummydt=data.frame(matrix(ncol=0,nrow=0)) depvar1&quot;<br />&gt; out = deparse(substitute(output))<br />&gt; xxxx = names(df)[which(names(df)!= depvar1)]<br />Error in which(names(df) != depvar1) : object &#39;depvar1&#39; not found<br />&gt; for (i in 1:length(xxxx)) {<br />+ mylogit = glm(formula(paste(depvar1,&quot;~&quot;,xxxx[i])), data = df, family = &quot;binomial&quot;)<br />+ coeff = data.frame(summary(mylogit)$coefficient)<br />+ if (i==1) {output = rbind(dummydt,coeff)} else {output = rbind(output,coeff)} assign(out,output, envir = .GlobalEnv)<br />Error: unexpected symbol in:<br />&quot; coeff = data.frame(summary(mylogit)$coefficient)<br /> if (i==1) {output = rbind(dummydt,coeff)} else {output = rbind(output,coeff)} assign&quot;<br />&gt; }<br />Error: unexpected &#39;}&#39; in &quot; }&quot;<br />&gt; </content><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/7958828565254404797/304926244336319511/comments/default/458952148835036697'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/7958828565254404797/304926244336319511/comments/default/458952148835036697'/><link rel='alternate' type='text/html' href='https://www.listendata.com/2016/02/create-blank-data-frame-with-r.html?showComment=1534589215880#c458952148835036697' title=''/><author><name>Anonymous</name><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/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='https://www.listendata.com/2016/02/create-blank-data-frame-with-r.html' ref='tag:blogger.com,1999:blog-7958828565254404797.post-304926244336319511' source='http://www.blogger.com/feeds/7958828565254404797/posts/default/304926244336319511' type='text/html'/><gd:extendedProperty name="blogger.itemClass" value="pid-6939909"/><gd:extendedProperty name="blogger.displayTime" value="August 18, 2018 at 3:46 AM"/></entry><entry><id>tag:blogger.com,1999:blog-7958828565254404797.post-3129934821946470973</id><published>2017-05-01T04:03:30.680-07:00</published><updated>2017-05-01T04:03:30.680-07:00</updated><title type='text'>Code not working </title><content type='html'>Code not working </content><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/7958828565254404797/304926244336319511/comments/default/3129934821946470973'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/7958828565254404797/304926244336319511/comments/default/3129934821946470973'/><link rel='alternate' type='text/html' href='https://www.listendata.com/2016/02/create-blank-data-frame-with-r.html?showComment=1493636610680#c3129934821946470973' title=''/><author><name>Paramjeet Sharma</name><uri>https://www.blogger.com/profile/02199297852714100901</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/02/create-blank-data-frame-with-r.html' ref='tag:blogger.com,1999:blog-7958828565254404797.post-304926244336319511' source='http://www.blogger.com/feeds/7958828565254404797/posts/default/304926244336319511' type='text/html'/><gd:extendedProperty name="blogger.itemClass" value="pid-1390935354"/><gd:extendedProperty name="blogger.displayTime" value="May 1, 2017 at 4:03 AM"/></entry></feed>