extracting column attribute inside a function

Say I have the following tibble: df1 <- structure(list(var1 = structure(c("Didn’t do a thing", "Almost did a thing", "Once did a thing", "Have never done a thing", "Always do a thing" ), description = "This is the question i asked respondents (and the title of the plot)"), wtd_pct = c(4L, 15L, 62L, 11L, 8L)), row.names… Read More extracting column attribute inside a function

How to html text show as par this attribute in jQuery?

The problem is not shown in each tag. I face some issues like this: attr is not a function. $(‘document’).ready(function() { jQuery(‘.custom-size .size .text’).each(function() { var option_label = this.attr(“option-label”); jQuery(this).text(option_label); }); }); <script src=”https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js”></script&gt; <div class=”custom-size”> <div class=”size”> <div class=”text” option-label=”NONE”></div> <div class=”text” option-label=”44″>NONE</div> <div class=”text” option-label=”46″>44</div> <div class=”text” option-label=”48″>46</div> </div> </div> >Solution : a)… Read More How to html text show as par this attribute in jQuery?

PowerQuery: Force Lowercase for an alphanumeric Text

How are you able to force an alphanumeric string to lowercase (or uppercase) in powerQuery? I have a series of attribute codes coming into powerQuery , but the codes contain variations of upper case and lower case text. In practice these items would be considered duplicates, but PowerQuery is case sensitive. I’ve tried using Text.lower… Read More PowerQuery: Force Lowercase for an alphanumeric Text