Hi:

Perhaps

?append

for simple insertions...

HTH,
Dennis

On Wed, Oct 13, 2010 at 1:24 AM, dpender <d.pen...@civil.gla.ac.uk> wrote:

>
> R community,
>
> I am trying to write a code that fills in data gaps in a time series.  I
> have no R or statistics background at all but the use of R is proving to be
> a large portion of my PhD research.
>
> So far my code identifies where and the number of new entries required but
> I
> do not know how to add additional rows or columns into an array.  Any
> advice
> on how this can be done?
>
> Here is an example:
>
> H [0.88 0.72 0.89 0.93 1.23 0.86]
> T [7.14 7.14 7.49 8.14 7.14 7.32]
> O [0 0 0 2 0 0]
>
> This says that in order to complete the data set 2 entries are required
> prior to H[4] and T[4] i.e. where O = 2.
>
> Thanks,
>
> Doug
> --
> View this message in context:
> http://r.789695.n4.nabble.com/Data-Gaps-tp2993317p2993317.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> R-help@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to