You could directly use
strsplit("bA531F16-rep","\\-")[[1]][1]
and
strsplit("bA531F16-rep","\\-")[[1]][2]
Regards
Carlos Morales-2 wrote:
>
> Hello,
>
> I would like to know what can I do if I use strplit with a string and I
> want to use the middle left,I mean I have this:
>
> st
> unlist(strsplit("bA531F16-rep","\\-"))[1]
[1] "bA531F16"
--- Carlos Morales <[EMAIL PROTECTED]>
wrote:
> Hello,
>
> I would like to know what can I do if I use
> strplit with a string and I want to use the middle
> left,I mean I have this:
>
> strsplit("bA531F16-rep","\\-")
> [[1]
Hello,
I would like to know what can I do if I use strplit with a string and I want
to use the middle left,I mean I have this:
strsplit("bA531F16-rep","\\-")
[[1]]
[1] "bA531F16" "rep"
I would like to work just with bA531F16 in another variable, what could I
do?, Thank you