Some R commands

Arshad

2022/04/24

Counting the occurance of individuals values in a variable.

df_merged_labour %>% select(xss) %>% group_by(xss) %>% count()

convert a vector into comma separated character vector

rs <- paste("\"",as.character(vector),"\"",collapse=", ",sep="")
cat(rs)
>> Home