Skip to content

Commit 9ac0ee6

Browse files
author
Al-Ahmadgaid Asaad
committed
Modified
1 parent 6b394e1 commit 9ac0ee6

File tree

144 files changed

+49
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

144 files changed

+49
-0
lines changed

2013/C-and-CPP/Frequency-Distribution/Code1.c

100644100755
File mode changed.

2013/C-and-CPP/Frequency-Distribution/Code1.cpp

100644100755
File mode changed.

2013/C-and-CPP/Frequency-Distribution/Source.pdf

100644100755
File mode changed.

2013/C-and-CPP/Mean/Code1.c

100644100755
File mode changed.

2013/C-and-CPP/Mean/Code1.cpp

100644100755
File mode changed.

2013/C-and-CPP/Mean/Source.pdf

100644100755
File mode changed.

2013/C-and-CPP/Median/Code1.c

100644100755
File mode changed.

2013/C-and-CPP/Median/Code1.cpp

100644100755
File mode changed.

2013/C-and-CPP/Median/Source.pdf

100644100755
File mode changed.

2013/C-and-CPP/Variance-Standard-Deviation-and-Coefficient-of-Variation/Code1.c

100644100755
File mode changed.

2013/C-and-CPP/Variance-Standard-Deviation-and-Coefficient-of-Variation/Code1.cpp

100644100755
File mode changed.

2013/C-and-CPP/Variance-Standard-Deviation-and-Coefficient-of-Variation/Source.pdf

100644100755
File mode changed.

2013/LaTeX/Download and Installation/Source.pdf

100644100755
File mode changed.

2013/LaTeX/Introduction---First-Document/Code1.tex

100644100755
File mode changed.

2013/LaTeX/Introduction---First-Document/Code2.tex

100644100755
File mode changed.

2013/LaTeX/Introduction---First-Document/Code3.tex

100644100755
File mode changed.

2013/LaTeX/Introduction---First-Document/Source.pdf

100644100755
File mode changed.

2013/LaTeX/Itemize-and-Enumerate/Code1.tex

100644100755
File mode changed.

2013/LaTeX/Itemize-and-Enumerate/Code2.tex

100644100755
File mode changed.

2013/LaTeX/Itemize-and-Enumerate/Code3.tex

100644100755
File mode changed.

2013/LaTeX/Itemize-and-Enumerate/Code4.tex

100644100755
File mode changed.

2013/LaTeX/Itemize-and-Enumerate/Code5.tex

100644100755
File mode changed.

2013/LaTeX/Itemize-and-Enumerate/Code6.tex

100644100755
File mode changed.

2013/LaTeX/Paragraph-Spacing-and-Indentation/Code1.tex

100644100755
File mode changed.

2013/LaTeX/Paragraph-Spacing-and-Indentation/Code2.tex

100644100755
File mode changed.

2013/LaTeX/Paragraph-Spacing-and-Indentation/Code3.tex

100644100755
File mode changed.

2013/Meetup/R and Python Meetups, Philippines/Source.pdf

100644100755
File mode changed.

2013/Python/Code1.py

100644100755
File mode changed.

2013/Python/Download and Installation/Source.pdf

100644100755
File mode changed.

2013/R/Basic Mathematical Functions/Source.pdf

100644100755
File mode changed.

2013/R/Data-Class-Conversion/Code1.R

100644100755
File mode changed.

2013/R/Data-Class-Conversion/Code2.R

100644100755
File mode changed.

2013/R/Data-Class-Conversion/Code3.R

100644100755
File mode changed.

2013/R/Data-Class-Conversion/Code4.R

100644100755
File mode changed.

2013/R/Data-Class-Conversion/Code5.R

100644100755
File mode changed.

2013/R/Data-Class-Conversion/Source.pdf

100644100755
File mode changed.

2013/R/Download and Install in Ubuntu/Source.pdf

100644100755
File mode changed.

2013/R/Download and Install in Windows/Source.pdf

100644100755
File mode changed.

2013/R/Explore-ARIMA-2-2-2-subclass-family-on-Shiny/README.md

100644100755
File mode changed.

2013/R/Explore-ARIMA-2-2-2-subclass-family-on-Shiny/server.R

100644100755
File mode changed.

2013/R/Explore-ARIMA-2-2-2-subclass-family-on-Shiny/ui.R

100644100755
File mode changed.

