Python for R Users - Robert Richardson
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.
Related download
- a guide to f string formatting in python
- spark cassandra integration theory practice
- data handling using pandas 2
- class xii informatics practices practical list
- working with xts and quantmod
- pandas format numbers with commas
- python for r users robert richardson
- data exploration in python using
- from dataframe to numpy array
- pandas under the hood