楼主: SleepyTom
1857 19

[学术资料] R Cookbook [推广有奖]

  • 1关注
  • 11粉丝

讲师

20%

还不是VIP/贵宾

-

威望
0
论坛币
146411 个
通用积分
66.0707
学术水平
103 点
热心指数
143 点
信用等级
117 点
经验
9800 点
帖子
342
精华
0
在线时间
123 小时
注册时间
2007-5-8
最后登录
2023-2-10

相似文件 换一批

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

求职就业群
赵安豆老师微信:zhaoandou666

经管之家联合CDA

送您一个全额奖学金名额~ !

感谢您参与论坛问题回答

经管之家送您两个论坛币!

+2 论坛币
R Cookbook By Paul Teetor
Publisher: O'Reilly Media
Final Release Date: March 2011
Pages: 438

With more than 200 practical recipes, this book helps you perform data analysis with R quickly and efficiently. The R language provides everything you need to do statistical work, but its structure can be difficult to master. This collection of concise, task-oriented recipes makes you productive with R immediately, with solutions ranging from basic tasks to input and output, general statistics, graphics, and linear regression.

Each recipe addresses a specific problem, with a discussion that explains the solution and offers insight into how it works. If you’re a beginner, R Cookbook will help get you started. If you’re an experienced data programmer, it will jog your memory and expand your horizons. You’ll get the job done faster and learn more about R in the process.

  • Create vectors, handle variables, and perform other basic functions
  • Input and output data
  • Tackle data structures such as matrices, lists, factors, and data frames
  • Work with probability, probability distributions, and random variables
  • Calculate statistics and confidence intervals, and perform statistical tests
  • Create a variety of graphic displays
  • Build statistical models with linear regressions and analysis of variance (ANOVA)
  • Explore advanced statistical techniques, such as finding clusters in your data

"Wonderfully readable, R Cookbook serves not only as a solutions manual of sorts, but as a truly enjoyable way to explore the R language—one practical example at a time."—Jeffrey Ryan, software consultant and R package author


二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

关键词:Cookbook Book Cook COO distribution everything collection difficult practical structure

485ng&6.rar

7.15 MB

需要: 10 个论坛币  [购买]

本附件包括:

  • R Cookbook by P. Teetor.pdf

已有 2 人评分经验 学术水平 热心指数 信用等级 收起 理由
accumulation + 100 + 1 + 1 + 1 精彩帖子
Nicolle + 100 + 1 + 1 精彩帖子

总评分: 经验 + 200  学术水平 + 1  热心指数 + 2  信用等级 + 2   查看全部评分

本帖被以下文库推荐

沙发
Nicolle 学生认证  发表于 2016-5-8 02:12:07 |只看作者 |坛友微信交流群
提示: 作者被禁止或删除 内容自动屏蔽

使用道具

藤椅
Lisrelchen 发表于 2016-5-8 02:13:36 |只看作者 |坛友微信交流群
  1. 3.2. Saving Your Workspace

  2. Problem
  3. You want to save your workspace without exiting from R.

  4. Solution
  5. Call the save.image function:

  6. > save.image()
复制代码

使用道具

板凳
Lisrelchen 发表于 2016-5-8 02:14:21 |只看作者 |坛友微信交流群
  1. 3.3. Viewing Your Command History

  2. Problem
  3. You want to see your recent sequence of commands.

  4. Solution
  5. Scroll backward by pressing the up arrow or Ctrl-P. Or use the history function to view your most recent input:

  6. > history()
  7. Discussion
  8. The history function will display your most recent commands. By default it shows the most recent 25 lines, but you can request more:

  9. > history(100)          # Show 100 most recent lines of history
  10. > history(Inf)          # Show entire saved history
复制代码

使用道具

报纸
Lisrelchen 发表于 2016-5-8 02:15:23 |只看作者 |坛友微信交流群
  1. 3.4. Saving the Result of the Previous Command

  2. Problem
  3. You typed an expression into R that calculated the value, but you forgot to save the result in a variable.

  4. Solution
  5. A special variable called .Last.value saves the value of the most recently evaluated expression. Save it to a variable before you type anything else.

  6. Discussion
  7. It is frustrating to type a long expression or call a long-running function but then forget to save the result. Fortunately, you needn’t retype the expression nor invoke the function again—the result was saved in the .Last.value variable:

  8. > aVeryLongRunningFunction()     # Oops! Forgot to save the result!
  9. [1] 147.6549
  10. > x <- .Last.value               # Capture the result now
  11. > x
复制代码

使用道具

地板
Lisrelchen 发表于 2016-5-8 02:15:59 |只看作者 |坛友微信交流群
  1. 3.5. Displaying the Search Path

  2. Problem
  3. You want to see the list of packages currently loaded into R.

  4. Solution
  5. Use the search function with no arguments:

  6. > search()
  7. Discussion
  8. The search path is a list of packages that are currently loaded into memory and available for use. Although many packages may be installed on your computer, only a few of them are actually loaded into the R interpreter at any given moment. You might be wondering which packages are loaded right now.

  9. With no arguments, the search function returns the list of loaded packages. It produces an output like this:

  10. > search()
复制代码

使用道具

7
Lisrelchen 发表于 2016-5-8 02:23:23 |只看作者 |坛友微信交流群
  1. 3.6. Accessing the Functions in a Package

  2. Problem
  3. A package installed on your computer is either a standard package or a package downloaded by you. When you try using functions in the package, however, R cannot find them.

  4. Solution
  5. Use either the library function or the require function to load the package into R:

  6. > library(packagename)
复制代码

使用道具

8
Lisrelchen 发表于 2016-5-8 02:23:54 |只看作者 |坛友微信交流群
  1. 3.7. Accessing Built-in Datasets

  2. Problem
  3. You want to use one of R’s built-in datasets.

  4. Solution
  5. The standard datasets distributed with R are already available to you, since the datasets package is in your search path.

  6. To access datasets in other packages, use the data function while giving the dataset name and package name:

  7. > data(dsname, package="pkgname")
复制代码

使用道具

9
Lisrelchen 发表于 2016-5-8 02:25:01 |只看作者 |坛友微信交流群
  1. 3.8. Viewing the List of Installed Packages

  2. Problem
  3. You want to know what packages are installed on your machine.

  4. Solution
  5. Use the library function with no arguments for a basic list. Use installed.packages to see more detailed information about the packages.
复制代码

使用道具

10
Lisrelchen 发表于 2016-5-8 02:25:42 |只看作者 |坛友微信交流群
  1. 3.9. Installing Packages from CRAN

  2. Problem
  3. You found a package on CRAN, and now you want to install it on your computer.

  4. Solution
  5. Command line
  6. Use the install.packages function, putting the name of the package in quotes:

  7. > install.packages("packagename")
复制代码

使用道具

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加好友,备注jr
拉您进交流群

京ICP备16021002-2号 京B2-20170662号 京公网安备 11010802022788号 论坛法律顾问:王进律师 知识产权保护声明   免责及隐私声明

GMT+8, 2024-4-28 16:15