Thanks Alex but the idea is to use dput() for the data so that readers can simply copy and paste it into R and have a working dataset. I have a very small data.frame called dd.
Var1 Var2
1 A 1
2 B 1
3 C 1
4 A 2
5 B 2
6 C 2
7 A 3
8 B 3
9 C 3
10 A 4
11 B 4
12 C 4
Here it is the output using dput(). If you copy it and paste it into R you will have an exact duplicate of my dataset which makes working on a problem much easier.
dd <- structure(list(Var1 = structure(c(1L, 2L, 3L, 1L, 2L, 3L, 1L,
2L, 3L, 1L, 2L, 3L), .Label = c("A", "B", "C"), class = "factor"),
Var2 = c(1L, 1L, 1L, 2L, 2L, 2L, 3L, 3L, 3L, 4L, 4L, 4L)), .Names = c("Var1",
"Var2"), out.attrs = structure(list(dim = 3:4, dimnames = structure(list(
Var1 = c("Var1=A", "Var1=B", "Var1=C"), Var2 = c("Var2=1",
"Var2=2", "Var2=3", "Var2=4")), .Names = c("Var1", "Var2"
))), .Names = c("dim", "dimnames")), class = "data.frame", row.names = c(NA,
-12L))
It's also a good idea to list any packages you have loaded so that we know what non-basic functions you may be using.
I can share 100 rows if you want, but I don`t you will find it useful, >since I want to perform my time-series on a single row. Here`s one:
-----Original Message-----
From: alexandre.piche at mail.mcgill.ca
Sent: Thu, 4 Jul 2013 07:40:31 -0700 (PDT)
To: r-help at r-project.org
Subject: Re: [R] ggplot2
Here<s the function last
last
function (x, ...)
{
UseMethod("last")
}
<environment: namespace:xts>
I can share 100 rows if you want, but I don`t you will find it useful,
since
I want to perform my time-series on a single row. Here`s one:
dezdiff.dt[nrow(dezdiff.dt),]
datetime X1 X2 X3 X4 X5
X6 X7 X8 X9
2013-07-04 2013-07-04 1.901595 0.7545192 0.2250272 0.07266123 0.1356831
0.3078896 0.5217937 0.7365071 0.9290817
X10 X11 X12 X13 X14 X15 X16
X17 X18 X19 X20 X21
2013-07-04 1.08838 1.210787 1.29725 1.351279 1.37761 1.381366 1.367526
1.340636 1.304659 1.262931 1.218168 1.17252
X22 X23 X24 X25 X26 X27
X28
X29 X30 X31
2013-07-04 1.127627 1.084698 1.044577 1.007814 0.9747219 0.9454289
0.9199254
0.8980989 0.8797653 0.8646931
X32 X33 X34 X35
2013-07-04 0.8526222 0.8432792 0.8363881 0.8316789
--
View this message in context:
http://r.789695.n4.nabble.com/ggplot2-tp4670852p4670857.html
Sent from the R help mailing list archive at Nabble.com.