strange behavior of RStudio...have to restart RStudio in order to get right values

Hallo Community,

i have a strange behavior in RStudio. In a script, I download crypto values from Coinmarketcap web server with the r package Coinmarketcapr.
Later I want to do some matching with coloums of the dataframes aa and historiedf2. But the strange thing is, I get only correct values, when I close RStudio and run those four lines again.

When I run these lines muliple times before closing, I get no matchings at all.
But when I restart RStudio and run these four lines again, I get correct matchings and values.
Nothings else is being done.

liste_aa_df_1_na <- match(aa[,1] , historieDF2[,1])
liste_aa_df_2_na <- match(aa[,2] , historieDF2[,2])
liste_df_aa_1_na <- match(historieDF2[,1] , aa[,1])
liste_df_aa_2_na <- match(historieDF2[,2] , aa[,2])

Does anyone have a clue for this behavior?
I get this behavior with two different PCs...with a macbook m1pro and a windows desktop PC... both have RStudio running and I get the same outcome....
I am very happy with RStudio....I love RStudio and R, but this behavior is a bit strange....

First this:


then close RStudio and run those four lines from above

after restarting it and running those four lines, I get the correct values...

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.