I have one search that uses which
, and another search that uses grep
as follows:
dates <- myframe[grepl(abreviation,myframe$geo),"date"]
dates <- c(dates, myframe[which(myframe$geo == fullname),"date"])
abreviation
and fullname
are are two different strings.
I tried using |
which returned 0 entries. I also tried endsWith
, but this returned the warning that only the top result was going to be used, and the list only had one result.
The issue I'm having with this is that it's not returning a date in a string format, which is what date
is, but instead a number integers.
What do I need to do differently to get a vector of these dates
Edit: Here is a sample dataset-
pastebin.com/yXq6khNV