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

NA factor levels expected? #9

Open
mwvoss opened this issue Mar 9, 2022 · 3 comments
Open

NA factor levels expected? #9

mwvoss opened this issue Mar 9, 2022 · 3 comments

Comments

@mwvoss
Copy link
Member

mwvoss commented Mar 9, 2022

For many participants the following warning message is given:

[1] 121001
[1] "The file exists"
[1] " No Missing Parcels"
Warning in `[<-.factor`(`*tmp*`, iseq, value = 121001L) :
  invalid factor level, NA generated

Can the user be given a warning of whether this is expected or a warning to pay attention to?

@mwvoss
Copy link
Member Author

mwvoss commented Mar 9, 2022

Likely related to this, for me the variable X.Subject_ID. has blank NAs when the loop has finished, should it?

@mpipoly
Copy link
Collaborator

mpipoly commented Mar 15, 2022

@mwvoss which script did you run to get the error below:

NOTE: I just ran the script here and did not generate that warning: /Volumes/vosslabhpc/Projects/BETTER/3-Experiment/2-data/bids/derivatives/xcpEngine/analyses_longitudinal-rs/pre/1a_oneD_to_csv_iowa.Rmd

[1] 121001
[1] "The file exists"
[1] " No Missing Parcels"
Warning in `[<-.factor`(`*tmp*`, iseq, value = 121001L) :
  invalid factor level, NA generated

@mwvoss
Copy link
Member Author

mwvoss commented Mar 15, 2022

With this script (1a_oneD_to_csv_iowa.Rmd) I received the warning message shown after each subject iterated through the loop.

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

No branches or pull requests

2 participants