生物统计数据集 R 编码分析和绘图
生物统计学,用于对给定文件 data.csv 中的医疗数据应用 R 编码,该文件是患者人口统计数据集,包含有关来自各种祖先谱系的个体的标准信息。
数据集特征解释
脚本
output= file("Output.txt") # File name of output log
sink(output, append = TRUE, type = "output") # Writing console output to log file#Load the medical data from the given file data.csv, which is a dataset of a patient
#demographic containing standard information regarding individuals from a variety of
#ancestral lines.
data = read.csv(file= "Data.csv", sep=",", header=TRUE)#Then Perform the following tasks using R:
print("#1. Show the first 10 rows and the last 10 rows.")
print(head(data,10))
print(tail(data,10))cat("\n")
cat("\n")
print("#2. Using Date of Birth attri