Skip to content

Final Dashboard - adding variable names #35

@SwestCodes

Description

@SwestCodes

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 ]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions