EssayGhost Assignment代写,Essay代写,网课代修,Quiz代考

EssayGhost-Essay代写,作业代写,网课代修代上,cs代写代考

一站式网课代修,论文代写

高质量的Assignment代写、Paper代写、Report代写服务

EG1hao
网课代修代上,cs代写代考
R语言代写
您的位置: 主页 > 编程案例 > R语言代写 >
R代写/R语言代写: R语言作图训练 -CS作业代写, R代写, R语言作业代写
发布时间:2021-08-03 23:29:52浏览次数:
R代写/R语言代写: R语言作图训练R代写/R语言代写: 这是一个典型的利用R语言自带lib进行R语言作图训练的homeworkHomework 6: Data frames and ggplot2 Submit your homework to blackboard by Thursday 6:30 pm to be eligible for the extra credit. Your homework file should be titled lastname_firstname_hw6.R Data frames. Use the diamonds data frame from the ggplot2 library to help you write the following functions.1. Write a function that given a data frame extracts the column names and prints the names one column name per line to the console.2. Write a function that given a data frame returns the type of each column (numeric, factor, logical, etc.) and prints the type to the console.3. Write a function that given a data frame will loop through each numeric column and print the name and mean of that column.4. Write a function that given a data frame will loop through each factor column and prints a frequency table for that column (Hint: look at the table() function).5. Write a function that given a data frame will loop through each column and print the column name, the most common element and the number of times that element occurs. Note: If there are multiple elements that appear the same number of times only return one of them. ggplot2 Recreate the following plots as best you can using ggplot2 and the diamonds data set. Using: set.seed(123) d - diamonds[sample(nrow(diamonds),2000),] 6. 7. 8. 9. 10. Extra Credit :