Question: Is there a convenient way to create a data frame from a vector and using the values of the vector as column names? Result should only have 1 row with empty fields. Values in vector may vary.

Given:

```
x <- c("1","2","3")

```

Output:

```
# A tibble: 1 x 3
  `1`   `2`   `3`  
  <chr> <chr> <chr>
1 ""    ""    ""  

```

Answer: 
If you're a tidyverse fan as I see by your using of `tibble`, you could use a combination of `map_dfc` and `setNames`:

```r
library(tidyverse)

df <- x %>% map_dfc(setNames, object = list(character(1)))

df

```

> 
> 
> ```
> # A tibble: 1 x 3
>  `1`   `2`   `3`  
>  <chr> <chr> <chr>
> 1 ""    ""    "" 
> 
> ```
> 
>
Try this:

```
x = c("1","2","3")

df = data.frame(matrix(ncol = 3, nrow = 0))
names(df) = x

Output:
> df
[1] 1 2 3

> str(df)
'data.frame':   0 obs. of  3 variables:
 $ 1: logi 
 $ 2: logi 
 $ 3: logi 

```

**Update:**

```
df = data.frame(matrix(ncol = 3, nrow = 1))
colnames(df) = x
> df
   1  2  3
1 NA NA NA

```