79578675

Date: 2025-04-17 07:11:38
Score: 0.5
Natty:
Report link

You can full_join a tibble of columns with only NAs:

library(tidyverse)

mtcars %>%
  as_tibble() %>% 
  full_join(tibble(mpg = NA, topspeed = NA)

# or if want to have all columns of another tibble
mtcars |> 
  select(cyl) |> 
  full_join(mtcars |> filter(FALSE))
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Benjamin Fretwurst