Determine the type of the AFM file; this could be an `image` or `frequency` for resonance curve, or `spectroscopy` for a force vs distance spectroscopy file, `noImage` for a file with data and no image
AFM.dataType(obj)
AFMdata object
string with AFM type, "image", "noImage", "frequency", "spectroscopy"
# show the data type for each AFM file
fList = AFM.getSampleImages()
sapply(fList, function(x) { AFM.dataType(AFM.import(x)) })
#> /private/var/folders/bz/zk25f6614w5b3_f61czs2dtc0000gr/T/Rtmp3VmG9r/temp_libpath12ca60a44957/nanoAFMr/extdata/AR_20211011.ibw
#> "image"
#> /private/var/folders/bz/zk25f6614w5b3_f61czs2dtc0000gr/T/Rtmp3VmG9r/temp_libpath12ca60a44957/nanoAFMr/extdata/ForceCurve_009.tiff
#> "spectroscopy"
#> /private/var/folders/bz/zk25f6614w5b3_f61czs2dtc0000gr/T/Rtmp3VmG9r/temp_libpath12ca60a44957/nanoAFMr/extdata/NanoSurf_20160301.nid
#> "image"
#> /private/var/folders/bz/zk25f6614w5b3_f61czs2dtc0000gr/T/Rtmp3VmG9r/temp_libpath12ca60a44957/nanoAFMr/extdata/NanoSurf_resonancePeak.nid
#> "frequency"
#> /private/var/folders/bz/zk25f6614w5b3_f61czs2dtc0000gr/T/Rtmp3VmG9r/temp_libpath12ca60a44957/nanoAFMr/extdata/Park_20210916_034.tiff
#> "image"
#> /private/var/folders/bz/zk25f6614w5b3_f61czs2dtc0000gr/T/Rtmp3VmG9r/temp_libpath12ca60a44957/nanoAFMr/extdata/Veeco_20160622.003
#> "image"