2013/R/How to Enter Your Data/Code1.R

100644100755
File mode changed.

2013/R/How to Enter Your Data/Code2.R

100644100755
File mode changed.

2013/R/How to Enter Your Data/Code3.R

100644100755
File mode changed.

2013/R/How to Enter Your Data/Code4.R

100644100755
File mode changed.

2013/R/How to Enter Your Data/Code5.R

100644100755
File mode changed.

2013/R/How to Enter Your Data/Code6.R

100644100755
File mode changed.

2013/R/How to Enter Your Data/Data.dat

100644100755
File mode changed.

2013/R/How to Enter Your Data/Source.pdf

100644100755
File mode changed.

2013/R/Import-Data/Code1.R

100644100755
File mode changed.

2013/R/Import-Data/Code2.R

100644100755
File mode changed.

2013/R/Import-Data/Code3.R

100644100755
File mode changed.

2013/R/Import-Data/Code4.R

100644100755
File mode changed.

2013/R/Import-Data/Code5.R

100644100755
File mode changed.

2013/R/Import-Data/Source.pdf

100644100755
File mode changed.

2013/R/Inputting-Data-in-Matrix-Format/Code1.R

100644100755
File mode changed.

2013/R/Inputting-Data-in-Matrix-Format/Code2.R

100644100755
File mode changed.

2013/R/Inputting-Data-in-Matrix-Format/Code3.R

100644100755
File mode changed.

2013/R/Inputting-Data-in-Matrix-Format/Code4.R

100644100755
File mode changed.

2013/R/Inputting-Data-in-Matrix-Format/Source.pdf

100644100755
File mode changed.

2013/R/Installing-Loading-and-Detaching-Packages/Code1.R

100644100755
File mode changed.

2013/R/Installing-Loading-and-Detaching-Packages/Code2.R

100644100755
File mode changed.

2013/R/Installing-Loading-and-Detaching-Packages/Code3.R

100644100755
File mode changed.

2013/R/Installing-Loading-and-Detaching-Packages/Code4.R

100644100755
File mode changed.

2013/R/Installing-Loading-and-Detaching-Packages/Source.pdf

100644100755
File mode changed.

2013/R/Interval-Estimation-of-the-Population-Mean/Code1.R

100644100755
File mode changed.

2013/R/Interval-Estimation-of-the-Population-Mean/Code2.R

100644100755
File mode changed.

2013/R/Interval-Estimation-of-the-Population-Mean/Code3.R

100644100755
File mode changed.

2013/R/Interval-Estimation-of-the-Population-Mean/Code4.R

100644100755
File mode changed.

2013/R/Interval-Estimation-of-the-Population-Mean/Source.pdf

100644100755
File mode changed.

2013/R/Mapping-Philippine-Earthquakes-October-2013/Code1.r

100644100755
File mode changed.

2013/R/Mapping-Typhoon-Labuyo-Utor-Track/Code1.r

100644100755
File mode changed.

2013/R/Matrix-Operations/Code1.R

100644100755
File mode changed.

2013/R/Matrix-Operations/Code2.R

100644100755
File mode changed.

2013/R/Matrix-Operations/Code3.R

100644100755
File mode changed.

2013/R/Matrix-Operations/Code4.R

100644100755
File mode changed.

2013/R/Matrix-Operations/Code5.R

100644100755
File mode changed.

2013/R/Matrix-Operations/Code6.R

100644100755
File mode changed.

2013/R/Matrix-Operations/Source.pdf

100644100755
File mode changed.

2013/R/Mean-and-Median/Code1.r

100644100755
File mode changed.

2013/R/Mean-and-Median/Source.pdf

100644100755
File mode changed.

2013/R/Measure-of-Relative-Variability/Code1.R

100644100755
File mode changed.

2013/R/Measure-of-Relative-Variability/Code2.R

100644100755
File mode changed.

2013/R/Measure-of-Relative-Variability/Code3.R

100644100755
File mode changed.

2013/R/Measure-of-Relative-Variability/Source.pdf

100644100755
File mode changed.

2013/R/Measures-of-Absolute-Variability/Code1.R

100644100755
File mode changed.

2013/R/Measures-of-Absolute-Variability/Code2.R

100644100755
File mode changed.

2013/R/Measures-of-Absolute-Variability/Code3.R

100644100755
File mode changed.

