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.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |