Posts by cassius • 363 points
6 posts
-
4
votes1
answer1126
viewsQ: Filling out data.frame from another date.frame
I have two data.frames: "a" and "df" a <- data.frame(x=seq(13,37,1),rep(c(1,2,3,4,5),each=5),seq(21,105,21)) colnames(a)<-c("values","date","term") b<-data.frame(x,21,42,63,84,105)…
-
4
votes1
answer97
viewsQ: Ggplot of a Data.frame in separate graphs
I have that date.frame: > df ind m X1 X2 1 2015-12-21 21 0.1431529 0.1426365 2 2015-12-21 42 0.1403679 0.1443714 3 2015-12-21 63 0.1467133 0.1466899 4 2015-12-21 84 0.1513388 0.1485589 5…
-
4
votes1
answer244
viewsQ: Data Frame and Linear Regression
With this data frame I need to run some regressions. I want to make regressions with terms raised to 3 and lagged. I looked in the lm package and could not implement. I want for example to rotate…
-
4
votes2
answers1624
viewsQ: Reversing Order column data.frame
I have this data frame: > head(df1) data spread 1 2006-01-01 -3.0404577 2 2006-02-01 -3.3902628 3 2006-03-01 -2.5283960 4 2006-04-01 -1.5279234 5 2006-05-01 -0.0897918 6 2006-06-01 1.0286549 >…
-
4
votes2
answers292
viewsQ: ggplot data.frame
I have a data.frame (df): Mês SpreadMensal 1 jan2006 -3.04045769 2 fev2006 -3.39026284 3 mar2006 -2.52839603 4 abr2006 -1.52792341 5 mai2006 -0.08979180 6 jun2006 1.02865488 7 jul2006 0.54515613 8…
-
5
votes2
answers2993
viewsQ: Eliminating Double Lines from a Data.Frame
I have a data.Frame with the following behaviour: values ind 1 10.82000 2011-01-03 2 11.75000 2011-01-03 3 10.82000 2011-01-03 4 11.75000 2011-01-03 5 10.82000 2011-01-03 6 11.75000 2011-01-03 7…