top of page
Search

dplyr or base R

dplyr and tidyverse are convenient frameworks for data management and technical analytic programming. With more than 25 years of R experience, I have a tendency to analyze programmatic problems before I turn to packaged solutions.

Look-up tables in SQL are used to map character values with integer values stored in the databases, a similar concept relates to value labels in SPSS and R.


labels<-c("label1","label2","label3") vec<-c(1,1,1,0,2,1,0,2,2,2)

lvec<-labels[vec]

lvec

[1] "label1" "label1" "label1" "label2" "label1" "label2" "label2" "label2"


0 views0 comments

Recent Posts

See All

SAS University Edition load error solution

Using SAS University Edition with VirtualBox in Fedora requires kernel signing of 3 modules. Avoid this by disabling Secure Boot in BIOS settings. Secure Boot makes it impossible to load nonauthorized

bottom of page