title: “Homework”
date: “r Sys.Date()”
output:
word_document: default
pdf_document: default
html_document: default
knitr::opts_chunk$set(echo = TRUE,warning = FALSE,message = FALSE)
Part A (1 mark)
Read the dataset salaries.txt into a dataframe df.
Hint: it may be necessary to carefully inspect the first few lines of the file in order to determine
how to read in the data correctly
df <- read.table("salaries.txt",sep = ";",header = TRUE)
head(df)
这篇作业涉及使用Python处理数据集salaries.txt,包括读取数据、计算中位数、绘制图表、分析异常值、创建子数据框并进行t检验。任务包括计算各城市平均薪资、检查数据分布是否符合正态分布,并实现两样本t检验函数mytest。
订阅专栏 解锁全文

783

被折叠的 条评论
为什么被折叠?