2013/R/Measures-of-Absolute-Variability/Code4.R

100644100755
File mode changed.

2013/R/Measures-of-Absolute-Variability/Code5.R

100644100755
File mode changed.

2013/R/Measures-of-Absolute-Variability/Code6.R

100644100755
File mode changed.

2013/R/Measures-of-Absolute-Variability/Code7.R

100644100755
File mode changed.

2013/R/Measures-of-Absolute-Variability/Source.pdf

100644100755
File mode changed.

2013/R/Measures-of-Skewness-and-Kurtosis/Code1.R

100644100755
File mode changed.

2013/R/Measures-of-Skewness-and-Kurtosis/Code2.R

100644100755
File mode changed.

2013/R/Measures-of-Skewness-and-Kurtosis/Code3.R

100644100755
File mode changed.

2013/R/Measures-of-Skewness-and-Kurtosis/Source.pdf

100644100755
File mode changed.

2013/R/Quartiles-Deciles-and-Percentiles/Code1.R

100644100755
File mode changed.

2013/R/Quartiles-Deciles-and-Percentiles/Code2.R

100644100755
File mode changed.

2013/R/Quartiles-Deciles-and-Percentiles/Code3.R

100644100755
File mode changed.

2013/R/Quartiles-Deciles-and-Percentiles/Code4.R

100644100755
File mode changed.

2013/R/Quartiles-Deciles-and-Percentiles/Source.pdf

100644100755
File mode changed.

2013/R/R-Mapping-Super-Typhoon-Yolanda-Haiyan-Track/TyDatYolanda2013.csv

100644100755
File mode changed.

2013/R/R-Mapping-Super-Typhoon-Yolanda-Haiyan-Track/Yolanda.R

100644100755
File mode changed.

2014/LaTeX/How-to-install-TeX-Live---qtree-package-in-Ubuntu-12.10/Code1.tex

100644100755
File mode changed.

2014/Python/Is-Python-really-faster-than-R/Code1.R

100644100755
File mode changed.

2014/Python/Is-Python-really-faster-than-R/Code1.py

100644100755
File mode changed.

2014/Python/Is-Python-really-faster-than-R/Code2.R

100644100755
File mode changed.

2014/Python/Is-Python-really-faster-than-R/Code2.py

100644100755
File mode changed.

2014/Python/Is-Python-really-faster-than-R/Code3.R

100644100755
File mode changed.

2014/Python/Is-Python-really-faster-than-R/Code3.py

100644100755
File mode changed.

2014/Python/Is-Python-really-faster-than-R/Code4.R

100644100755
File mode changed.

2014/Python/Is-Python-really-faster-than-R/Code4.py

100644100755
File mode changed.

2014/Python/Is-Python-really-faster-than-R/Code5.R

100644100755
File mode changed.

2014/Python/Is-Python-really-faster-than-R/Code5.py

100644100755
File mode changed.

2014/Python/Is-Python-really-faster-than-R/Code6.R

100644100755
File mode changed.

2014/Python/Is-Python-really-faster-than-R/Code7.R

100644100755
File mode changed.

2014/Python/Numerical-Descriptions-of-the-Data/Code1.py

100644100755
File mode changed.

2014/Python/Numerical-Descriptions-of-the-Data/Code2.py

100644100755
File mode changed.

2014/Python/Numerical-Descriptions-of-the-Data/Code3.py

100644100755
File mode changed.

2014/Python/Numerical-Descriptions-of-the-Data/Code4.py

100644100755
File mode changed.

2014/Python/Numerical-Descriptions-of-the-Data/Code5.py

100644100755
File mode changed.

2014/Python/Numerical-Descriptions-of-the-Data/Code6.py

100644100755
File mode changed.

2014/Python/Numerical-Descriptions-of-the-Data/Code7.py

100644100755
File mode changed.

2014/Python/Numerical-Descriptions-of-the-Data/Code8.py

100644100755
File mode changed.

2014/Python/Numerical-Descriptions-of-the-Data/data.csv

100644100755
File mode changed.

2014/R/Animating-2D-and-3D-plots/Code1.R

100644100755
File mode changed.

2014/R/Animating-2D-and-3D-plots/Code2.R

100644100755
File mode changed.

2014/R/Animating-2D-and-3D-plots/Code3.R

100644100755
File mode changed.

2014/R/Fun-with-surf3D-function/Code1.R

