Using attr function dynamically

Considering the following data frame df<-data.frame(a=c(1,2,3)) I can show it by doing: df or get("df") Also, I can give an attribute to it by doing this: attr(df,"anyAttribute")<-"df attribute" attributes(df) $names [1] "a" $class [1] "data.frame" $row.names [1] 1 2 3 $anyAttribute [1] "df attribute" Is there any way to give attributes to dataframes dynamically?. What… Read More Using attr function dynamically

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