Re: [R] create vector from indices interpolated values

2013-03-07 Thread PIKAL Petr
r-help@r-project.org > Subject: [R] create vector from indices interpolated values > > Readers, > > Is it possible to create a plot command based upon the indices of > missing values in a data set? > > dataset1<-read.table(text=' > 10 2 > 20 NA > 30 5 > 40 7

[R] create vector from indices interpolated values

2013-03-06 Thread e-letter
Readers, Is it possible to create a plot command based upon the indices of missing values in a data set? dataset1<-read.table(text=' 10 2 20 NA 30 5 40 7 50 NA 60 NA 70 2 80 6 90 NA 100 9 ') dataset2<-read.table(text=' 0.2 0.4 0.1 0.9 0.2 0.3 1.1 0.7 0.9 0.6 0.4 ') The 'approx' function is used