R - Construct a data frame with multiple columns without assign
<p>My goal is to create a <code>data frame</code> with a number <code>i</code> of columns named <code>ColumnName_1</code> -> <code>ColumnName_i</code></p>

<p>The result would be for <code>i = 3</code> :</p>

<pre><code>structure(list(ColumnName_1 = c(0, 0, 0), ColumnName_2 = c(0, 
0, 0), ColumnName_3 = c(0, 0, 0)), .Names = c("ColumnName_1", 
"ColumnName_2", "ColumnName_3"), row.names = c(NA, -3L), class = "data.frame")
</code></pre>

<p>I understand from other questions on others topics that it's not recommended to use <code>assign</code> but it's the only solution that I see at the moment.</p>