my number in output look like this:
[1] 4.032134 1.000000 2.000000
[1] 3.476687 1.000000 3.000000
[1] 2.710619 1.000000 4.000000
first I want to round numbers in second and third column(without zeros): 1,2,3 and second I want to have header for each column. generally I want to have suche an output:
  Distance  First  second
[1] 4.032134  1      2
[1] 3.476687  1      3
[1] 2.710619  1      4
does it possible to do it in R? How can I do that?
UPDATE
I am generating this output so:
while(i < end-start+1)
{ 
  n<-1
  m<-strsplit(datalist[i],split=",")
  m<-sapply(m,as.numeric)
  m<-c(m)
  while(i+n<=end-start+1)
  {
    k<-strsplit(datalist[i+n],split=",")
    k<-sapply(k,as.numeric)
    k<-c(k)
    alignment<-dtw(k,m)
    output<-c(alignment$distance,round(i,digits=1),i+n)
    print(output)
    n<-n+1
  }
  i<-i+1
}
 
     
    