R: Occurrence times -> binary sequence? -


What are the better options for converting a non-decreasing sequence of incident time to 0-1 CEC? Thank you.

  D & lt; -c (3,5 9, 12, 15); C (Rep (0 (0, D [1] -1, Unlisted (RBIDID (Mapple (Rep., 0, DIFFED (D) -1), 1)))  

I think it should do the same

  d <- c ( 3,5,9, 12,15); x and lt; - integer (max) (d)) # integer vector where all entries are zero;  
= Max (D) (or the last element of D) X [D] <- 1 l # set x to each position

Comments

Popular posts from this blog

asp.net - Javascript/DOM Why is does my form not support submit()? -

sockets - Delphi: TTcpServer, connection reset when reading -

javascript - Classic ASP "ExecuteGlobal" statement acting differently on two servers -