R: Create Variable and Display Value in Single Command
<p>Is there a way to both create a variable and output its value in a single command? In other words, concatenating both lines below into a single command?</p>

<pre><code>x &lt;- mean(1:7)
x
</code></pre>