目前分類:R 程式/ Python (5)

瀏覽方式: 標題列表 簡短摘要

以前在學校對於程式實在沒興趣以至於學得哩哩落落的

現在開始重新學習發現這個Funtion和method的差別的概念實在太重要了

第一至少你得知道語法,不然連程式都寫不出來呢

文章標籤

莎 發表在 痞客邦 留言(0) 人氣()

Windows 安裝

 

安裝Python

文章標籤

莎 發表在 痞客邦 留言(0) 人氣()

Question 1

Suppose I define the following function in R

cube <- function(x, n) {
        x^3
}

What is the result of running

cube(3)

in R after defining this function? Your Answer Score Explanation An error is returned because 'n' is not specified in the call to 'cube'
The number 27 is returned.  Because 'n' is not evaluated, it is not needed even though it is a formal argument. The users is prompted to specify the value of 'n'.
A warning is given with no value returned. 

文章標籤

莎 發表在 痞客邦 留言(0) 人氣()

最近阿莎在學習Johns Hopkins University在Coursera.org 提供的R Programming課程

老師解說的很清楚,但是內容帶的很快, 有些函式完全沒有解說,因為簡單的函式自已搜尋就可以了。 然而阿莎發現台灣的教學或分享的內容都很簡易,花了好多時間在找文章,因此在此分享阿莎筆記,可以節省很多重覆的搜尋時間。

Quiz 的題目會有少許變化,阿莎的題目和答案為下

文章標籤

莎 發表在 痞客邦 留言(0) 人氣()

R Programming  

Week 3 Loop Functions and Debugging 

 

函式(function)

功能

文章標籤

莎 發表在 痞客邦 留言(0) 人氣()