当前位置:网站首页>R简单统计计算--笔记
R简单统计计算--笔记
2022-08-10 05:30:00 【LIAN_U】
#read csv
specie28=read.csv(file="filename.csv")
#read txt
specie28=read.table("filename.txt", head=TRUE, sep=",")
#one attribute of specie28
height=specie28$HEIGHT
DBH=specie28$DBH
#mean of height 均值
height_m=mean(specie28$HEIGHT)
#maximum of height 最大值
height_max=max(specie28$HEIGHT)
#minimum of height 最小值
height_min=min(specie28$HEIGHT)
#standard deviation 标准差
height_sd=sd(specie28$HEIGHT)
#median 中值
height_median(specie28$HEIGHT)
#variance 方差
height_var=var(specie28$HEIGHT)
#两个变量之间的相关系数
cor(specie28$HEIGHT,log(specie28$HEIGHT))
#两个变量之间的协方差
cov(specie28$HEIGHT,log(specie28$HEIGHT))
边栏推荐
- Introduction to curl command
- pytorch learning
- FPGA工程师面试试题集锦11~20
- Conda creates a virtual environment method and pqi uses a domestic mirror source to install a third-party library method tutorial
- 基于Qiskit——《量子计算编程实战》读书笔记(六)
- 【论文笔记1】小样本分类
- 接口调试还能这么玩?
- Joomla vulnerability reproduced
- 【yolov5训练错误】WARNING: Ignoring corrupted image
- Kubernetes:(十六)Ingress的概念和原理
猜你喜欢

Stacks and Queues | Valid parentheses, delete all adjacent elements in a string, reverse Polish expression evaluation, maximum sliding window, top K high frequency elements | leecode brush questions

Why are negative numbers in binary represented in two's complement form - binary addition and subtraction

CSDN Markdown 之我见代码块 | CSDN编辑器测评

利用PyQt5制作YOLOv5的GUI界面

深度梳理:防止模型过拟合的方法汇总

深度学习中的学习率调整策略(1)

【LeetCode】41. The first missing positive number

【yolov5训练错误】WARNING: Ignoring corrupted image

Become a language that hackers have to learn. Do you think it's okay after reading it?

EasyGBS connects to mysql database and prompts "can't connect to mysql server", how to solve it?
随机推荐
基于Servlet的验证码登陆demo
清览题库--C语言程序设计第五版编程题解析(1)
Shield Alt hotkey in vscode
聊聊 API 管理-开源版 到 SaaS 版
GtkD开发之路
ResNet的基础:残差块的原理
基本比例尺标准分幅编号流程
MySql之json_extract函数处理json字段
FPGA engineer interview questions collection 1~10
【Static proxy】
Concurrency tool class - introduction and use of CountDownLatch, CyclicBarrier, Semaphore, Exchanger
scikit-learn机器学习 读书笔记(二)
Hezhou ESP32C3 +1.8"tft network clock under Arduino framework
Touch chip used in smart touch remote control
Flutter development: error The following assertion was thrown resolving an image codec: Solution for Unable to...
Important transformation and upgrading
Rpc interface stress test
Abstract problem methodology
细数国产接口协作平台的六把武器!
在vscode中屏蔽Alt热键