生物统计数据集 R 编码分析和绘图
生物统计学,用于对给定文件 data.csv 中的医疗数据应用 R 编码,该文件是患者人口统计数据集,包含有关来自各种祖先谱系的个体的标准信息。文章来源:https://www.toymoban.com/news/detail-618038.html
数据集特征解释
文章来源地址https://www.toymoban.com/news/detail-618038.html
脚本
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
到了这里,关于第17节 R语言分析:生物统计数据集 R 编码分析和绘图的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!