Python for R Users - Brigham Young University
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
- sklearn crfsuite documentation
- scikit survival a library for time to event analysis built on top of
- leaps regression subset selection
- scikit learn
- use the following guidelines to install python and run code for
- building datasets florida state university
- glmnet lasso and elastic net regularized generalized linear models
- installing numpy scipy opencv theano for python in vs
- numpy user guide
- factor analyzer documentation read the docs