title: `$<-.data.frame`(`*tmp*`, Numero, value = numeric(0) error
body: <p>I'm not good at r programming and English. I am a beginner of r. please fix my error.</p>
  <p>You must do it with r markdown. Thank you!</p>
  <pre><code>#data read
  exp7 &lt;-read.table(file = &quot;Races&quot;,encoding=&quot;EUC-KR&quot;,fileEncoding = &quot;UTF-8&quot;,sep=&quot;,&quot;, header = TRUE)
  
  #data process
  exp7$Races&lt;-c(&quot;Berger australien&quot;, &quot;Golden retriever&quot;, &quot;Berger belge&quot;, &quot;Staffordshire bull terrier&quot;, &quot;Berger allemand&quot;)
  exp7$Numero&lt;-as.numeric(exp7$Numero)
  str(exp7)
  
  #make graph
  ggplot(data=exp7, mapping = aes(x=Races, y=Numero, fill=Races)) +geom_bar(stat = 'identity') + labs(title = &quot;title&quot;) +geom_text(aes(x=Races, y=Numero,label=Numero), size=10, hjust=1, vjust=15,group=1)+ theme_classic()
  
  </code></pre>
  <p>The following error occurred in:</p>
  <pre><code>$&lt;-.data.frame`(`*tmp*`, Numero, value = numeric(0)
  replacement has 0 rows, data has 5
  call: &lt;Anonymous&gt; ... eval_with_user_handlers -&gt; eval -&gt; eval -&gt; $&lt;- -&gt; $&lt;-.data.frame is stop running
  </code></pre>