---
# System prepended metadata

title: 06.09.2022 - Jagatud märkmed - ATDH-2022-2 (HVEE.00.016)
tags: [AT_DH_2022]

---

---
tags:  AT_DH_2022
---

# 06.09.2022 - Jagatud märkmed - ATDH-2022-2 (HVEE.00.016)

Püsilink: https://hackmd.io/@OGZFb2mRSA65ybyn4hSfkQ/BJFwvc4li/edit

## 06.09.2022

![](https://i.imgur.com/ndFNI7T.png)

Pildi jagamiseks paremklõps pildi peal (all paremal nurgas) -> copy image.

Ja CTRL+V (CMD+V) siin tekstikastis. Hackmd laeb faili üles ja siis kuvab lingi markdown formaadis. Joonise järgi saab kirjutada oma nime.


![](https://i.imgur.com/KKPWTr6.png)
Joonis 1. Näitepilt



```
words %>% 
  group_by(filename) %>% 
  count(word,sort=T) %>% 
  mutate(rank=row_number()) %>% 
  filter(rank<11)

```


```
words %>% 
  group_by(filename) %>% 
  count(word,sort=T)  %>% 
  mutate(freq=n/sum(n)) %>% 
  filter(str_detect(word,"[a-zõäöü]linna")) %>%
  ungroup() %>% 
  count(word,sort=T)
```

```
words_capital %>% 
  filter(str_detect(word,"[A-ZÕÄÖÜ]"))
```
 
## Valitud sõnade sagedused eri tekstides
![](https://i.imgur.com/lTcxcN1.png)
Peeter

![](https://i.imgur.com/XjWtFUg.png)
Margus

![](https://i.imgur.com/urjLQce.png)
Karel

![](https://i.imgur.com/7tFXaQr.png)
Arina

![](https://i.imgur.com/K47nPFO.png)
Tambet

![](https://i.imgur.com/HuKCNbW.png)
Marti

![](https://i.imgur.com/8Ih5bbu.png)




## Üks otsing regulaaravaldisega

![](https://i.imgur.com/xh9S4jW.png)
Arina "[0-9]"
![](https://i.imgur.com/5pJ91B5.png)
Arina "^lina"
