Changes between Version 33 and Version 34 of NetworkDynamicConverterFunctions


Ignore:
Timestamp:
06/26/14 14:21:05 (3 years ago)
Author:
skyebend
Comment:

some updates to spec to match code, added info about TEAs

Legend:

Unmodified
Added
Removed
Modified
  • NetworkDynamicConverterFunctions

    v33 v34  
    204204 as.data.frame() function aliased to return a list of edge spells in the form [onset,terminus,tail,head,onset.censored, terminus.censored, duration, edge.id] for the whole networkDynamic object.   
    205205 
    206  All of these methods should handle censoring. Check the soon-to-be-added {{{net.obs.period}}} attribute #155 (if present) and set all onset.censored spells (-Inf) to value of start, and terminus-censored spells (Inf) to value of end. (discussion on #149) 
    207  
    208  
    209  TO DO, get.slice.networks(networkDynamic, start=min(get.change.times(networkDynamic),end=max(get.change.times(networkDynamic),time.step=1,duration=1, rule="any"):: return a list with a series of networks produced by network.extract.  Allow specifying a series of onsets, termini  instead of / in addition to  start,step,duration,end ? 
     206 get.networks(dnet,start=NULL,end=NULL,time.increment=NULL,onsets=NULL,termini=NULL,...):: return a list with a series of networks produced by network.extract.  Allow specifying a series of onsets, termini  instead of / in addition to  start,step,duration,end. 
     207 
     208All of these methods should handle censoring. Check the soon-to-be-added {{{net.obs.period}}} attribute #155 (if present) and set all onset.censored spells (-Inf) to value of start, and terminus-censored spells (Inf) to value of end. (discussion on #149) 
    210209 
    211210 don't include export toggle methods unless we have a use case.  
    212211 
     212== Dynamic Attributes == 
     213 
     214The import functions provide limited support for TemporallyExtendedAttributes  
     215(dynamic attributes of edges and vertices). Because there is some ambiguity (and significant performance cost) in creating teas, they will only be added if {{{create.TEAs=TRUE}}}. 
     216 
     217 list of networks:: The static network, vertex, and edge attributes appear in each element of the list of networks will be converted to TEAs in the output network, with onset and terminus times corresponding to those of the slice.  
     218 
     219 edge and vertex spells:: Additional columns can be included with the matrices or data.frames passed in via {{{edge.spells}}} or {{{vertex.spells}}}.  Names for the attributes should be specified via {{{edge.TEA.names}}} and {{{vertex.TEA.names}}}. (If they are not specified and the input is a data.frame, it will attempt to use the colnames). The length of names vector must match the number of additional columns. The timing of the attribute spells will match the timing of the vertex and edge activation.  
     220 
     221 
    213222 
    214223== Questions: ==  
     
    230239Include missing edges / vertices in output? '''include.missing=FALSE''' If true, include extra column for missingness? 
    231240 
    232 Argument to include additional columns for attributes?  Or user should lookup using eids?  (simple attributes would be fine, but lists of objects might not work in data.frame output.) '''include.attrs=c("attrName1","attrName2")''' 
     241Argument to include additional columns for attributes?  Or user should lookup using eids?  (simple attributes would be fine, but lists of objects might not work in data.frame output.) '''include.attrs=c("attrName1","attrName2")''' IMPLEMENTED TEAs for edge.spells and vertex.spells 
    233242 
    234243Support for non-numeric,non integer input ids. '''pid=attrName''' Sort into alphabetic order, assign to ids 1:n