I would like to import . ics file in R, however, when I try to do it like ...
sneak_cal <- read.delim("iCal-TribeEvents.ics", sep = ":", header=FALSE, stringsAsFactors = FALSE, strip.white = TRUE, na.strings = "")
... I am finishing the separation of the site's character strings (belonging to the field X-ORIGINAL-URLor UID), which is undesirable
ie httpsand//www.kicksonfire.com
The ultimate goal is to get the data in a neat format, where each row is one VEVENT, which, I think, will be represented unique UIDwithout loss of information (for example, URL)
Is there any other approach that is recommended, for example, pre-defining the fields expected as a key and matching the value or empty space with this key? Since the file .icshas the same expected fields every time, it seems to make sense to use these fields as a template for reading in the data, but I cannot figure out how to do this.
Scott source
share