鈻讹笍 Tematyka
- Wektory (vector)
- Funkcja rep()
- Sampling - pobieranie pr贸bek
- Maskowanie dla wektor贸w
- Indeksy dla wektor贸w
- Typ czynnikowy (factor)
- Macierze (matrix)
- Maskowanie dla macierzy i ramek danych
- Indeksy dla macierzy i ramek danych
- Obliczenia macierzach
- Przyk艂ady
- Tablice (array)
- Ramki danych (data.frame)
- Funkcja subset
- Edytowanie danych
- Listy (list)
馃摌 Wektory
Funkcja rep()
## uruchamianie serwera httpd dla pomocy ... wykonano
## [1] 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
## [38] 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
## [75] 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
## [1] 1 2 3 1 2 3 1 2 3
## [1] "pies" "pies"
## [1] 1 1 1 2 2 2 3 3 3
## [1] 9 8 7 9 8 7
## [1] 2 2 2 1 1 1
## [1] 9 8 7 9 8 7 2 2 2 1 1 1
## [1] 9 8 7 9 8 7 2 2 2 1 1 1
Sampling - pobieranie pr贸bek
## [1] 3 6 4 6 7 3 3 3 4 7
# sample(1:7,10)
# Wykonuj膮c kod pojawi si臋 b艂膮d, poniewa偶 zbi贸r, z kt贸rego pobieramy liczby jest za ma艂y.
# Wektor s2 b臋dzie pobiera艂 5 liczb z wektora liczb pierwszych z przedzia艂u od 1 do 20.
s2<-sample(c(2,3,5,7,11,13,17,19),5)
s2
## [1] 13 5 3 19 11
## [1] 1 2 4 1 1 1 1 1 4 1 1 4 1 1 3
Maskowanie dla wektor贸w
## [1] 19 23 27 15 43
## [1] TRUE FALSE FALSE TRUE TRUE
## [1] 19 15 43
Indeksy dla wektor贸w
## [1] 23
## [1] 23 27 15 43
## [1] 19 43
## [1] 43
## [1] 19 43
## [1] 19 27 15 43
## [1] 23 15 43
## [1] 15 43
## [1] 0 0 0 -1 0
## [1] 19 23 27 15 43
## [1] FALSE TRUE TRUE FALSE TRUE
## [1] 23 27 43
馃摌 Typ czynnikowy (factor)
## [1] "character"
## [1] pop rock rap rap
## Levels: pop rap rock
## [1] <NA> rock rap rap
## Levels: rap rock
## [1] 1 gatunek 3 gatunek 2 gatunek 2 gatunek
## Levels: 1 gatunek 2 gatunek 3 gatunek
## [1] 1 2 1 3 1 2
## Levels: 1 2 3 4
## [1] nie podoba mi si臋 艣rednie nie podoba mi si臋 okej
## [5] nie podoba mi si臋 艣rednie
## Levels: nie podoba mi si臋 艣rednie okej super
## nie podoba mi si臋 艣rednie okej super
## 3 2 1 0
## [1] nie podoba mi si臋 艣rednie nie podoba mi si臋 okej
## [5] nie podoba mi si臋 super
## Levels: nie podoba mi si臋 艣rednie okej super
## nie podoba mi si臋 艣rednie okej super
## 3 1 1 1
## [1] 1 2 1 3 1 4
馃摌 Macierze (matrix)
## [1] 1 2 3 4 5
## [1] 5 4 3 2 1
## [1] 1 2 34 5 0
m1=cbind(a,c,b)
m2=rbind(c,b,a)
m3=cbind(m1,c)
# cbind(m1,m2)
# Niewykonalne ze wzgl臋du na r贸偶ne wymiary obiekt贸w.
?matrix
m4=matrix(0,ncol=4,nrow=3)
m4
## [,1] [,2] [,3] [,4]
## [1,] 0 0 0 0
## [2,] 0 0 0 0
## [3,] 0 0 0 0
## [,1] [,2] [,3] [,4]
## [1,] 1 4 7 10
## [2,] 2 5 8 11
## [3,] 3 6 9 12
## [,1] [,2] [,3] [,4]
## [1,] 1 2 3 4
## [2,] 5 6 7 8
## [3,] 9 10 11 12
## [,1] [,2] [,3] [,4]
## [1,] 1 0 0 0
## [2,] 0 1 0 0
## [3,] 0 0 1 0
## [4,] 0 0 0 1
## [,1] [,2] [,3] [,4]
## [1,] 4 0 0 0
## [2,] 0 3 0 0
## [3,] 0 0 2 0
## [4,] 0 0 0 3
Indeksy dla macierzy i ramek danych
## [1] 6
## [1] 4 5 6
## [1] 1 4 7 10
## [,1] [,2]
## [1,] 1 10
## [2,] 2 11
## [,1] [,2] [,3]
## [1,] 1 4 10
## [2,] 2 5 11
## [3,] 3 6 12
## [,1] [,2] [,3] [,4]
## [1,] 1 4 7 10
## [2,] 2 5 8 11
## [3,] 3 6 9 12
## [,1] [,2] [,3] [,4]
## [1,] 1 4 7 10
## [2,] 2 5 8 0
## [3,] 3 6 9 12
## [,1] [,2] [,3] [,4]
## [1,] FALSE FALSE TRUE TRUE
## [2,] FALSE FALSE TRUE FALSE
## [3,] FALSE FALSE TRUE TRUE
## [1] 7 8 9 10 12
## [,1] [,2] [,3] [,4]
## [1,] 1 4 -1 -1
## [2,] 2 5 -1 0
## [3,] 3 6 -1 -1
Obliczenia na macierzach
## [1] 12
## [1] 3
## [1] 4
## [,1] [,2]
## [1,] 1 3
## [2,] 2 4
## [,1] [,2]
## [1,] 4 2
## [2,] 3 1
## [,1] [,2]
## [1,] 4 6
## [2,] 6 4
## [,1] [,2]
## [1,] 13 5
## [2,] 20 8
## [1] -2
## [,1] [,2]
## [1,] 1 2
## [2,] 3 4
## [,1] [,2]
## [1,] -2 1.5
## [2,] 1 -0.5
## [1] 10
## [1] 2.5
## [1] 4 6
## [1] 3 7
## [1] 2 3
馃摌 Tablice (array)
## , , 1
##
## [,1] [,2]
## [1,] 76 61
## [2,] 30 83
## [3,] 54 88
##
## , , 2
##
## [,1] [,2]
## [1,] 57 77
## [2,] 69 16
## [3,] 41 29
##
## , , 3
##
## [,1] [,2]
## [1,] 77 13
## [2,] 94 67
## [3,] 97 59
## [,1] [,2]
## [1,] 49 100
## [2,] 63 96
## [3,] 83 86
## [1] 13
## [,1] [,2]
## [1,] 77 13
## [2,] 94 67
## [3,] 97 59
## [,1] [,2]
## [1,] 57 77
## [2,] 69 16
## [1] 3 2 3
## [1] 2
## [1] 2
## [,1] [,2] [,3] [,4] [,5] [,6]
## [1,] 76 61 57 77 77 13
## [2,] 30 83 69 16 94 67
## [3,] 54 88 41 29 97 59
## , , 1
##
## [,1] [,2]
## [1,] 84 88
## [2,] 15 29
## [3,] 89 91
##
## , , 2
##
## [,1] [,2]
## [1,] 73 12
## [2,] 63 84
## [3,] 52 80
##
## , , 3
##
## [,1] [,2]
## [1,] 66 26
## [2,] 44 75
## [3,] 62 98
## [1] 22.28477 32.79778
apply(t,3,sd)[2] #3 - oznacza warstwy, co oznacza, 偶e obliczane s膮 odchylenia standardowe dla warstw. [2] pozwala na wybranie 2 elementu z uzyskanego wektora, czyli odchylenia standardowego dla element贸w z 2-giej warstwy.
## [1] 26.53049
馃摌 Ramki danych (data.frame)
# Ramka posiada dane o pracownikach: imi臋, wiek, fakt czy kto艣 z艂o偶y艂 wypowiedzenie, sta偶 pracy (w latach).
ramka=data.frame(c("Ola","Kamil","Maciek","Asia"),c(21,32,38,40),c(T,F,F,F),seq(2,12,3))
ramka
## c..Ola....Kamil....Maciek....Asia.. c.21..32..38..40. c.T..F..F..F.
## 1 Ola 21 TRUE
## 2 Kamil 32 FALSE
## 3 Maciek 38 FALSE
## 4 Asia 40 FALSE
## seq.2..12..3.
## 1 2
## 2 5
## 3 8
## 4 11
## [1] "c..Ola....Kamil....Maciek....Asia.." "c.21..32..38..40."
## [3] "c.T..F..F..F." "seq.2..12..3."
## [1] "c..Ola....Kamil....Maciek....Asia.." "c.21..32..38..40."
## [3] "c.T..F..F..F." "seq.2..12..3."
## imi臋 wiek wypowiedzenie sta偶 pracy
## 1 Ola 21 TRUE 2
## 2 Kamil 32 FALSE 5
## 3 Maciek 38 FALSE 8
## 4 Asia 40 FALSE 11
## [1] "1" "2" "3" "4"
## [1] "Obserwacja"
## imi臋 wiek wypowiedzenie sta偶 pracy
## Obserwacja 1 Ola 21 TRUE 2
## Obserwacja 2 Kamil 32 FALSE 5
## Obserwacja 3 Maciek 38 FALSE 8
## Obserwacja 4 Asia 40 FALSE 11
## imi臋 wiek wypowiedzenie sta偶 pracy
## obserwacja 1 Ola 21 TRUE 2
## obserwacja 2 Kamil 32 FALSE 5
## obserwacja 3 Maciek 38 FALSE 8
## obserwacja 4 Asia 40 FALSE 11
## imi臋 wiek wypowiedzenie sta偶 pracy
## obs1 Ola 21 TRUE 2
## obs2 Kamil 32 FALSE 5
## obs3 Maciek 38 FALSE 8
## obs4 Asia 40 FALSE 11
## [[1]]
## [1] "obs1" "obs2" "obs3" "obs4"
##
## [[2]]
## [1] "imi臋" "wiek" "wypowiedzenie" "sta偶 pracy"
## wypowiedzenie
## obs1 TRUE
## obs2 FALSE
## obs3 FALSE
## obs4 FALSE
## [1] TRUE FALSE FALSE FALSE
## [1] 6.5
mean(ramka[4]) #B艂膮d, poniewa偶 z takiego typu nie mo偶na policzy膰 艣redniej - natomiast z wektor贸w mo偶na .
## Warning in mean.default(ramka[4]): argument nie jest warto艣ci膮 liczbow膮 ani
## logiczn膮: zwracanie warto艣ci NA
## [1] NA
## [1] FALSE
## wiek
## obs1 21
## obs2 32
## obs3 38
## obs4 40
## [1] 21 32 38 40
## [1] 21 32 38 40
## [1] 32.75
## [1] 5
## imi臋 wiek wypowiedzenie sta偶 pracy
## obs1 Ola 21 TRUE 2
## obs2 Kamil 32 FALSE 5
## obs3 Maciek 38 FALSE 8
## obs4 Asia 40 FALSE 11
## [1] "sta偶 pracy"
## imi臋 wiek wypowiedzenie sta偶
## obs1 Ola 21 TRUE 2
## obs2 Kamil 32 FALSE 5
## obs3 Maciek 38 FALSE 8
## obs4 Asia 40 FALSE 11
## imi臋 wiek wypowiedzenie sta偶
## obs2 Kamil 32 FALSE 5
## [1] TRUE FALSE FALSE FALSE
## [1] TRUE FALSE FALSE FALSE
## imi臋 wiek wypowiedzenie sta偶
## obs1 Ola 21 TRUE 2
## imi臋 wiek wypowiedzenie sta偶
## obs1 Ola 21 TRUE 2
## imi臋 wiek wypowiedzenie sta偶
## "character" "numeric" "logical" "numeric"
## $imi臋
## [1] "character"
##
## $wiek
## [1] "numeric"
##
## $wypowiedzenie
## [1] "logical"
##
## $sta偶
## [1] "numeric"
## Sepal.Length Sepal.Width Petal.Length Petal.Width Species
## 1 5.1 3.5 1.4 0.2 setosa
## 2 4.9 3.0 1.4 0.2 setosa
## 3 4.7 3.2 1.3 0.2 setosa
## 4 4.6 3.1 1.5 0.2 setosa
## 5 5.0 3.6 1.4 0.2 setosa
## 6 5.4 3.9 1.7 0.4 setosa
## 7 4.6 3.4 1.4 0.3 setosa
## 8 5.0 3.4 1.5 0.2 setosa
## 9 4.4 2.9 1.4 0.2 setosa
## 10 4.9 3.1 1.5 0.1 setosa
## 11 5.4 3.7 1.5 0.2 setosa
## 12 4.8 3.4 1.6 0.2 setosa
## 13 4.8 3.0 1.4 0.1 setosa
## 14 4.3 3.0 1.1 0.1 setosa
## 15 5.8 4.0 1.2 0.2 setosa
## 16 5.7 4.4 1.5 0.4 setosa
## 17 5.4 3.9 1.3 0.4 setosa
## 18 5.1 3.5 1.4 0.3 setosa
## 19 5.7 3.8 1.7 0.3 setosa
## 20 5.1 3.8 1.5 0.3 setosa
## 21 5.4 3.4 1.7 0.2 setosa
## 22 5.1 3.7 1.5 0.4 setosa
## 23 4.6 3.6 1.0 0.2 setosa
## 24 5.1 3.3 1.7 0.5 setosa
## 25 4.8 3.4 1.9 0.2 setosa
## 26 5.0 3.0 1.6 0.2 setosa
## 27 5.0 3.4 1.6 0.4 setosa
## 28 5.2 3.5 1.5 0.2 setosa
## 29 5.2 3.4 1.4 0.2 setosa
## 30 4.7 3.2 1.6 0.2 setosa
## 31 4.8 3.1 1.6 0.2 setosa
## 32 5.4 3.4 1.5 0.4 setosa
## 33 5.2 4.1 1.5 0.1 setosa
## 34 5.5 4.2 1.4 0.2 setosa
## 35 4.9 3.1 1.5 0.2 setosa
## 36 5.0 3.2 1.2 0.2 setosa
## 37 5.5 3.5 1.3 0.2 setosa
## 38 4.9 3.6 1.4 0.1 setosa
## 39 4.4 3.0 1.3 0.2 setosa
## 40 5.1 3.4 1.5 0.2 setosa
## 41 5.0 3.5 1.3 0.3 setosa
## 42 4.5 2.3 1.3 0.3 setosa
## 43 4.4 3.2 1.3 0.2 setosa
## 44 5.0 3.5 1.6 0.6 setosa
## 45 5.1 3.8 1.9 0.4 setosa
## 46 4.8 3.0 1.4 0.3 setosa
## 47 5.1 3.8 1.6 0.2 setosa
## 48 4.6 3.2 1.4 0.2 setosa
## 49 5.3 3.7 1.5 0.2 setosa
## 50 5.0 3.3 1.4 0.2 setosa
## 51 7.0 3.2 4.7 1.4 versicolor
## 52 6.4 3.2 4.5 1.5 versicolor
## 53 6.9 3.1 4.9 1.5 versicolor
## 54 5.5 2.3 4.0 1.3 versicolor
## 55 6.5 2.8 4.6 1.5 versicolor
## 56 5.7 2.8 4.5 1.3 versicolor
## 57 6.3 3.3 4.7 1.6 versicolor
## 58 4.9 2.4 3.3 1.0 versicolor
## 59 6.6 2.9 4.6 1.3 versicolor
## 60 5.2 2.7 3.9 1.4 versicolor
## 61 5.0 2.0 3.5 1.0 versicolor
## 62 5.9 3.0 4.2 1.5 versicolor
## 63 6.0 2.2 4.0 1.0 versicolor
## 64 6.1 2.9 4.7 1.4 versicolor
## 65 5.6 2.9 3.6 1.3 versicolor
## 66 6.7 3.1 4.4 1.4 versicolor
## 67 5.6 3.0 4.5 1.5 versicolor
## 68 5.8 2.7 4.1 1.0 versicolor
## 69 6.2 2.2 4.5 1.5 versicolor
## 70 5.6 2.5 3.9 1.1 versicolor
## 71 5.9 3.2 4.8 1.8 versicolor
## 72 6.1 2.8 4.0 1.3 versicolor
## 73 6.3 2.5 4.9 1.5 versicolor
## 74 6.1 2.8 4.7 1.2 versicolor
## 75 6.4 2.9 4.3 1.3 versicolor
## 76 6.6 3.0 4.4 1.4 versicolor
## 77 6.8 2.8 4.8 1.4 versicolor
## 78 6.7 3.0 5.0 1.7 versicolor
## 79 6.0 2.9 4.5 1.5 versicolor
## 80 5.7 2.6 3.5 1.0 versicolor
## 81 5.5 2.4 3.8 1.1 versicolor
## 82 5.5 2.4 3.7 1.0 versicolor
## 83 5.8 2.7 3.9 1.2 versicolor
## 84 6.0 2.7 5.1 1.6 versicolor
## 85 5.4 3.0 4.5 1.5 versicolor
## 86 6.0 3.4 4.5 1.6 versicolor
## 87 6.7 3.1 4.7 1.5 versicolor
## 88 6.3 2.3 4.4 1.3 versicolor
## 89 5.6 3.0 4.1 1.3 versicolor
## 90 5.5 2.5 4.0 1.3 versicolor
## 91 5.5 2.6 4.4 1.2 versicolor
## 92 6.1 3.0 4.6 1.4 versicolor
## 93 5.8 2.6 4.0 1.2 versicolor
## 94 5.0 2.3 3.3 1.0 versicolor
## 95 5.6 2.7 4.2 1.3 versicolor
## 96 5.7 3.0 4.2 1.2 versicolor
## 97 5.7 2.9 4.2 1.3 versicolor
## 98 6.2 2.9 4.3 1.3 versicolor
## 99 5.1 2.5 3.0 1.1 versicolor
## 100 5.7 2.8 4.1 1.3 versicolor
## 101 6.3 3.3 6.0 2.5 virginica
## 102 5.8 2.7 5.1 1.9 virginica
## 103 7.1 3.0 5.9 2.1 virginica
## 104 6.3 2.9 5.6 1.8 virginica
## 105 6.5 3.0 5.8 2.2 virginica
## 106 7.6 3.0 6.6 2.1 virginica
## 107 4.9 2.5 4.5 1.7 virginica
## 108 7.3 2.9 6.3 1.8 virginica
## 109 6.7 2.5 5.8 1.8 virginica
## 110 7.2 3.6 6.1 2.5 virginica
## 111 6.5 3.2 5.1 2.0 virginica
## 112 6.4 2.7 5.3 1.9 virginica
## 113 6.8 3.0 5.5 2.1 virginica
## 114 5.7 2.5 5.0 2.0 virginica
## 115 5.8 2.8 5.1 2.4 virginica
## 116 6.4 3.2 5.3 2.3 virginica
## 117 6.5 3.0 5.5 1.8 virginica
## 118 7.7 3.8 6.7 2.2 virginica
## 119 7.7 2.6 6.9 2.3 virginica
## 120 6.0 2.2 5.0 1.5 virginica
## 121 6.9 3.2 5.7 2.3 virginica
## 122 5.6 2.8 4.9 2.0 virginica
## 123 7.7 2.8 6.7 2.0 virginica
## 124 6.3 2.7 4.9 1.8 virginica
## 125 6.7 3.3 5.7 2.1 virginica
## 126 7.2 3.2 6.0 1.8 virginica
## 127 6.2 2.8 4.8 1.8 virginica
## 128 6.1 3.0 4.9 1.8 virginica
## 129 6.4 2.8 5.6 2.1 virginica
## 130 7.2 3.0 5.8 1.6 virginica
## 131 7.4 2.8 6.1 1.9 virginica
## 132 7.9 3.8 6.4 2.0 virginica
## 133 6.4 2.8 5.6 2.2 virginica
## 134 6.3 2.8 5.1 1.5 virginica
## 135 6.1 2.6 5.6 1.4 virginica
## 136 7.7 3.0 6.1 2.3 virginica
## 137 6.3 3.4 5.6 2.4 virginica
## 138 6.4 3.1 5.5 1.8 virginica
## 139 6.0 3.0 4.8 1.8 virginica
## 140 6.9 3.1 5.4 2.1 virginica
## 141 6.7 3.1 5.6 2.4 virginica
## 142 6.9 3.1 5.1 2.3 virginica
## 143 5.8 2.7 5.1 1.9 virginica
## 144 6.8 3.2 5.9 2.3 virginica
## 145 6.7 3.3 5.7 2.5 virginica
## 146 6.7 3.0 5.2 2.3 virginica
## 147 6.3 2.5 5.0 1.9 virginica
## 148 6.5 3.0 5.2 2.0 virginica
## 149 6.2 3.4 5.4 2.3 virginica
## 150 5.9 3.0 5.1 1.8 virginica
## Sepal.Length Sepal.Width Petal.Length Petal.Width Species
## 1 5.1 3.5 1.4 0.2 setosa
## 2 4.9 3.0 1.4 0.2 setosa
## 3 4.7 3.2 1.3 0.2 setosa
## 4 4.6 3.1 1.5 0.2 setosa
## 5 5.0 3.6 1.4 0.2 setosa
## 6 5.4 3.9 1.7 0.4 setosa
## Sepal.Length Sepal.Width Petal.Length Petal.Width Species
## 1 5.1 3.5 1.4 0.2 setosa
## 2 4.9 3.0 1.4 0.2 setosa
## Sepal.Length Sepal.Width Petal.Length Petal.Width Species
## 145 6.7 3.3 5.7 2.5 virginica
## 146 6.7 3.0 5.2 2.3 virginica
## 147 6.3 2.5 5.0 1.9 virginica
## 148 6.5 3.0 5.2 2.0 virginica
## 149 6.2 3.4 5.4 2.3 virginica
## 150 5.9 3.0 5.1 1.8 virginica
## [1] 4 4
## [1] setosa setosa setosa setosa setosa setosa
## [7] setosa setosa setosa setosa setosa setosa
## [13] setosa setosa setosa setosa setosa setosa
## [19] setosa setosa setosa setosa setosa setosa
## [25] setosa setosa setosa setosa setosa setosa
## [31] setosa setosa setosa setosa setosa setosa
## [37] setosa setosa setosa setosa setosa setosa
## [43] setosa setosa setosa setosa setosa setosa
## [49] setosa setosa versicolor versicolor versicolor versicolor
## [55] versicolor versicolor versicolor versicolor versicolor versicolor
## [61] versicolor versicolor versicolor versicolor versicolor versicolor
## [67] versicolor versicolor versicolor versicolor versicolor versicolor
## [73] versicolor versicolor versicolor versicolor versicolor versicolor
## [79] versicolor versicolor versicolor versicolor versicolor versicolor
## [85] versicolor versicolor versicolor versicolor versicolor versicolor
## [91] versicolor versicolor versicolor versicolor versicolor versicolor
## [97] versicolor versicolor versicolor versicolor virginica virginica
## [103] virginica virginica virginica virginica virginica virginica
## [109] virginica virginica virginica virginica virginica virginica
## [115] virginica virginica virginica virginica virginica virginica
## [121] virginica virginica virginica virginica virginica virginica
## [127] virginica virginica virginica virginica virginica virginica
## [133] virginica virginica virginica virginica virginica virginica
## [139] virginica virginica virginica virginica virginica virginica
## [145] virginica virginica virginica virginica virginica virginica
## Levels: setosa versicolor virginica
Funkcja subset
## Sepal.Length Sepal.Width Petal.Length Petal.Width Species
## 101 6.3 3.3 6.0 2.5 virginica
## 102 5.8 2.7 5.1 1.9 virginica
## 103 7.1 3.0 5.9 2.1 virginica
## 104 6.3 2.9 5.6 1.8 virginica
## 105 6.5 3.0 5.8 2.2 virginica
## 106 7.6 3.0 6.6 2.1 virginica
## 107 4.9 2.5 4.5 1.7 virginica
## 108 7.3 2.9 6.3 1.8 virginica
## 109 6.7 2.5 5.8 1.8 virginica
## 110 7.2 3.6 6.1 2.5 virginica
## 111 6.5 3.2 5.1 2.0 virginica
## 112 6.4 2.7 5.3 1.9 virginica
## 113 6.8 3.0 5.5 2.1 virginica
## 114 5.7 2.5 5.0 2.0 virginica
## 115 5.8 2.8 5.1 2.4 virginica
## 116 6.4 3.2 5.3 2.3 virginica
## 117 6.5 3.0 5.5 1.8 virginica
## 118 7.7 3.8 6.7 2.2 virginica
## 119 7.7 2.6 6.9 2.3 virginica
## 120 6.0 2.2 5.0 1.5 virginica
## 121 6.9 3.2 5.7 2.3 virginica
## 122 5.6 2.8 4.9 2.0 virginica
## 123 7.7 2.8 6.7 2.0 virginica
## 124 6.3 2.7 4.9 1.8 virginica
## 125 6.7 3.3 5.7 2.1 virginica
## 126 7.2 3.2 6.0 1.8 virginica
## 127 6.2 2.8 4.8 1.8 virginica
## 128 6.1 3.0 4.9 1.8 virginica
## 129 6.4 2.8 5.6 2.1 virginica
## 130 7.2 3.0 5.8 1.6 virginica
## 131 7.4 2.8 6.1 1.9 virginica
## 132 7.9 3.8 6.4 2.0 virginica
## 133 6.4 2.8 5.6 2.2 virginica
## 134 6.3 2.8 5.1 1.5 virginica
## 135 6.1 2.6 5.6 1.4 virginica
## 136 7.7 3.0 6.1 2.3 virginica
## 137 6.3 3.4 5.6 2.4 virginica
## 138 6.4 3.1 5.5 1.8 virginica
## 139 6.0 3.0 4.8 1.8 virginica
## 140 6.9 3.1 5.4 2.1 virginica
## 141 6.7 3.1 5.6 2.4 virginica
## 142 6.9 3.1 5.1 2.3 virginica
## 143 5.8 2.7 5.1 1.9 virginica
## 144 6.8 3.2 5.9 2.3 virginica
## 145 6.7 3.3 5.7 2.5 virginica
## 146 6.7 3.0 5.2 2.3 virginica
## 147 6.3 2.5 5.0 1.9 virginica
## 148 6.5 3.0 5.2 2.0 virginica
## 149 6.2 3.4 5.4 2.3 virginica
## 150 5.9 3.0 5.1 1.8 virginica
Edytowanie danych
## imi臋 wiek wypowiedzenie sta偶
## obs1 Ola 21 TRUE 2
## obs2 Kamil 32 FALSE 5
## obs3 Maciek 38 FALSE 8
## obs4 Asia 40 FALSE 11
##馃摌 Listy (list)
## [[1]]
## [1] "Halina" "Jan"
##
## [[2]]
## [1] "siatk贸wka" "艣piew"
##
## [[3]]
## [1] "k" "m"
##
## [[4]]
## [1] 34 40
## $imi臋
## [1] "Halina" "Jan"
##
## $hobby
## [1] "siatk贸wka" "艣piew"
##
## $p艂e膰
## [1] "k" "m"
##
## $wiek
## [1] 45 30
## [1] "imi臋" "hobby" "p艂e膰" "wiek"
## List of 4
## $ imi臋 : chr [1:2] "Halina" "Jan"
## $ hobby: chr [1:2] "siatk贸wka" "艣piew"
## $ p艂e膰 : chr [1:2] "k" "m"
## $ wiek : num [1:2] 45 30
## [1] 45 30
## $wiek
## [1] 45 30
## [1] 45 30
## [1] 45 30
## [1] "m"
## $imi臋
## [1] "Halina" "Jan"
##
## $hobby
## [1] "czytanie" "艣piew"
##
## $p艂e膰
## [1] "k" "m"
##
## $wiek
## [1] 45 30
## $imi臋
## [1] "Halina" "Jan" "Ania"
##
## $hobby
## [1] "czytanie" "艣piew"
##
## $p艂e膰
## [1] "k" "m"
##
## $wiek
## [1] 45 30
## $imi臋
## [1] "Halina" "Jan" "Ania"
##
## $hobby
## [1] "czytanie" "艣piew"
##
## $p艂e膰
## [1] "k" "m"
##
## $wiek
## [1] 45 30
##
## $konta.w.b
## [1] 1 2
## $imi臋
## [1] "Halina" "Jan" "Ania"
##
## $hobby
## [1] "czytanie" "艣piew"
##
## $p艂e膰
## [1] "k" "m"
##
## $wiek
## [1] 45 30
## [1] "Halina" "Jan"
## $imi臋
## [1] "Halina" "Jan" "Ania"
##
## $hobby
## [1] "czytanie" "艣piew"
##
## $p艂e膰
## [1] "k" "m"
##
## $wiek
## [1] 45 30
## $imi臋
## [1] "Ania" "Halina" "Jan"
## $imi臋
## [1] "Ania" "Halina" "Jan"
##
## $hobby
## [1] "czytanie" "艣piew"
##
## $p艂e膰
## [1] "k" "m"
##
## $wiek
## [1] 30 45
## $imi臋
## [1] "Ania" "Halina" "Jan"
##
## $hobby
## [1] "czytanie" "艣piew"
##
## $p艂e膰
## [1] "k" "m"
##
## $wiek
## [1] 30 45