Hey y'all.
I've been stuck on creating a dummy variable called summer that's 1 when the integer ends in 4, 5, 6, 7, 8, 9 and zero otherwise.
I have already converted my integer date values to string, but I don't know if there exists a function(like .endswith or something for Python) that can do precisely what I need.
Let me know what you guys think.
Related Posts with Help with creating a dummy variable that depends on the last integer of a date
3 plots gathered in 1 subplotHi, I am struggling to gather 3 plots in 1 unique figure with 3 subplots. I want the subplots to de…
Insert comma in string variableHi, I have a numeric variable that I would like to convert into a string variable with commas separ…
Yearly standard deviation of daily returnsHi Community, for a paper at university i need to calculate the annualized standard deviation of da…
Assign value randomlyHi, I have a data of 5 clusters, each has 30 observations. I am asked to create a new variable, whi…
asdasd …
Subscribe to:
Post Comments (Atom)
0 Response to Help with creating a dummy variable that depends on the last integer of a date
Post a Comment