课程: Complete Guide to R: Wrangling, Visualizing, and Modeling Data
今天就学习课程吧!
今天就开通帐号,24,600 门业界名师课程任您挑!
Entering data
- [Instructor] By far, the easiest way to get a dataset of any meaningful size into R is to import it, and I'm going to talk about that, but I want to show you first how for very small sets of data, for a particular variable or a particular calculation, it may be easiest to enter the data directly into R through the script window. Let me show you how this works. I'm going to use this script about entering data, and let's come down to this first basic command. You can do basic math, here I have two plus two. And to run that command, I'm going to hold down Cmd or Ctrl and hit the enter or return key. When I do that, I get the result down here in the console. Now, the one in square brackets is not the result. That's an index number and that's there because R puts the results into vectors and it's telling you which item is the first one on that line. Now, there's only one, so we just have the index number one, but we also see that two plus two is equal to four. It's nice to know that R…
随堂练习,边学边练
下载课堂讲义。学练结合,紧跟进度,轻松巩固知识。
内容
-
-
-
-
(已锁定)
Installing R1 分钟 49 秒
-
(已锁定)
Environments for R4 分钟 27 秒
-
(已锁定)
Installing RStudio1 分钟 33 秒
-
(已锁定)
Navigating the RStudio environment6 分钟 4 秒
-
(已锁定)
Entering data7 分钟 5 秒
-
Data types and structures12 分钟 24 秒
-
(已锁定)
Comments and headers4 分钟 59 秒
-
(已锁定)
Packages for R4 分钟 46 秒
-
(已锁定)
The tidyverse3 分钟 4 秒
-
(已锁定)
Piping commands with %>%5 分钟 44 秒
-
(已锁定)
-
-
-
-
-
-
-
-
-
-