title: How copy a row from a data frame to another df and turn it in a column in one go?
body: <p>I have df1 with several rows and columns that I want to copy a only row and turn it into a column in df2 which I want to store the years e gross savings (% of gdp), to make like this: </p>
  
  <pre><code>  year    percentGDP
  1 1980    17.8 
  2 1981    15.4
  3 1982    16.5
  4 1983    14.2
  5 1984    10.3
    ...     ...
  </code></pre>
  
  <p>But when a tried, columns like "percentGDP.X1980" were created and the values of columns were repeated:</p>
  
  <pre><code>df2 &lt;- data.frame(year = c("1980":"1990"), percentGDP = c(df1[1,1:11])) 
  
  year    percentGDP.X1980   percentGDP.X1981
  1 1980    17.8               15.4
  2 1981    17.8               15.4
  3 1982    17.8               15.4
  4 1983    17.8               15.4
  5 1984    17.8               15.4
    ...     ...                ...
  </code></pre>
  
  <p>df1 is similar to this:</p>
  
  <pre><code>   Country   X1980 X1981 X1982 X1983 X1984 X1985 X1986 X1987 X1988 X1989 X1990
  1  Brazil    17.8  15.4  16.5  14.2  10.3  ...   ...   ...   ...   ...   ...
  </code></pre>
  
  <p>What should I do?</p>