Dear all,
i have a variable called E, which is the completed date of an acquisition (see screenshot). The variable is non-numeric string and in %14s format. De date in the variable is displayed as follows:
11jan2001. Now I want to created a new variable called fyear and subtract the last four digits (=year of acquisition) from the E variable. I've got problems doing this because the variable is non-numeric. Is there anyone who can help me?
Thanks in advance!Array
Related Posts with subtracting year from a non-numeric variable
Subgroup analysis vs. interaction termsHello, I want to compare the effect of one variable (i.e. public debt) on a dependent variable (i.e…
using export excel in combination with conditional statementDear all, Would you be able to advise me on the following? I have written several checks to flag d…
Problem in String Matching using listsI have sample individual addresses data which is pretty unclean. There more than 400000 observations…
How to open a .dat data file in STATA?Hello! I am currently helping out on a research project that previous used SPSS to do statistical a…
Esttab problem with interaction fixed effectHello, I am using a survey dataset (the World Values Survey) and trying out the following code in S…
Subscribe to:
Post Comments (Atom)
0 Response to subtracting year from a non-numeric variable
Post a Comment