Python for R Users - Robert Richardson
[Pages:34]Python for R Users
By
Chandan Routray As a part of internship at
Basic Commands
Functions
Downloading and installing a package Load a package
Checking working directory
Setting working directory List files in a directory List all objects Remove an object
R
install.packages('name') library('name') getwd()
setwd() dir() ls()
rm('name')
Python
pip install name import name as other_name
import os os.getcwd()
os.chdir() os.listdir()
globals() del('object')
Dec 2014
Copyrigt
Licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License. i
Data Frame Creation
Creating a data frame "df" of dimension 6x4 (6 rows and 4 columns) containing random
numbers
R
A< matrix(runif(24,0,1),nrow=6,ncol=4) df ................
................
In order to avoid copyright disputes, this page is only a partial summary.
To fulfill the demand for quickly locating and searching documents.
It is intelligent file search solution for home and business.