You need to save your pollutantmean in your wroking directory. Then use the submit function they give in the homeworks page. Download it, or use the source() function.
Then in the console, use "submit()"... thes functions needs your identification as student... then it prints notes to continue with the process. Good luck. 2015-05-15 12:00 GMT-05:00 Mingwei Li <limingwei19890...@gmail.com>: > Hi all, > Is anyone learned Coursera course named “R Programming” of Johns Hopkins > Roger D. Peng? > I have one question of how to submit my homework. > Following is the request of the question: > pollutantmean <- function(directory, pollutant, id = 1:332) { > ## 'directory' is a character vector of length 1 indicating > ## the location of the CSV files > > ## 'pollutant' is a character vector of length 1 indicating > ## the name of the pollutant for which we will calculate the > ## mean; either "sulfate" or "nitrate". > > ## 'id' is an integer vector indicating the monitor ID numbers > ## to be used > > ## Return the mean of the pollutant across all monitors list > ## in the 'id' vector (ignoring NA values) > ## NOTE: Do not round the result! > } > I have successfully come out the correct results. However, I do not know > how to submit my homework step by step. > I have attached one picture in this email, is anyone can help me out? > Thank you so much! > ______________________________________________ > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. [[alternative HTML version deleted]] ______________________________________________ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.