I am also having the same issue and i cannot seem to get out of it, I am trying to capture the number that is in the sqaure brackets AND NOT until the last know bracket. This is the regex that i have conhjured so far :\[(.*)\]
this is the sample of the data that I am working with:
effectiveDate...
@DavidArenburg I'm not sure for the "right now", I think it's over. It was on from 4:30 am, special forces were tracking down terrorists (among which, it seems, the "brain" of last friday's attacks), one kamikaze woman made herself explode and 2 others were killed. 3 were "captured". This is what I understood from the last news anyway...
@DavidArenburg I've been on the page of a newspaper and they were talking about the 3 arrests but they didn't state clearly if it was over or not... how come I cannot get clear news from my own country..............
ok, I have a "live news", it indeed seems still on
@AvinashRaj probably, but we will get to see the screenshots!
@DavidArenburg little confession, lately using fread most of the time, and ending up using data table syntax more and more down the line... and I like it more and more.
please close as very unclear, downvote, whatever..., with 3 attempts of the OP to clarify the question, each time saying we answer the Q but actually it doesn't work on its data and blablabla and that he found the sol, which is a nested 2 (or is it 3 ???) for loops which I don't even want to begin to read.............
Thanks really really much for your effort despite my bad explanation. It is working now. I've also found a (bad programmed) solution by myself with for-loops (see above). — user55149783 mins ago
If there is any security measures are in Ask Ubuntu in case of fake reputation increase.
For example if a user has five google accounts,and login with each account and made upvotes for all the posts which are posted by the same user using another account. Did you observe these kind of culprits ...
@DavidArenburg where I'm looking for the news, it said that it is still in process... I need to find better sources for the news... so, did they arrest the "brain" ?
@Heroka focus is wrong. Media trying hard to show these acts as a deterrent, it will have zero effect. It is more like, hey we caught the "baddies", now all go back to your lives.
@Tensibai I first tried with apply actually but couldn't work with the first (or second ?...) explanation of the OP, so after I sticked to sapply. But anyway, basically, the problem was just to define the condition. Actually, I've already spent too much time on it, I'm just really glad it ended well (my sol eventually doing what the OP tried badly to explain...)
@AvinashRaj and mud... won't the insects be all dead by drowning ? ;-)
@Tensibai yes, I wanted to think about that (like doing it with data.table) but I refrained myself because it would have meant even more time not usefully spent...
@PierreLafortune this guy somehow managed to store a POSIXlt class within a data.frame. Not sure what sorcery is it stackoverflow.com/questions/33777070/…
Opinion-time (don't hit me, it's about hadleyverse). What is the general stance on (unless specifically asked by OP, I think many people are very much used to plyr) answers using plyr?
Just updated to the most resent version of Studio, and Completion is driving me crazy. Is there a way to disable this function? Unless I missed something it seems like they took out the option to turn it off and are forcing users to accept this "improvement".
There have been many other flag challenges posted but not one for the national flag of France. This week seems like an appropriate time.
Produce this flag in the fewest bytes possible:
The image must be in a ratio of 3:2, with size at least 78 pixels wide and 52 pixels tall.
Each stripe tak...
@zx8754 yes, that's exactly what I was asking to myself... (but actually, I won't even get rep from that because new SO user => cannot upvote and doesn't know he can tick....... so I really don't know why I'm doing this...)
R, 59 bytes
frame();rect(0:2/3,0,1:3/3,1,,,c("#0055a4",0,"#ef4135"),NA)
Output is displayed:
One can also do 49 bytes with
barplot(rep(1,3),,0,col=c("#0055a4",0,"#ef4135"))
if you do not mind the axes and borders:
Write, in as few characters as possible, a program that takes zero or six command-line arguments
menorah
menorah YEAR MONTH DAY HOUR MINUTE SECOND
(Both forms must be supported. The zero-argument version shall be equivalent to calling the six-argument version with the current system date and ...
As the first coming to my mind when talking about Jewish related things :) (And so probably knowing ways to convert between hebrew and gregorian calendar)
One thing I still didn't get is what ConvCalendar gives me: `as.OtherDate(OtherDate(day=7, month = 12, year = 2015,calendar = "gregorian"),calendar = "hebrew")`` claim the hebrew month is 3, where I expected it to be 9
@DavidArenburg Kislev is the 9nth month in hebrew calendar, right ?
The Hebrew or Jewish calendar (הַלּוּחַ הָעִבְרִי, ha'luach ha'ivri) is a lunisolar calendar used today predominantly for Jewish religious observances. It determines the dates for Jewish holidays and the appropriate public reading of Torah portions, yahrzeits (dates to commemorate the death of a relative), and daily Psalm readings, among many ceremonial uses. In Israel, it is used for religious purposes, provides a time frame for agriculture and is an official calendar for civil purposes, although the latter usage has been steadily declining in favor of the Gregorian calendar.
The present Hebrew...
Rosh Hashanah (Hebrew: רֹאשׁ הַשָּׁנָה, literally "head of the year") is the Jewish New Year. The biblical name for this holiday is Yom Teruah (Hebrew: יוֹם תְּרוּעָה), literally "day [of] shouting/blasting", sometimes translated as the Feast of Trumpets. It is the first of the High Holy Days (Hebrew: יָמִים נוֹרָאִים Yamim Nora'im, lit. "Days of Awe") specified by Leviticus 23:23-32, which usually occur in the early autumn of the Northern Hemisphere.
Rosh Hashanah is a two-day celebration, which begins on the first day of Tishrei. Tishrei is the first month of the Jewish civil year, but the...
Well actually yes, gets confusing when you read about hollydays are in the 9nth month, but this 9nth religious month is the 3rd civilian month, and tools used are based on the civilian one
I am new to R and I am trying to find a function to transform an integer to a string so I can use it in initiate a Date object.
> v = c(20081101)
> date <- as.Date(v, format("%Y%m%d"))
Error in charToDate(x) :
character string is not in a standard unambiguous format
I found a solution with ...
@Heroka The user is obviously new here and doesn't understand how to ask questions with replicable examples and etc. Whoever downvoted this question please un-do it. It's a pretty challenging question , our new user here just needs to learn how to ask it more appropriately — road_to_quantdom1 hour ago
@RichardScriven I have no idea what the question is about and don't think anyone will find it useful without a reproducible example, desired output or some meaningful wording
Upon further thinking, it would be pretty pointless to write that function because you have to be looking at SO anyway. Might as well just do it there. Haha