[R] Converting AIS Message to Number
bgunter@4567 @end|ng |rom gm@||@com
Mon Dec 23 20:06:50 CET 2019
The "digest" package might be what you're looking for: messages --> numerics
Or perhaps you want to create a hash in R. Search on "hashing in R" or
similar for info on this.
See ?file.info for obtaining file info, including date/time info.
"The trouble with having an open mind is that people keep coming along and
sticking things into it."
-- Opus (aka Berkeley Breathed in his "Bloom County" comic strip )
On Mon, Dec 23, 2019 at 10:14 AM Paul Bernal <paulbernal07 using gmail.com> wrote:
> Dear friends,
> Hope you are doing great. I would like to process an AIS file (which comes
> in either a .txt or .csv format). The AIS file is contained in a specific
> path, say C:/AISFiles/File.txt. The file contains messages like the
> !AIVDM,2,1,2,A,5EPtgd42CRtIADNU using N0<E98v1 using TM8F222222220m1HB586R
> (all of this is a single message).
> Is there a way to make R automatically retrieve the latest file saved on
> the path, take each message and convert it to a number?
> Best regards,
> [[alternative HTML version deleted]]
> R-help using r-project.org mailing list -- To UNSUBSCRIBE and more, see
> PLEASE do read the posting guide
> and provide commented, minimal, self-contained, reproducible code.
[[alternative HTML version deleted]]
More information about the R-help