jcbonilla / analytics Goto Github PK
View Code? Open in Web Editor NEWAnalytics at NYU by JC Bonilla
Analytics at NYU by JC Bonilla
1 + 2
5 + 55
5/1.23
6*6
sqrt(16)
2:20
x = 1
y <- 2
x
y
s<-6
p<-4
t<-s+p
11 + 11 # this is a comment
help(c)
c(1, 2, 3)
vector<-c(5,9,1,0)
series<-1:10
seq(1,9,by=2)
seq(8,20,length=6)
rep(0,100)
rep(1:3,6)
class(x)
z<-"I love R"
class(z)
data <- c(1,2,3)
class(data)
data.1<-list(1,2,3)
class(data.1)
data
data.1
data<- read.csv("/Google Drive/_NYU GDrive/Teaching/Business Analytics/BA Data/zagat.csv", header=TRUE,/Google Drive/_NYU GDrive/Teaching/Business Analytics/BA Data") #using working directory
stringsAsFactors=FALSE) #direct method
setwd("
data<- read.csv("zagat.csv", header=TRUE,stringsAsFactors=FALSE)
getwd() # display active directory
names(data)
dim(data)
class(data)
data
data[1:4] # brackets [ ] allow indexing, columns 1-4
data[1:10,1:3] # displays 10 rows and 3 columns
data$Price # displays valyes for column "Price"
data$Price[1:10]
price<-data$Price # dollar symbol $ is used to invoce a vector in a matrix
head(data)
str(data)
mean()
var()
sd()
min()
max()
median()
quantile()
cor()
mean(data$Price)
var(data$Price)
sd(data$Price)
min(data$Price)
max(data$Price)
median(data$Price)
quantile(data$Price)
cor(data$Price,data$Food)
summary(data$Price)
data.1<-subset(data, Price == 50)
data.2<-subset(data, Price > 50)
dim(data.1)
dim(data.2)
zagat<-data
service.sd <- sd(zagat$Service)
service.mean <- mean(zagat$Service)
z <- (zagat$Service-service.mean)/service.sd
zagat.z3 <- subset(zagat, z<3)
zagat.z2 <- subset(zagat, z<2)
zagat.z1 <- subset(zagat, z<1)
dim(zagat)
summary(zagat$Service)
esd(zagat$Service)
dim(zagat.z3)
summary(zagat.z3$Service)
sd(zagat.z3$Service)
dim(zagat.z2)
summary(zagat.z2$Service)
sd(zagat.z2$Service)
dim(zagat.z1)
summary(zagat.z1$Service)
sd(zagat.z1$Service)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.