snipt

Ctrl+h for KB shortcuts

RConsole

Sustituir NA

tabla[is.na(tabla)] <- 0
https://snipt.net/embed/4dc62081a44ade77d0b947ec84b71c4c/
https://snipt.net/raw/4dc62081a44ade77d0b947ec84b71c4c/
4dc62081a44ade77d0b947ec84b71c4c
rconsole
RConsole
1
2016-09-26T03:12:03
True
False
False
Feb 07, 2014 at 01:00 AM
/api/public/snipt/111636/
sustituir-na
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a></pre></div></td><td class="code"><div class="highlight"><pre><span id="L-1"><a name="L-1"></a><span class="go">tabla[is.na(tabla)] &lt;- 0</span> </span></pre></div> </td></tr></table>
R, RConsole

RConsole

Installing RStudio on ubuntu/linux

1
2
3
4
5
6
7
8
#installing RStudio on ubuntu/linux
#Download 32/64 bit version in ur local directory 4m (http://www.rstudio.com/ide/download/)
#run following commands in terminal with appropriate path

shell>$ sudo  dpkg -i '/home/trendwise/Downloads/rstudio-0.96.331-amd64.deb'

#this will unpack & install RStudio
#press "Super"/"Windows" key,search for RStudio
https://snipt.net/embed/ef4e75008d91d58baadf6c9c80889d2d/
https://snipt.net/raw/ef4e75008d91d58baadf6c9c80889d2d/
ef4e75008d91d58baadf6c9c80889d2d
rconsole
RConsole
8
2016-09-26T01:14:39
True
False
False
/api/public/snipt/48920/
-1037
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a> <a href="#L-3">3</a> <a href="#L-4">4</a> <a href="#L-5">5</a> <a href="#L-6">6</a> <a href="#L-7">7</a> <a href="#L-8">8</a></pre></div></td><td class="code"><div class="highlight"><pre><span id="L-1"><a name="L-1"></a><span class="go">#installing RStudio on ubuntu/linux</span> </span><span id="L-2"><a name="L-2"></a><span class="go">#Download 32/64 bit version in ur local directory 4m (http://www.rstudio.com/ide/download/)</span> </span><span id="L-3"><a name="L-3"></a><span class="go">#run following commands in terminal with appropriate path</span> </span><span id="L-4"><a name="L-4"></a> </span><span id="L-5"><a name="L-5"></a><span class="go">shell&gt;$ sudo dpkg -i &#39;/home/trendwise/Downloads/rstudio-0.96.331-amd64.deb&#39;</span> </span><span id="L-6"><a name="L-6"></a> </span><span id="L-7"><a name="L-7"></a><span class="go">#this will unpack &amp; install RStudio</span> </span><span id="L-8"><a name="L-8"></a><span class="go">#press &quot;Super&quot;/&quot;Windows&quot; key,search for RStudio</span> </span></pre></div> </td></tr></table>
R
Copyrighted, illegal, or inappropriate content? Email support@snipt.net.