Error in FUN(newX[, i], ...) : invalid 'type' (character) of argument

Good Night!

I was trying this code, and i cant't find the error... Could you help me?

##b) Evolução do Preço de 01/2010 até 04/2020

Frango.resfr.ts<-ts(Valor,start=c(2010,1),freq=12)
Frango.resfr.ts

class(Frango.resfr.ts)

plot(Frango.resfr.ts,main="Evolução dos Preços",
ylab="Preços(R$)",xlab="Anos")

##c) Série anual e Plot Anual entre 2010 e 2019

Frango.Anual.Ts<-aggregate(Frango.resfr.ts)/12

Frango.Anual.Ts<-aggregate(Frango.resfr.ts)/12
Error in FUN(newX[, i], ...) : invalid 'type' (character) of argument


I exported my data from Excel... but is a simple archive...

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.