21.4.1/R/トレーニングと実践
1080 ワード
Today
講義
R計画、統計27強
学習内容
27. R Markdown, Matrix
---
title: "matrix practice"
author: "pjk"
date: '2021 4 2 '
output: html_document
---
Now we are going to practice matix functions!!!
```{r}
A = matrix(c(1,-1,2,0,3,4), nrow = 2, byrow = FALSE)
A
B = array(1:3, c(2,3))
B
is.matrix(A)
is.matrix(B)
A + B
A - B
B = t(B) # transpose
# prove of (A^T)T = A
A%*%B
{r cars}
summary(cars)
## Including Plots
You can also embed plots, for example:
{r pressure, echo=FALSE}
plot(pressure)
Note that the `echo = FALSE` parameter was added to the code chunk to prevent printing of the R code that generated the plot.
Result
Tomorrow
---
title: "matrix practice"
author: "pjk"
date: '2021 4 2 '
output: html_document
---
Now we are going to practice matix functions!!!
```{r}
A = matrix(c(1,-1,2,0,3,4), nrow = 2, byrow = FALSE)
A
B = array(1:3, c(2,3))
B
is.matrix(A)
is.matrix(B)
A + B
A - B
B = t(B) # transpose
# prove of (A^T)T = A
A%*%B
{r cars}
summary(cars)
## Including Plots
You can also embed plots, for example:
{r pressure, echo=FALSE}
plot(pressure)
Note that the `echo = FALSE` parameter was added to the code chunk to prevent printing of the R code that generated the plot.
Tomorrow
Summary
Reference
この問題について(21.4.1/R/トレーニングと実践), 我々は、より多くの情報をここで見つけました https://velog.io/@actpjk/21.4.1-R-강의-수강-및-실습テキストは自由に共有またはコピーできます。ただし、このドキュメントのURLは参考URLとして残しておいてください。
Collection and Share based on the CC Protocol