SpecialMatch: Match and delete elements

Description Usage Arguments Details Value Note Author(s) References Examples

View source: R/SpecialMatch.R

Description

used to delete superfluous spaces when parsing M Plus output

Usage

1
SpecialMatch(ListO, DelL)

Arguments

ListO

ListO is list of lists which contain strings as each element

DelL

DelL is list of lists of same length as ListO and those elements which are NA are kept for ouput while all other elements are removed

Details

see example

Value

input list of lists without elements specified by DelL

Note

this is a helper function that does not need to be used by regular user

Author(s)

William Terry

References

No references

Examples

1
2
3
4
5
6
7
8
9
x=c()
x="    A$1                1.388      0.068     20.514      0.000"
x=c(x,"    B$1                1.858      0.139     13.340      0.000")
x=c(x,"    C$1                1.426      0.081     17.542      0.000")
x=c(x,"    D$1                1.644      0.092     17.934      0.000")
Thresh=x
AllThresh=sapply(Thresh,strsplit," ")
DL=lapply(AllThresh,match,"")
AllThreshNoSp=SpecialMatch(AllThresh,DL)

PathSelectMP documentation built on May 2, 2019, 3:15 a.m.