Add NA Column to Dataset
construct_empty_var.Rd
This function takes a dataset and adds a new column filled with NA values.
Examples
df <- data.frame(id = 1:5, name = c("Alice", "Bob", "Charlie", "David", "Eve"))
new_df <- construct_empty_var(df)
print(new_df)
#> id name birth1j
#> 1 1 Alice NA
#> 2 2 Bob NA
#> 3 3 Charlie NA
#> 4 4 David NA
#> 5 5 Eve NA