I have a package which returns
list
> res[1]
$anoms
timestamp anoms
1 2017-02-08 20:15:00 7695
2 2017-06-09 20:26:00 4013
3 2017-02-01 20:14:00 85029
4 2017-02-07 20:14:00 7214
5 2017-09-23 08:49:00 4422
6 2017-01-31 20:14:00 84431
7 2017-09-22 08:47:00 4529
a<-"test")
Posting this as an answer so people can see it:
df = res[1]$anoms
df$a = "test"
You can use $
to extract the anoms
element of the list (which is a data.frame in this case).