![]() ![]() Unless otherwise specified, all coding instructions for this seminar should be entered into the script editor. Save your R script with the name mycode.R. ![]() Make sure to periodically save your scripts. This will advance the cursor to the next command, where you can hit Ctrl-Enter again to run it, advancing the cursor to the next command…Įxecute the two commands in the script editor using the keyboard shortcuts. To execute code directly from the script editor, place the cursor inside the command (or highlight the entire command), and then hit Ctrl-Enter (on PCs, use Command-Enter on Macs). When the tab-completion window appears with a list of possible commands, hit Tab to choose log(). Write the code 1 + 2 in the script editor. If you do not see the script editor already open, open it now by selecting File > New File > R Script. The script editor features the same tab-code-completion and function help as the console, as well as syntax highlighting. We can also issue R commands directly from the editor. Instead, we use the script editor to save our commands as a record of the steps we took to analyze our data. Most R programs written for data analysis consists of many commands, making entering code line-by-line into the console inefficient. Descriptive statistics for continuous variables. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |