In the script editor, let's type in y, the left pointing arrow a dash. Let's create a vector or sequence of data and we'll use the assignment operator. Additionally, I could type in a semicolon, put x and it'll give me the output of 15. I could also highlight this x, click Run and it'll show me 15. Now I want you down in the console area to type in x and you'll see that we have assigned the number 15 to the variable x. The left pointing arrow and a dash and then type in 15, then go to the run section and click Run. In the script editor, type in the following code, type in x. And the assignment operator allows us to assign numbers or equations, vectors, variables, data frames which we'll learn about shortly. Lastly, one of the most frequently used operator is the assignment operator which is this arrow here with a dash. Secondly, as I mentioned before, if you want to put a comment into your code, you can use the hashtag symbol and anything type to the right of the symbol will not be executed. So if you are repeatedly getting an error, it's possible that you've mistakenly typed in a lower case or upper case letter somewhere in your code. Before we start exploring working with datasets in R, there are a few things for you to know.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |