In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-01 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >
Share
Shulou(Shulou.com)05/31 Report--
This article shows you how to understand R language, the content is concise and easy to understand, it can definitely brighten your eyes. I hope you can get something through the detailed introduction of this article.
Installation of R language pack 1.1R language pack
A package is a collection of R functions, data, and precompiled code in a well-defined format. The directory on your computer where packages are stored is called library. The function .libPaths () shows where the library is located, and the function library () shows which packages are in the library.
R comes with a series of default packages (including base, datasets, utils, grDevices, graphics, stats, and methods) that provide a wide variety of default functions and datasets. Other packages can be downloaded to install. Once installed, they must be loaded into the session before they can be used. The command search () tells you which packages are loaded and ready to use.
The download and installation of the 2R language pack can go to the official website to download the required package, or you can use the command to download and install it.
The first time you install a package, use the command install.packages (). Executing install.packages () with no parameters will display a list of CRAN mirror sites. After selecting one of the mirror sites, you will see a list of all available packages, and select one of them to download and install. If you know the name of the package you want to install, you can directly provide the package name as an argument to this function.
A package needs to be installed only once. But like other software, packages are often updated by their authors. Use the command update.packages () to update installed packages. To see a description of the installed packages, you can use the installed.packages () command, which lists the installed packages, as well as their version numbers, dependencies, and so on.
Go to the official website to download
Https://cran.r-project.org/
one。 Vector operation 1. The basic elements of a vector are:
Numeric value (numeric)
Character (character)
Logical value (logical)
Plural (complex)
two。 The vector does not need to define a type, but can be assigned directly: X [9]
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.