原创 R語言筆記二(控制結構)

Control Structures Control structures in R allow you to control the flow of execution of the program, depending on runt

原创 R語言筆記五

Debugging Diagnosing the problem Something’s Wrong! Indications that something’s not right. message: A generic notifi

原创 selenium的安裝及使用介紹

R爬蟲之上市公司公告批量下載 selenium的安裝及使用介紹 http://yphuang.github.io/blog/2016/03/01/Get-Listed-Company-Announcement/

原创 統計學筆記

統計量 r2=t2t2+df t檢驗對H0 的解釋度 T-test T -test Assumptions X and Y should be random samples from two independent populati

原创 Define your own binary operators

Define your own binary operators # The syntax for creating new binary operators in R is unlike anything else in # R, bu

原创 R語言中的數學計算(轉載)

R語言中的數學計算 關於作者: 張丹(Conan), 程序員Java,R,PHP,Javascript weibo:@Conan_Z blog: http://blog.fens.me email: [email protected]

原创 R Programming Assignment 1

Part1 Write a function named ‘pollutantmean’ that calculates the mean of a pollutant (sulfate or nitrate) across a spec

原创 R語言筆記一

常用函數 object.size() ##查詢數據大小 names() ##查詢數據變量名稱 head(x, 10) ,tail(x, 10) ##查詢數據前/後10行 summary() ##對數據集的詳細統計呈現 table(

原创 機器學習筆記

有監督學習與無監督學習 有目標變量的研究,稱爲有監督學習,常用於預測未來。 無目標變量的研究,稱爲無監督學習,常用於描述現在。 根據具體問題和算法不同,常常分爲以下六小類: - 分類 Classification(有監督學習) -

原创 R語言筆記四

str function str: Compacktly display the internal structure of an R object A diagnostic function and an alternative t

原创 R語言筆記六

去除NA值 方案一 ggplot(aes(x=friend_count), data=subset(pf, !is.na(gender)))+ geom_histogram()+ scale_x_conti

原创 R語言筆記三(循環控制)

Looping on the Command Line lapply: Loop over a list and evaluate a function on each element sapply: Same as lapply bu