i am new to R as i'm trying to analyse a very large dataset excel can't handle any longer;)
I have a simple question regarding the add_row function from the dplyr package.
I have created a tibble "test" with the columns x,y and z.
If I add a row is seems to work, but when i look at the head of the tibble the added row does not appear. I couldn't find any explanation for this behaviour, it would be great if someone has an idea what i do wrong...
> test
># A tibble: 0 x 3
># … with 3 variables: x <dbl>, y <int>, z <int>
> add_row(test, x = 0, y = 1, z = 2)
># A tibble: 1 x 3
> x y z
> <dbl> <dbl> <dbl>
>1 0 1 2
> head(test)
># A tibble: 0 x 3
># … with 3 variables: x <dbl>, y <int>, z <int>