当前位置:网站首页>Using R language in jupyter notebook
Using R language in jupyter notebook
2022-06-25 15:10:00 【A window full of stars and milky way】
I was not going to study R Linguistic , After all, I learned python, Has been able to meet most of the needs . But recently, I applied to the National People's Congress as an on-the-job graduate student in statistics , The teacher said that later papers must use R Language to write .( ̄▽ ̄)~*
Then learn . Because I used it all the time jupyter notebook To write an analysis report , So I want to use jupyter Write R, This is very convenient . I'm glad to be able to jupyter Use in R, But it's hard to find tutorials online , Fortunately, after turning to the official website, I finally got it done , Record the method here . For future reference .(*^▽^*)
R Installation
R There are many online tutorials for the installation of , I won't go over it , Pretty simple . Go directly to the official website to download the file. The next step is just the spark and lightning along the way .
Download address :R Official website download address
Rstudio Installation
After all jupyter It is often used for presentation reports , It is not suitable for writing engineering programs . and R Of IDE Or recommendation? Rstudio Of , Free version. , Can meet most of the needs .
Download address :Rstudio Download address
relation jupyter notebook
If you do not install jupyter notebook, You need to install . I recommend using it directly anaconda, It comes with jupyter notebook And the environment configuration has been done for you , Bring their own python
It's equivalent to the last R and python Both can be used. .
First let's open up R The command line , If you don't know, you can open it directly Rsudio, In the sitting corner console The following commands are written in the :
install.packages(c('repr', 'IRdisplay', 'evaluate', 'crayon', 'pbdZMQ', 'devtools', 'uuid', 'digest'))
devtools::install_github('IRkernel/IRkernel')The above code will be executed automatically in two steps , After the execution , Enter one of the following codes :
# Install only under the current user
IRkernel::installspec()
# Or install it under the system
IRkernel::installspec(user = FALSE) Wait for execution to complete , open jupyter You can create a new R Of notebook 了 . 
Okay ~ It's that simple , Then you can write happily R 了

边栏推荐
猜你喜欢

Std:: vector minutes

开餐馆

Esp8266 building smart home system

Build a minimalist gb28181 gatekeeper and gateway server, establish AI reasoning and 3D service scenarios, and then open source code (I)

如何裁剪动图大小?试试这个在线照片裁剪工具

Power automatic test system nsat-8000, accurate, high-speed and reliable power test equipment
![[try to hack] vulhub shooting range construction](/img/fc/6057b6dec9b51894140453e5422176.png)
[try to hack] vulhub shooting range construction

Paddlepaddle paper reproduction course biggan learning experience

Gif动图如何裁剪?收下这个图片在线裁剪工具

Solution of push code failure in idea
随机推荐
Automatic correlation between QT signal and slot
Basic knowledge of pointer
QT source code online view
Semaphore function
BM setup process
55 specific ways to improve program design (2)
Compile Caffe's project using cmake
How to cut the size of a moving picture? Try this online photo cropping tool
Explanation of dev/mapper
Afterword of Parl intensive learning 7-day punch in camp
Common dynamic memory errors
Qcodeeditor - QT based code editor
Biscuit distribution
How to crop GIF dynamic graph? Take this picture online clipping tool
QT animation loading and closing window
Business layer - upper and lower computer communication protocol
Generation method and usage of coredump
Is it normal to dig for money? Is it safe to open a stock account?
Breakpad usage and DMP analysis
Esp8266 building smart home system