I have a dataset where the variable x is a string. I need to keep only observations at which the first 2 characters in the variable x is capital letter. Can anyone tell me how to do it ?
Related Posts with keep observations if first 2 character of the string is capital letter
spmap and spkde - How to create a "heatmap"?Dear Statalist, In this example: page 45 https://www.stata.com/meeting/german...g12_pisati.pdf Mauri…
Help with Randomly Drawing 500 Observations from DistributionDear all, I am using Stata 16, on mac. I was wondering if I wanted to randomly draw 500 observation…
explained varianceHello I have calculated a multilevel interaction effect using gsem, very much the same as example 38…
Help with Program that Draws Observations from Distribution and Nested LoopDear all, I am using Stata 16, on mac. I was wondering how would I write a program that selects a p…
Efficient Way to Reform Repeated Codes with IF conditionDear experts, For the following repeated codes : tab1 variable1 if (variableA == 1) & (variab…
Subscribe to:
Post Comments (Atom)
0 Response to keep observations if first 2 character of the string is capital letter
Post a Comment