21.4.1/R/トレーニングと実践


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

  • 毎日1時間ぐらいのR課程の訓練と実践
  • Summary

  • keep going!