I can not for the life of me understand what this is saying to do.
@AntJam-Howell Can you please clarify this and what exactly it is doing?
Step by step, please.
Adding interpretable variable names
from the data dictionary:
add a name attribute for each variable
value <- c(1,2,3)
dd.name <- c("one","two","three")
x <- dd.name
names(x) <- value
dd names and values linked
names( x[2] )
can now get the label using the value
using the name attributes
x[ "two" ]
to add labels to the maps
use the radio button value
to get the data dictionary label:
x[ input$demographics ]
I can not for the life of me understand what this is saying to do.
@AntJam-Howell Can you please clarify this and what exactly it is doing?
Step by step, please.
Adding interpretable variable names
from the data dictionary:
add a name attribute for each variable
value <- c(1,2,3)
dd.name <- c("one","two","three")
x <- dd.name
names(x) <- value
dd names and values linked
names( x[2] )
can now get the label using the value
using the name attributes
x[ "two" ]
to add labels to the maps
use the radio button value
to get the data dictionary label:
x[ input$demographics ]