converting rows to columns of a data frame in R
<p>I have a data set like this</p>

<pre><code>movieID    title   year   country    genre  directorName    Rating     actorName1     actorName.2
1          hello    1995    USA      action    john smith       6        tom hanks      charlie sheen
2          MI2      1997    USA      action    mad max          8        tom cruize     some_body
3          MI2      1997    USA      thriller  mad max          8        tom cruize     some_body
</code></pre>

<p>basically there are numerous rows that just have a different user given genre that I would like to columns having genre1, genre2, ... </p>

<p>I tried reshape() but it would only convert based on some ID variable. If anyone has any ideas let me know</p>