Learn R Programming

PathSelectMP (version 1.1)

OnlyNumberElement: indexes list of lists

Description

simple helper function to return only specified list element of set of lists to be used with apply functions

Usage

OnlyNumberElement(AllData, Number)

Arguments

AllData

list of lists

Number

index number of list element to return

Value

comp1

designated list element

Details

created for easy indexing of lists of lists with apply functions

References

No references

Examples

Run this code
# NOT RUN {
Dat=list(c(list("new1"),list("new2")),c(list("Old1"),list("Old2")))
AllFileNames1=sapply(Dat,OnlyNumberElement,1)
# }

Run the code above in your browser using DataLab