Parse a string with filename and return a dataframe with extracted information.

parser_TD2015(x)

Arguments

x

A sting.

Value

A data frame.

Details

Is x is a filename with a path, only the filename without path is parsed.

Examples

stringA <- "Duomenu_pvz/Fluorescencija/2010-03-16/ID_001/2.Scope"
parser_TD2015(stringA)
#> Warning: 'default.stringsAsFactors' is deprecated.
#> Use '`stringsAsFactors = FALSE`' instead.
#> See help("Deprecated")
#>        Date_   X  ID Point FileCreatedOn
#> 1 2010-03-16 ID_ 001     2          <NA>

stringB <- "Duomenu_pvz/Fluorescencija/2014-08-13/ID_451/56.txt"
parser_TD2015(stringB)
#> Warning: 'default.stringsAsFactors' is deprecated.
#> Use '`stringsAsFactors = FALSE`' instead.
#> See help("Deprecated")
#>        Date_   X  ID Point FileCreatedOn
#> 1 2014-08-13 ID_ 451    56          <NA>

stringC <- "Duomenu_pvz/Fluorescencija/2009-07-13/ID_051/66.Master.Scope"
parser_TD2015(stringC)
#> Warning: 'default.stringsAsFactors' is deprecated.
#> Use '`stringsAsFactors = FALSE`' instead.
#> See help("Deprecated")
#>        Date_   X  ID Point FileCreatedOn
#> 1 2009-07-13 ID_ 051    66          <NA>

x <- c(stringA,stringB,stringC)
parser_TD2015(x)
#> Warning: 'default.stringsAsFactors' is deprecated.
#> Use '`stringsAsFactors = FALSE`' instead.
#> See help("Deprecated")
#>        Date_   X  ID Point FileCreatedOn
#> 1 2010-03-16 ID_ 001     2          <NA>
#> 2 2014-08-13 ID_ 451    56          <NA>
#> 3 2009-07-13 ID_ 051    66          <NA>