Construct Feature Dictionary
makeFDict(fns = NULL) parseF(fn)
fns | an option character vector of feature definition functions. This list is the basis of the feature dictionary. If |
---|---|
fn | a feature definition function, either as string or actual function object. |
parseF
works by scanning the body of the feature definition function (e.g. body(.dtAIR)
), and look for any joint
, plane
, fname
, and featurename
specification.
makeFDict()#> # A tibble: 48 x 5 #> fn joint plane fname featurename #> <chr> <chr> <chr> <chr> <chr> #> 1 .dtAIR Ankle tra AIR Ankle Internal Rotation #> 2 .dtDblBump Pel sag DblB Increased ROM (double bump) #> 3 .dtDecDF Ankle sag DFdec Reduced Dorsiflexion #> 4 .dtDecFxLoading Knee sag KFxatLdec Reduced flexion @ loading #> 5 .dtDecHipFxIC Hip sag HFxatICdec Decreased hip flexion @ IC #> 6 .dtDecPelTilt Pel sag Tiltdec Decreased pelvic tilt #> 7 .dtDecPelTiltIncROM Pel sag TiltdecAndROMinc "Decreased Pelvic Tilt + \~ #> 8 .dtDecPkKnFx Knee sag PkKFxdec Decreased Peak Knee Flexion #> 9 .dtDelayDecPkKnFx Knee sag DlyPkKFxdec Delayed + Decreased Peak K~ #> 10 .dtDelayIncPkKnFx Knee sag DlyPkKFxat Delayed + Increased Peak K~ #> # ... with 38 more rowsmakeFDict(c(".dtAIR",".dtDblBump"))#> # A tibble: 2 x 5 #> fn joint plane fname featurename #> <chr> <chr> <chr> <chr> <chr> #> 1 .dtAIR Ankle tra AIR Ankle Internal Rotation #> 2 .dtDblBump Pel sag DblB Increased ROM (double bump)parseF(.dtAIR)#> $joint #> [1] "Ankle" #> #> $plane #> [1] "tra" #> #> $fname #> [1] "AIR" #> #> $featurename #> [1] "Ankle Internal Rotation" #>