From 1b69136ff519a7fde6325e7f14fa1b0d56ed4212 Mon Sep 17 00:00:00 2001 From: Adam Ross Nelson Date: Fri, 29 Sep 2017 15:26:53 -0500 Subject: [PATCH 1/3] Added cls and clear all Added two entries. cls (clears the scree). And clear all (set clear workspace). --- dictionary.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dictionary.md b/dictionary.md index bc7ab22..5a7be4f 100644 --- a/dictionary.md +++ b/dictionary.md @@ -2,6 +2,8 @@ The following table provides some quick translations of Stata commands into R. Stata | R | Description ------------------------------|--------------------------------------------|------------------------------ +cls | cat("\014") | Clears the screen +clear all | rm(list=ls()) | Clears data. Set fresh workspace insheet using "foo.csv", comma| mydata <- read.csv("foo.csv") | Read csv file cd "mydirectory" | setwd("mydirectory") | Change working directories reg y x1 x2 | summary(lm(y~x1+x2, data=mydata)) | Ordinary least squares with constant From 79880d925e51ed60a0fed8c4c28e95dbe1a42c72 Mon Sep 17 00:00:00 2001 From: Adam Ross Nelson Date: Fri, 29 Sep 2017 15:29:22 -0500 Subject: [PATCH 2/3] Added cross-reference to wiki Added cross-reference to wiki. --- dictionary.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dictionary.md b/dictionary.md index 5a7be4f..a28b175 100644 --- a/dictionary.md +++ b/dictionary.md @@ -1,5 +1,7 @@ The following table provides some quick translations of Stata commands into R. Since R supports multiple data sets, we need to specify a specific data set to manipulate when using data accessing/modifying commands. We use mydata as the default data set to target. +See also: (https://github.com/EconometricsBySimulation/RStata/wiki/Dictionary:-Stata-to-R)[https://github.com/EconometricsBySimulation/RStata/wiki/Dictionary:-Stata-to-R] + Stata | R | Description ------------------------------|--------------------------------------------|------------------------------ cls | cat("\014") | Clears the screen From 2bed313f89951da5dc030a04fe2aa5f11ed852a8 Mon Sep 17 00:00:00 2001 From: Adam Ross Nelson Date: Fri, 29 Sep 2017 15:29:46 -0500 Subject: [PATCH 3/3] Update dictionary.md --- dictionary.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dictionary.md b/dictionary.md index a28b175..a63cb31 100644 --- a/dictionary.md +++ b/dictionary.md @@ -1,6 +1,6 @@ The following table provides some quick translations of Stata commands into R. Since R supports multiple data sets, we need to specify a specific data set to manipulate when using data accessing/modifying commands. We use mydata as the default data set to target. -See also: (https://github.com/EconometricsBySimulation/RStata/wiki/Dictionary:-Stata-to-R)[https://github.com/EconometricsBySimulation/RStata/wiki/Dictionary:-Stata-to-R] +See also: https://github.com/EconometricsBySimulation/RStata/wiki/Dictionary:-Stata-to-R Stata | R | Description ------------------------------|--------------------------------------------|------------------------------