Skip to content
Back to formatted view

Raw Message

Message-ID: <CAAmySGOHJY6ovZwz5L6jdkmPY+wzFn3hf1spRH0qx6DNfhtc_Q@mail.gmail.com>
Date: 2013-01-25T09:00:12Z
From: R. Michael Weylandt
Subject: importing data
In-Reply-To: <CA+ivARiKq9ab5U2ru+TjievcCgknihrZHeCDh-8HZrafcOPaew@mail.gmail.com>

On Fri, Jan 25, 2013 at 6:11 AM, Ray Cheung <ray1728 at gmail.com> wrote:
> Dear Michael,
>
> Thanks for your codes. However, lapply does not work in my case since I've
> some files missing in the data (say, the file data101.dat). Do you have any
> suggestions on this?? Thank you very much.
>

You could simply add a test using file.exists() but I'm not sure what
you want to do with the M matrix then -- omit the slice (so the others
are all shifted down one) or fill it entirely with NA's.

Michael