Learn R Programming

PathSelectMP (version 1.1)

SpecialMatch: Match and delete elements

Description

used to delete superfluous spaces when parsing M Plus output

Usage

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

Value

input list of lists without elements specified by DelL

Details

see example

References

No references

Examples

Run this code
# NOT RUN {
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)
# }

Run the code above in your browser using DataLab