100644100755
File mode changed.

2014/R/Fun-with-surf3D-function/Code1.nb

100644100755
File mode changed.

2014/R/Fun-with-surf3D-function/Code2.R

100644100755
File mode changed.

2014/R/Fun-with-surf3D-function/Code3.R

100644100755
File mode changed.

2014/R/Image Analysis using EBImage/Image1.png

100644100755
File mode changed.

2014/R/Image Analysis using EBImage/peppersalt.jpg

100644100755
File mode changed.

2014/R/Text-Mining-on-Twitter-PrayForMH370-Malaysia-Airlines/Code1.R

100644100755
File mode changed.

2014/R/Text-Mining-on-Twitter-PrayForMH370-Malaysia-Airlines/Code2.R

100644100755
File mode changed.

2014/R/Text-Mining-on-Twitter-PrayForMH370-Malaysia-Airlines/Code3.R

100644100755
File mode changed.

2014/R/Text-Mining-on-Twitter-PrayForMH370-Malaysia-Airlines/Code4.R

100644100755
File mode changed.

2014/R/Text-Mining-on-Twitter-PrayForMH370-Malaysia-Airlines/Code5.R

100644100755
File mode changed.

2014/R/Text-Mining-on-Twitter-PrayForMH370-Malaysia-Airlines/Code6.R

100644100755
File mode changed.

2014/R/Text-Mining-on-Twitter-PrayForMH370-Malaysia-Airlines/Source.pdf

100644100755
File mode changed.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
library(Rfacebook)
2+
library(Rook)
3+
library(RCurl)
4+
token <- "CAAERSN80vSQBAMaWxuitvuUG5tmE3PYprz4f00wV3wGHuQRqOjO8y9HUsLNtlEJAGpcmnUjDFdnAXWwV7pVGbONIZBAodfOGgvDZCBerLVt7z6EYlFF4ged3L0Qlt9LWjoyUx75B2AJZCWCN6cG2IEfo3tPUZAWaWPlK2ZAiyZAiV0N7gwvXZCwFGK0ZB9qCvYw41RnZCzZB1FgR0P940lc0T2OmyToqQL2ycZD"
5+
fb_oauth <- fbOAuth(app_id = "300479656803620",app_secret = "ee1c3671c683b34ddac03261c4bb662f")
6+
save(fb_oauth, file="fb_oauth")
7+
me <- getUsers("me",token=fbauth)
8+
a <- getFriends(fbauth, simplify = FALSE)
9+
a
10+
head(a)
11+
a$id
12+
13+
14+
15+
#####
16+
# Activate jpeg package
17+
library(jpeg)
18+
library(RCurl)
19+
# Read jpeg image
20+
URL <- "https://raw.githubusercontent.com/alstat/Analysis-with-Programming/master/2014/R/Image%20Analysis%20using%20EBImage/peppersalt.jpg"
21+
Img <- getURL(URL)
22+
Image <- download.file(URL, destfile = "Img.png", method = "curl")
23+
dm <- dim(Image)
24+
dm
25+
# Assign array values to data frame rgbIMG
26+
rgbIMG <- data.frame(
27+
x=rep(1:dm[2], each=dm[1]),
28+
y=rep(dm[1]:1, dm[2]),
29+
r.value=as.vector(rIMG[,,1]),
30+
g.value=as.vector(rIMG[,,2]),
31+
b.value=as.vector(rIMG[,,3]))
32+
33+
# Plot
34+
plot(y ~ x, data = rgbIMG, main = expression(
35+
bold("University of the Philippines")),
36+
col = rgb(rgbIMG[c("r.value", "g.value", "b.value")]),
37+
asp = 1, pch = ".", xlab = "x-axis", ylab = "y-axis")
38+
39+
kColors <- 5
40+
41+
kMeans <- kmeans(rgbIMG[, c("r.value", "g.value", "b.value")],
42+
centers = kColors)
43+
44+
clusterColour <- rgb(kMeans$centers[kMeans$cluster,])
45+
46+
plot(y ~ x, data = rgbIMG, main = expression(
47+
bold("University of the Philippines")),
48+
col = clusterColour, asp = 1, pch = ".", ylab = "",
49+
xlab = "k-Means Cluster Analysis of 5 Colours")

README.md

100644100755
File mode changed.

0 commit comments

Comments
 (0)