Permalink
Browse files

refresh block002_hello-r-workspace-wd-project

  • Loading branch information...
1 parent 5298873 commit d75bc889d54977ac844719da660142c8dee33f96 @jennybc jennybc committed Sep 6, 2016
@@ -108,6 +108,7 @@
</style>
+
<div class="container-fluid main-container">
<!-- tabsets -->
@@ -213,7 +214,7 @@ <h1 class="title toc-ignore">R basics, workspace and working directory, RStudio
<pre><code>## [1] 1 2 3 4 5 6 7 8 9 10</code></pre>
<p>Not all functions have (or require) arguments:</p>
<pre class="r"><code>date()</code></pre>
-<pre><code>## [1] &quot;Tue Jun 14 22:00:26 2016&quot;</code></pre>
+<pre><code>## [1] &quot;Mon Sep 5 22:38:59 2016&quot;</code></pre>
<p>Now look at your workspace – in the upper right pane. The workspace is where user-defined objects accumulate. You can also get a listing of these objects with commands:</p>
<pre class="r"><code>objects()</code></pre>
<pre><code>## [1] &quot;jenny_rocks&quot; &quot;this_is_a_really_long_name&quot;
@@ -254,7 +255,7 @@ <h1 class="title toc-ignore">R basics, workspace and working directory, RStudio
<p>Using your favorite method, visit the directory where image was saved and verify there is a file named <code>.RData</code>. You will also see a file <code>.Rhistory</code>, holding the commands submitted in your recent session.</p>
<p>Restart RStudio. In the Console you will see a line like this:</p>
<pre><code>[Workspace loaded from ~/.RData]</code></pre>
-<p>indicating that your workspace has been restored. Look in the Workspace pane and you’ll see the same objects as before. In the History tab of the same pane, you should also see your command history.You’re back in business. This way of starting and stopping analytical work will not serve you well for long but it’s a start.</p>
+<p>indicating that your workspace has been restored. Look in the Workspace pane and you’ll see the same objects as before. In the History tab of the same pane, you should also see your command history. You’re back in business. This way of starting and stopping analytical work will not serve you well for long but it’s a start.</p>
</div>
<div id="working-directory" class="section level4">
<h4>Working directory</h4>
@@ -287,7 +288,7 @@ <h1 class="title toc-ignore">R basics, workspace and working directory, RStudio
x &lt;- runif(40)
y &lt;- a + b * x + rnorm(40, sd = sqrt(sig_sq))
(avg_x &lt;- mean(x))</code></pre>
-<pre><code>## [1] 0.554615</code></pre>
+<pre><code>## [1] 0.4616799</code></pre>
<pre class="r"><code>write(avg_x, &quot;avg_x.txt&quot;)
plot(x, y)
abline(a, b, col = &quot;purple&quot;)</code></pre>
@@ -339,6 +340,7 @@ <h1 class="title toc-ignore">R basics, workspace and working directory, RStudio
$('tr.header').parent('thead').parent('table').addClass('table table-condensed');
});
+
</script>
<!-- dynamically load mathjax for compatibility with self-contained -->
@@ -143,7 +143,7 @@ date()
```
```
-## [1] "Tue Jun 14 22:00:26 2016"
+## [1] "Mon Sep 5 22:38:59 2016"
```
Now look at your workspace -- in the upper right pane. The workspace is where user-defined objects accumulate. You can also get a listing of these objects with commands:
@@ -226,7 +226,7 @@ Restart RStudio. In the Console you will see a line like this:
[Workspace loaded from ~/.RData]
```
-indicating that your workspace has been restored. Look in the Workspace pane and you'll see the same objects as before. In the History tab of the same pane, you should also see your command history.You're back in business. This way of starting and stopping analytical work will not serve you well for long but it's a start.
+indicating that your workspace has been restored. Look in the Workspace pane and you'll see the same objects as before. In the History tab of the same pane, you should also see your command history. You're back in business. This way of starting and stopping analytical work will not serve you well for long but it's a start.
#### Working directory
@@ -293,7 +293,7 @@ y <- a + b * x + rnorm(40, sd = sqrt(sig_sq))
```
```
-## [1] 0.554615
+## [1] 0.4616799
```
```r
@@ -174,7 +174,7 @@ Restart RStudio. In the Console you will see a line like this:
[Workspace loaded from ~/.RData]
```
-indicating that your workspace has been restored. Look in the Workspace pane and you'll see the same objects as before. In the History tab of the same pane, you should also see your command history.You're back in business. This way of starting and stopping analytical work will not serve you well for long but it's a start.
+indicating that your workspace has been restored. Look in the Workspace pane and you'll see the same objects as before. In the History tab of the same pane, you should also see your command history. You're back in business. This way of starting and stopping analytical work will not serve you well for long but it's a start.
#### Working directory
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit d75bc88

Please sign in to comment.