-
Notifications
You must be signed in to change notification settings - Fork 6
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
Error in Periodogram Table Function #11
Comments
Hey @voza1, thank you very much for reporting your issue! from your code: ####Setting keys####
DATA <- as.data.table(DATA)
setkeyv(DATA, "Well_ID")
setnames(DATA,"Well_ID", 'id' )
METADATA <- as.data.table(METADATA)
setkeyv(METADATA, "Well_ID")
setnames(METADATA,"Well_ID", 'id' ) Then, per_xsq_test <- periodogram(MAXFLOW, behvr)
ggperio(per_xsq_test, aes(y=power- signif_threshold)) + stat_pop_etho() Good luck! |
Thanks for working on this Quentin!
…On Fri, Apr 17, 2020 at 11:00 AM Quentin Geissmann ***@***.***> wrote:
Hey @voza1 <https://github.com/voza1>, thank you very much for reporting
your issue!
So I have filed it as a bug on ggetho rethomics/ggetho#32
<rethomics/ggetho#32>. Until I fix it in the
package, you can patch things by *naming the id column id*:
from your code:
####Setting keys####DATA <- as.data.table(DATA)
setkeyv(DATA, "Well_ID")
setnames(DATA,"Well_ID", 'id' )METADATA <- as.data.table(METADATA)
setkeyv(METADATA, "Well_ID")
setnames(METADATA,"Well_ID", 'id' )
Then,
per_xsq_test <- periodogram(MAXFLOW, behvr)
ggperio(per_xsq_test, aes(y=power- signif_threshold)) + stat_pop_etho()
Good luck!
leaving the issue open until proper fix
Q
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#11 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AKFG3DAYACVKF672NX76JLTRNCKKDANCNFSM4MHFM62Q>
.
--
Viral Oza
Research Associate II
Finkbeiner Lab, Gladstone Institutes
|
qgeissmann
added a commit
that referenced
this issue
Apr 22, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The periodogram function gives me the following error:
Error in
[.data.table
(regular_data, , .(n_val = length(unique(var__))), :by=c(...), key(...) or names(...) must evaluate to 'character'
In addition: Warning message:
In regularize.values(x, y, ties, missing(ties)) :
collapsing to unique 'x' values
My var of interest is already type "char" so not sure what the issue is, There is also a unique timestamp for all individuals("Well ID")
github_zeitgebr_issue.zip
The text was updated successfully, but these errors were encountered: