Skip to main content
1 vote
2 answers
594 views

I have a data frame which is in long format. I have multiple cities. Each of the cities has information for each month and information also for each code (this code goes from 100 up to 1,000). My ...
Adriana Castillo Castillo's user avatar
0 votes
2 answers
54 views

My code is like this: fcase(V2009 == 9L & V3006 == 2L, V1032, V2009 == 10L & V3006 == 3L, V1032, V2009 == 11L & V3006 == 4L, V1032, V2009 == 12L & V3006 == ...
Kaius De Paula Correa's user avatar
0 votes
4 answers
264 views

I was wondering if any of you could help me to improve this query SELECT IF(cases.country_region LIKE '%Korea%', 'South Korea', IF(upper(cases.country_region) = 'IRAN (ISLAMIC REPUBLIC OF)', 'Iran', ...
Ariel Kenji Arakaki's user avatar
0 votes
0 answers
309 views

let age = 25 if case 18...35 = age where age >= 21 { print ("In Cool Demographic and of drinking age") } In Swift, when I type the code above, it says right before in "where", there's a ...
Toby Klauder's user avatar
1 vote
2 answers
17k views

Sorry for possible spam, I'm finishing RHEL Security Hardening/Auditing script, where I want an overall result in the end. For example, # PermitEmptyPasswords grep -E '^\s*PermitEmptyPasswords\s+no\s*...
kd.maxi's user avatar
  • 70
3 votes
1 answer
4k views

I'm working through Big Nerd Ranch's Swift Programming book (2nd edition), and in the chapter on the Switch statement, there's a small section on in-cases and how to use them. When describing how to ...
enharmonics's user avatar
0 votes
1 answer
186 views

I want to update a sheet with new data about every 15 minutes. the code I'm looking for is something like: case data is not exist in the sheet "do something" case else "do somthing else" The code i ...
Mahyar Mohammadi's user avatar
1 vote
0 answers
334 views

So my problem is that you have a lot of if conditions to be checked and inside that if condition you have multiple lines of code. I want to eliminate it and use inheritance instead. For every if ...
Akila Randil's user avatar
-1 votes
1 answer
1k views

I got a function named getCookie(x) which returns the value of the cookie with name x. When i check with console.log(getCookie(foo)); it returns the correct term of either solved or an empty string if ...
Martin WasGehtSieDasAn's user avatar
3 votes
1 answer
311 views

How would you write this: if case .SomeEnum(3) = enumType where myInt == 3 { //I don't need this case } else { //This is the case I need } I know I could use guard: guard case .SomeEnum(3) = ...
Daniel Klöck's user avatar
3 votes
1 answer
254 views

Swift 2 introduced if-case which is supposed to be a more terse way of expressing a switch that only has a few cases. I'm wondering if there is a way of expressing a switch statement with a comma ...
Dan Beaulieu's user avatar