Hi,
I have 15 big data sets where I want to keep only a few variables and I want to do the same to my other datasets.
The problem is that the variable names differ in those data sets and same variables have only the same labels.
(e.g. variable "aaqhi" in data set 1 and "aaghx" in data set 2 both have the same label as "Date of Birth")
So I'm looking for a way to keep variables using their labels, in all those data sets, save them on the existing data sets and then merge all the data sets.
The thing is I do not know how to use variable labels in functions instead of names and I have already searched the forum but did not find anything.
many thanks,
Arman.
Related Posts with Subsetting data using labels
New version of invdesc on SSCThanks as always to KIt Baum, a new version of the invdesc package is now available for download fro…
Query about Zero Inflated Poisson RegressionI conducted a study on demand of cinema where cinema goers and non-goers both are respondent. and 51…
looping twoway graph on panel datasetDear Sirs, I have a panel of 21 countries over 45 years. I am trying to graph this: foreach i of n…
Reshaping dataHi, I have the following wide data. I want to convert it to long. Code: * Example generated by -da…
ARDL Error Correction Model InterpretationI am trying to estimate the relationship between real currency per capita (dependent variable) and d…
Subscribe to:
Post Comments (Atom)
0 Response to Subsetting data using labels
Post a Comment