Menu
×
   ❮     
HTML CSS JAVASCRIPT SQL PYTHON JAVA PHP HOW TO W3.CSS C C++ C# BOOTSTRAP REACT MYSQL JQUERY EXCEL XML DJANGO NUMPY PANDAS NODEJS R TYPESCRIPT ANGULAR GIT POSTGRESQL MONGODB ASP AI GO KOTLIN SASS VUE DSA GEN AI SCIPY AWS CYBERSECURITY DATA SCIENCE
     ❯   

R 入门


如何安装 R

要安装 R,请访问 https://cloud.r-project.org/ 并下载适用于 Windows、Mac 或 Linux 的最新版本 R。

下载并安装 R 后,您可以在计算机上运行 R。

以下屏幕截图显示了在 Windows PC 上运行 R 时可能的样子

如果键入 5 + 5 并按 Enter 键,您将看到 R 输出 10


在 W3Schools 学习 R

在 W3Schools.com 学习 R 时,您可以使用我们的“尝试一下”工具,该工具在浏览器中同时显示代码和结果。这将使您更容易在前进的过程中测试和理解每个部分。

示例

5 + 5

结果

[1] 10
尝试一下 »


×

Contact Sales

If you want to use W3Schools services as an educational institution, team or enterprise, send us an e-mail:
[email protected]

Report Error

If you want to report an error, or if you want to make a suggestion, send us an e-mail:
[email protected]

W3Schools is optimized for learning and training. Examples might be simplified to improve reading and learning. Tutorials, references, and examples are constantly reviewed to avoid errors, but we cannot warrant full correctness of all content. While using W3Schools, you agree to have read and accepted our terms of use, cookie and privacy policy.

Copyright 1999-2024 by Refsnes Data. All Rights Reserved. W3Schools is Powered by W3.CSS.