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

parser_1(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

string <- "aliejus;silicis;0.5mW;1;NA;_RamanShift_14-51-36-968.txt"
parser_1(string)
#> Warning: 'default.stringsAsFactors' is deprecated.
#> Use '`stringsAsFactors = FALSE`' instead.
#> See help("Deprecated")
#>    Object   Where Laser_power Point Comment Type_of_spectrum         Time
#> 1 aliejus silicis         0.5     1      NA       RamanShift 14-51-36-968
#>   FileCreatedOn
#> 1          <NA>

string3 <- c(string,string,string)
parser_1(string3)
#> Warning: 'default.stringsAsFactors' is deprecated.
#> Use '`stringsAsFactors = FALSE`' instead.
#> See help("Deprecated")
#>    Object   Where Laser_power Point Comment Type_of_spectrum         Time
#> 1 aliejus silicis         0.5     1      NA       RamanShift 14-51-36-968
#> 2 aliejus silicis         0.5     1      NA       RamanShift 14-51-36-968
#> 3 aliejus silicis         0.5     1      NA       RamanShift 14-51-36-968
#>   FileCreatedOn
#> 1          <NA>
#> 2          <NA>
#> 3          <NA>