HBClab / NetworkNeuroscience

Repository for scripts to run network analyses on neuroimaging data
GNU General Public License v3.0
0 stars 0 forks source link

NA factor levels expected? #9

Open mwvoss opened 2 years ago

mwvoss commented 2 years ago

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 commented 2 years ago

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

mpipoly commented 2 years ago

@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 commented 2 years ago

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