当前位置:网站首页>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 了
边栏推荐
- basic_ String mind map
- 5 connection modes of QT signal slot
- How to crop GIF dynamic graph? Take this picture online clipping tool
- SPARQL learning notes of query, an rrdf query language
- Core mode and immediate rendering mode of OpenGL
- 分饼干问题
- p1408
- Flexible layout (display:flex;) Attribute details
- dev/mapper的解释
- QT pattern prompt box implementation
猜你喜欢
Power automatic test system nsat-8000, accurate, high-speed and reliable power test equipment
Afterword of Parl intensive learning 7-day punch in camp
google_ Breakpad crash detection
Fishing detection software
One question per day,
Build a minimalist gb28181 gatekeeper and gateway server, establish AI reasoning and 3D service scenarios, and then open source code (I)
1090.Phone List
搭建极简GB28181 网守和网关服务器,建立AI推理和3d服务场景,然后开源代码(一)
GDB debugging
Time stamp calculation and audio-visual synchronization of TS stream combined video by ffmpeg protocol concat
随机推荐
Biscuit distribution
Is it safe to open a stock account online?
Flexible layout (display:flex;) Attribute details
Vs2019 scanf error
弹性布局(display:flex;)属性详解
Installing QT plug-in in Visual Studio
google_ Breakpad crash detection
Design and implementation of thread pool
5 connection modes of QT signal slot
Stack and queue
QT loading third-party library basic operation
One question per day, a classic simulation question
C language LNK2019 unresolved external symbols_ Main error
Std:: vector minutes
In 2022, the score line of Guangdong college entrance examination was released, and several families were happy and several worried
How to cut the size of a moving picture? Try this online photo cropping tool
AB string interchange
Qlogsystem log system configuration use
电源自动测试系统NSAT-8000,精准高速可靠的电源测试设备
Bessie's weight problem [01 backpack]