Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Darkly)
  • No Skin
Collapse
Brand Logo
Proto Himbo EuropeanG

guyjantic@infosec.exchange

@guyjantic@infosec.exchange
About
Posts
6
Topics
2
Shares
0
Groups
0
Followers
0
Following
0

View Original

Posts

Recent Best Controversial

  • Is anyone good with #Rstats and #regex ?
    Proto Himbo EuropeanG Proto Himbo European

    @rastrau I suspect you're more of a regexpert than I am, and your explanation seems plausible.

    Uncategorized rstats regex geany

  • Is anyone good with #Rstats and #regex ?
    Proto Himbo EuropeanG Proto Himbo European

    @rastrau Hey, that works! Thanks a ton!

    Uncategorized rstats regex geany

  • Is anyone good with #Rstats and #regex ?
    Proto Himbo EuropeanG Proto Himbo European

    @rastrau I don't mind tidyverse dependencies at all. I have tried stringr::str_replace() and it gave me exactly the results of sub() and gsub(), but I haven't tried str_extract() yet. I'll give it a shot. Thanks.

    Uncategorized rstats regex geany

  • Is anyone good with #Rstats and #regex ?
    Proto Himbo EuropeanG Proto Himbo European

    Is anyone good with #Rstats and #regex ? I'm having issues.

    strings <- c("150 hertz", "70 hz", NA, "between 87 and 100 hz ocillations", "15hz", "triangle 110 hertz", "144Hz, Sine waveform", "It is a hysterical idling. More vibraton than sound.", NA)

    I want to replace each string with the digits (well, the first set) found in it, if any. I try this:

    sub("(^.*)(\\d{2,5})(.*$)", "\\2", strings)

    I get this as a result:

    [1] "50"
    [2] "70"
    [3] NA
    [4] "00"
    [5] "15"
    [6] "10"
    [7] "44"
    [8] "It is a hysterical idling. More vibraton than sound."
    [9] NA

    I expect to get all digits (the first set in each string) if they are from 2 to 5 digits long. Instead, I only get 2 digits.

    Using similar regex in #geany just to prepare this little example I got the expected behavior. I've updated and restarted R. I've used sub and gsub. Same result. If I specify \d{3,5} I get three digits. If I say \d{1,3} I get one digit. I always get the number of digits specified in the first value in the curly brackets.

    Maybe R is just vomiting or something. But if you know of an issue with R and regex that results in this, please let me know.

    Uncategorized rstats regex geany

  • Saw someone say that their criteria for lesbian dating was
    Proto Himbo EuropeanG Proto Himbo European

    @skinnylatte That last rule is asshole material bordering on abusive psycho.

    Uncategorized

  • "A society where tens of millions are unemployable is not a sign of free-market success but a powder keg."
    Proto Himbo EuropeanG Proto Himbo European

    "A society where tens of millions are unemployable is not a sign of free-market success but a powder keg."

    Before the baby communists jump on this with "Then the revolution comes!" please remember that

    a. The job losses, as always, will hit blue-collar and lower-educated workers the hardest. These workers are disproportionately conservative.

    b. This mob of unemployed conservatives will have a lot more guns and a lot less critical thinking than the people they blame for the job losses.

    c. They will not blame the billionaires; they'll blame minorities, liberals, and people living in cities.

    https://thehill.com/opinion/finance/5713876-ai-displacement-and-ubi/

    #uspol #employment #economy #ai

    Uncategorized uspol employment economy
  • Login

  • Don't have an account? Register

  • Login or register to search.
Powered by NodeBB Contributors
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups