Hi Jim and all,
All functions worked beautifully. I really appreciate your help.
*Thank you and best regards.*
On Fri, Nov 19, 2021 at 4:26 AM Jim Lemon wrote:
> Hi RosalinaZakaria,
> Talk about using a sledgehammer to crack a nut. In your example the
> two objects are character vectors. Ho
Hi RosalinaZakaria,
Talk about using a sledgehammer to crack a nut. In your example the
two objects are character vectors. How about:
dt_comb1gd <-paste0(dtpaigd,dtpmgd)
Jim
On Fri, Nov 19, 2021 at 2:15 AM ROSLINAZAIRIMAH BINTI ZAKARIA .
wrote:
>
> Dear all,
>
> I try to merge two columns consi
Hello,
Use an index giving the "" positions.
i <- nchar(dtpmgd) == 0L
dtpmgd[i] <- dtpaigd[i]
Or, in one line,
dtpmgd[nchar(dtpmgd) == 0L] <- dtpaigd[nchar(dtpmgd) == 0L]
Hope this helps,
Rui Barradas
Às 07:02 de 18/11/21, ROSLINAZAIRIMAH BINTI ZAKARIA . escreveu:
Dear all,
I try t
On 18/11/2021 09:02, ROSLINAZAIRIMAH BINTI ZAKARIA . wrote:
Dear all,
I try to merge two columns consisting of characters using the 'coalesce'
function from dplyr package. However, two data still have not merged, data
no. 124 1nd 143. Any help is very much appreciated. I provide the data as
fo
Dear all,
I try to merge two columns consisting of characters using the 'coalesce'
function from dplyr package. However, two data still have not merged, data
no. 124 1nd 143. Any help is very much appreciated. I provide the data as
follows.
> dput(dtpaigd)
c("C+", "B+", "C+", "B+", "C+", "A-", "A
5 matches
Mail list logo