Skip to Content
高效R语言编程
book

高效R语言编程

by Colin Gillespie, Robin Lovelace
August 2018
Intermediate to advanced
227 pages
4h 16m
Chinese
China Electric Power Press Ltd.
Content preview from 高效R语言编程
172
8
系统但用的是
32
位的
R
,你能访问稍多些的
RAM
(但并没多太多)。现代
系统应该使用
64
位操作系统与
64
R
语言。此时
Windows
的内存限制是
8TB
UNIX
家族是
128TB
。简单的检测你的系统是否是
64
位的
R
,可执行
下面命令:
.Machine$sizeof.pointer
如果是
64
位的
R
,返回
8
为了查询更多细节,使用 help("Memory-limits") help("Memory") 查看
相应帮助页。
练习
这些习题是为了将前面内容归纳成关键的两点。
1.
你正在用
32
位或
64
位的
R
语言?
2.
如果你在用
Windows
,执行 memory.limit() 的结果是什么
?
中央处理器
中央处理单元(
CPU
)或者处理器是计算机的大脑。
CPU
负责执行数值计算。
CPU
速度越快,
R
的执行速度越快。时钟速率(或者时钟频率,
Hz
)是
CPU
执行指令的频率。
CPU
的时钟频率越快,
CPU
在单位时间内执行的指令越
多。
近几年的单个
CPU
的时钟速率几乎无变化,一直在
3.4GHz
周围(见图
8-3
)。
不幸的是,由于
CPU
的内部构架是确定
CPU
性能的关键因素
,
我们不能仅用
CPU
时钟速率比较
CPU
。包
benchmarkme
提供了测试你的系统的函数,并
提供了以前测试基准的数据。
8-4
提供了
150
CPU
的测试结果。
使用
benchmarkme
包可执行测试并比较你的
CPU
与其他的测试结果。加载
该包,我们可检测你的
CPU
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

数据科学之编程技术:使用R进行数据清理、分析与可视化

数据科学之编程技术:使用R进行数据清理、分析与可视化

迈克尔 弗里曼, 乔尔 罗斯
R数据科学

R数据科学

Hadley Wickham, Garrett Grolemund

Publisher Resources

ISBN: 9787519820855