In R :
1. Function for reading binary data:
e.g.,
zz = file("D:/Test01.raw", "rb") # Readin binary data
N = 2064384/2; # Numbers of data
nb = 128; # image size = nb x nb
k = 40; # 40th
Img = readBin(zz, "integer", n=N,size=2) # using 2 bytes integer read data
ZZ = matrix(Img[(1+(k-1)*nb*nb):((k)*nb*nb)],nb,nb); # assign 40th image to ZZ
Co = rgb(0:255, 0:255, 0:255, max = 255); #Create gray map
image(1:nb, 1:nb,ZZ,col = Co) # display 40th image
2. Function for data mining package:
RWeka : Collected many mining tools like those in http://www.cs.waikato.ac.nz/ml/weka/.
http://cran.cs.pu.edu.tw/src/contrib/Descriptions/RWeka.html
3. Function for Parallel Virtual Machine (PVM):
rpvm : http://cran.cs.pu.edu.tw/src/contrib/Descriptions/rpvm.html
※ 引述《mangogogo (mangogo)》之銘言:
: 我之前就一直有一個想法就是
: 大家可以一起分享使用過不錯的code
: 降大家也不用再大費周章花同樣的時間找
: 所以版主置個底吧
: 大家要分享就推文
: 有需要再來推文找找看
: 說不定就有自己要的
: 當然這需要大家的共享~~
: ps.
: R code package 可以去http://www.r-project.org/的Search 中有一個google bar
: 打你要的關鍵字 即可得到介紹code的pdf
: 如果是你要的 去使用R下載 並安裝即可
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 61.230.209.26