'data.frame': 16 obs. of 3 variables:
$ ID : num 986 1251 1801 11 986 ...
$ YEAR: num 2008 2008 2008 2009 2009 ...
$ x :List of 16
..$ 1 : chr "GR.3.8"
..$ 2 : chr "GR.3.1" "GR.3.8"
..$ 4 : chr "GR.3.8"
..$ 5 : chr "GR.3.7"
..$ 6 : chr "GR.3.8"
..$ 7 : chr "GR.3.1" "GR.3.8"
..$ 9 : chr "GR.3.8"
..$ 10: chr "GR.3.7"
..$ 11: chr "GR.3.1"
..$ 12: chr "GR.3.8"
..$ 13: chr "GR.3.1" "GR.3.8"
..$ 15: chr "GR.3.8"
..$ 16: chr "GR.3.1"
..$ 17: chr "GR.3.8"
..$ 18: chr "GR.3.1" "GR.3.8"
..$ 20: chr "GR.3.8"
NULL
As you can see the "x" coloumn is a list and I would want to change it to character variable.
Anyone may help me?
Thanks,
Massimiliano
Massimiliano Tripoli
Collaboratore T.E.R. scado il 31/12/2014
ISTAT - DCCN - Direzione Centrale della Contabilit? Nazionale
U.O. Contabilit? dei flussi di materia del sistema economico - CSA/C
Via Depretis, 74/B 00184 Roma
Tel. 06.4673.3132
E-mail: mtripoli at istat.it
Thanks David,
that's I was looking for.
Thanks to Chel too.
Massimiliano
----- Messaggio originale -----
Da: "David L Carlson" <dcarlson at tamu.edu>
A: "Chel Hee Lee" <chl948 at mail.usask.ca>, "Massimiliano Tripoli" <mtripoli at istat.it>, r-help at r-project.org
Inviato: Marted?, 25 novembre 2014 19:40:51
Oggetto: RE: [R] Converting list to character
Or just modify your aggregate() command:
Massimiliano Tripoli
Collaboratore T.E.R. scado il 31/12/2014
ISTAT - DCCN - Direzione Centrale della Contabilit? Nazionale
U.O. Contabilit? dei flussi di materia del sistema economico - CSA/C
Via Depretis, 74/B 00184 Roma
Tel. 06.4673.3132
E-mail: mtripoli at istat.it