You are on page 1of 3

Carbono Negro

Neill Kevin Alvardo Vargas

2022-10-04
library(readxl)
Libro1 <- read_excel("C:/Users/Acer/Desktop/Neill/Libro1.xlsx")

## New names:
## • `` -> `...4`
## • `` -> `...6`
## • `` -> `...8`

head(Libro1,100)

## # A tibble: 70 × 8
## `Mes/Año` Zonas `2016` ...4 `2017` ...6 `2018`
...8
## <dttm> <chr> <chr> <chr> <chr> <chr> <chr>
<chr>
## 1 NA <NA> yana shal… yana shal… yana
shal…
## 2 2016-01-01 00:00:00 <NA> 215.41481020… 2379… 212.5… 2342… 211.5…
2313…
## 3 2016-02-01 00:00:00 <NA> 522.33514256… 2573… 515.3… 2532… 517.1…
2538…
## 4 2016-03-01 00:00:00 <NA> 293.95714629… 2305… 290.0… 2268… 293.5…
2263…
## 5 2016-04-01 00:00:00 <NA> 100.58815097… 1043… 99.23… 1026… 99.84…
1031…
## 6 NA Acumulacion 123.64053395… 1557… 121.9… 1532… 125.8…
1538…
## 7 2016-05-01 00:00:00 Ablacion 142.43757368… 1713… 140.5… 1686… 134.8…
1724…
## 8 NA Acumulacion 593.49933873… 6334… 585.5… 6234… 590.0…
6155…
## 9 2016-06-01 00:00:00 Ablacion 169.64367726… 1592… 167.3… 1567… 174.8…
1577…
## 10 NA Acumulacion 179.76814815… 3110… 177.3… 3061… 181.1…
3087…
## # … with 60 more rows

plot(Libro1)
x=rnorm(100,1)
y=rnorm(1000,30)
z=rnorm(100,500)

xyz = data.frame(x,y,z)
class(xyz)

## [1] "data.frame"

conviertiendo a serie de tiempo


mymts = ts(xyz,
frequency = 12,
start= c(1940, 4))

Elementos básico para observar


plot(mymts)
head(mymts)

## x y z
## [1,] 1.3904164 30.69365 499.9664
## [2,] 2.3700254 29.19006 498.9662
## [3,] 0.4915036 30.45920 499.7152
## [4,] 1.3566304 28.50201 502.2671
## [5,] 0.8851113 30.64673 498.4566
## [6,] 0.2812792 31.75070 499.7622

class(mymts)

## [1] "mts" "ts" "matrix"

You might also like