Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Text loop for X-axis in time series. Example 2002-2018 by quarters
#This method provides an useful way to loop a text. For example, you may want to use it as a tipical X-axis for economic analysis. In this code, you can mark the evolution of a certain variable during 2002-2018 by quarters. text=data.frame(1:4) years=c(2002:2018) index_quarters=c(1:4) quarters=c(1:4) for(i in 1:length(years)){ for(j in 1:length(quarters)){ quarters[j]=paste(years[i],"T",index_quarters[j],sep="") } for(k in 1:length(quarters)){ text[k,i]=quarters[k] } } text=as.data.frame(as.vector(as.matrix(text))) names(text)="Years by quarters" text
run
|
edit
|
history
|
help
0
21-09-2020Intpoli
Análise de Variâncias DIC e teste de Tukey 1
Teste de sheffé
23-09-2020IntNewtform
03-08-2020-Integral-Numerica
Prediction
Zerlina L Bi-variate Regression
jcruet_bi variate regression model
peso 16ago
rungeefeito