Hello everyone,
I'm a Statical and sociology student, I would like to work on a network data base. This is the database http://snap.stanford.edu/data/cit-HepPh.html. Is a citation paper database
Data are in edge list shape I use this code to import:
nodes <- data.frame(read.table("cit-HepPh-dates.txt", header=T, as.is=T))
links <- data.frame(read.table("Cit-HepPh.txt", header=T, as.is=T))
the nodes list now is a dataframe, but different ID are repeated for each year of citation.
I would like to use dcast in order to produce a column for each year of citation.
Someone can help me?
Thank you
Best Regards
Marialuisa
--
You received this message because you are subscribed to the Google Groups "manipulatr" group.
To unsubscribe from this group and stop receiving emails from it, send an email to manipulatr+...@googlegroups.com.
To post to this group, send email to manip...@googlegroups.com.
Visit this group at https://groups.google.com/group/manipulatr.
For more options, visit https://groups.google.com/d/optout.
Thanks but I would like something like that:ID Date1 Date2 Date39203201 1992-02-24 1993-01-039301202 1992-03-08 1993-01-04EctDo you think it's possible?
--PhD Marialuisa Villani
Ingénieur d'études Post-Doc
Laboratoire SAGE
Université de Strasbourg
Email: mvil...@unistra.fr
Tel:0033 -628503163
No I need to transforme de edge list to node liste to use in Igraph package.2016-04-12 16:50 GMT-03:00 Brandon Hurr <brando...@gmail.com>:If you print it out, is it what you want?Hard to say from over here.On Tue, Apr 12, 2016 at 12:48 PM, Marialuisa Villani <marialuis...@gmail.com> wrote:This code?n<-nodes %>%
mutate(Year = year(Date), rownum = row_number()) %>%spread(Year, Date)
Thank you so much for your help