Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Write a different tag value for every element of an xts #19

Closed
xanderdunn opened this issue May 31, 2017 · 2 comments
Closed

Write a different tag value for every element of an xts #19

xanderdunn opened this issue May 31, 2017 · 2 comments

Comments

@xanderdunn
Copy link

xanderdunn commented May 31, 2017

Based on my experimentation with xtsAttributes and looking at the documentation, it looks like setting attributes on an xts are global attributes for all values in the matrix?

What I'd like to do is be able to set xtsAttributes(my_xts) <- (tag_key = my_tags), where nrows(my_xts) == nrows(my_tags) so that every item in my_xts has a different value for the same tag_key.

This is easy to do in influxdb-python where the column of a data frame can be specific as a tag column in the influx_write function.

@dleutnant
Copy link
Owner

dleutnant commented Jun 1, 2017

Yeah, that would be great! We therefore need to parse a data.frame to influxdb's line protocol and modify influx_write.

It must be further specified, which columns are fields and which are tags (optionally, a datetime column, too)

@dleutnant
Copy link
Owner

I'm closing this issue and opening the #20

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants