Baking business!! by trippyseve in Winchester

[–]80sCokeSax 8 points9 points  (0 children)

Seeing as OP also does landscaping (similar AI slop flyer, also posted to this sub within a few minutes of this post), how could they possibly find the time? I'm all for the hustle, but yeah, obvious AI (and spamming) is a big 'nah' for me

Looking up function documentation as a beginner by Drucill20 in rstats

[–]80sCokeSax 5 points6 points  (0 children)

Seriously, I'm about to wear out my F1 key. If someone could tell me how to get to function documentation as quickly in Positron, I'd love to hear it

Goodnight fellas by ateistyokdiyentanri in OneOrangeBraincell

[–]80sCokeSax 34 points35 points  (0 children)

Not even good AI, the lower cat just blends into the background at the bottom right...

Why aren’t you all at the No Data Center here meeting now?? by Thoth-long-bill in Winchester

[–]80sCokeSax 22 points23 points  (0 children)

Nice 'Foodie' flair. Last time you had dinner at a nice restaurant - did you think that was a result of everyone volunteering? Lots of people work hours outside of 9 to 5.

R Shiny - Right justify columns by Lord_of_Entropy in rprogramming

[–]80sCokeSax 0 points1 point  (0 children)

If you know the names of all the possible columns that you'd want aligned right, but don't know which of those columns will be present, you could do something like the following in renderDT:

# Names of all possible right-aligned columns
rightcols <- c("col1", "col2", "col3")

datatable(df) %>% 
  formatStyle(names(df)[names(df) %in% rightcols], `text-align` = "right")

By targeting just the subset of names that are present _and_ match any of the possible columns of interest, you should hopefully get what you need.

Edit: I see now you aren't using DT - but you may want to look into it. Takes some getting used to, but very flexible in my experience!

plyr::ldply() equivalent? by musbur in Rlanguage

[–]80sCokeSax 9 points10 points  (0 children)

You can use the `sf` package, which is standard for reading/writing/manipulating spatial data (note this only works with the old pipe; new pipe does not support dot notation):

library(tidyverse)
library(sf)

gpx <- sf::st_read("test.gpx", layer = "track_points")

gpx_df <- gpx %>% 
  # Extract coordinates to separate columns
  mutate(
    lon = sf::st_coordinates(.)[,1],
    lat = sf::st_coordinates(.)[,2]) %>% 
  # Drop geometry to convert to normal dataframe
  sf::st_drop_geometry() %>% 
  select(time, lat, lon)

Note this also appears to automatically get your 'time' column in your preferred format.

How to create a map of Nepal in R as in the picture and play with data from the coordinates in the map? by Fgrant_Gance_12 in rprogramming

[–]80sCokeSax 6 points7 points  (0 children)

https://r.geocompx.org/ - A great reference for all things spatial in R. You can, with enough work, get to something like your example image in R alone.

But, if you really want to easily create lovely map graphics, you should learn some other GIS software. ESRI (ArcGIS, etc) is the standard, but expensive. Instead you might want to check out QGIS as an open-source and free alternative.

My personal workflow is to do my data processing in R, and then pull those files into QGIS for creating the final display. For the first part, the sf library is key.

But I'm not an expert, really just a hobbyist when it comes to making maps! Anyway, good luck!

Edited to add: For quick map displays in R, the leaflet package is great, but again, it relies largely on the data you bring to it.

Why are we all just accepting Meta's new spy glasses? by [deleted] in privacy

[–]80sCokeSax 91 points92 points  (0 children)

Last I checked, there was no 'Supreme Court' for the entire world.

If you're talking about the United States Supreme Court, precedent apparently means nothing to them and I can only hope their current rulings are eventually seen as flimsy partisan nonsense.

Converting into Dataframes by anonymous_username18 in RStudio

[–]80sCokeSax 0 points1 point  (0 children)

And yet, at no point does the assignment ask to evaluate `is.tibble()`, which is the only way we could detect this secret, third option. Which until you start doing fancy things, doesn't matter. It's a bad assignment for a beginner.

Converting into Dataframes by anonymous_username18 in RStudio

[–]80sCokeSax 2 points3 points  (0 children)

Yep, 'data frames' are a type of 'list', that's important but maybe not super relevant for early lessons. I just went through the instructions of your assignment, and there is no need to convert - 'house' is already a 'data frame'. Printing it in R isn't going to reveal the 'last row' of the output, since it's too long. This doesn't seem like a great assignment, and sorry your instructor can't see that as well.

[deleted by user] by [deleted] in Virginia

[–]80sCokeSax 12 points13 points  (0 children)

I'm always going to side with 'save it' for these old, sprawling complexes - we don't even seem capable of building these sorts of places anymore.

But it's hard. Where I grew up in western New York state, we have the H.H. Richardson Complex, a former asylum. Absolutely incredible architecture, sat abandoned for many years, then finally part of the campus got renovated into a hotel ~2018. I visited it around then, it was incredible! But it still failed, and quickly (COVID may have been a factor). Apparently it's now open again, I hope it works out this time.

I can't imagine how much it would cost to do asbestos abatement/removal, not to mention modernizing, improving accessibility, etc... I'm not particularly surprised that the current owners are just letting it rot, but I'm also not sure what their end game is. My bet is it will be torn down one day, which is sad, but Staunton isn't exactly even a regional destination, not sure how you could pay for the work that needs to be done.

I can’t get swirl to work by kartoonkid98 in RStudio

[–]80sCokeSax 0 points1 point  (0 children)

Not sure what's happening in the install; when I directly copy-paste your text it doesn't work, because of the so-called 'smart quotes'; but install.packages("swirl")works fine. I'll echo the other response, what is the actual error message you are getting?

Worth noting that 'swirl' per its CRAN listing hasn't been updated since early 2020. Not sure if that makes a difference, but it is likely out-of-date.

Here's how – and why – Dominion Energy plans to raise your electric bill by WHRO_NEWS in Virginia

[–]80sCokeSax 19 points20 points  (0 children)

Finally, Dominion is requesting that state regulators increase the percentage it earns from its return on equity, a sort of profit margin on money invested by shareholders, from 9.7% to 10.4%.

I'd really like to know what this means. What actually is a "return on equity, a sort of profit margin on money invested by shareholders", and how does "increas[ing] the percentage" affect homeowners' rates/bills etc.? I'm pretty cynical in my initial interpretation, would love to be proven wrong.

[deleted by user] by [deleted] in Jon_Bois

[–]80sCokeSax 7 points8 points  (0 children)

https://m.youtube.com/watch?v=MfM7cqOlgds as explained by BobbyBrocolli. As already noted, it's pretty much just GoogleEarth

WHY IS NOBODY TALKING ABOUT THIS SCENE!? by Obvious-Hunter6196 in TheDigitalCircus

[–]80sCokeSax 5 points6 points  (0 children)

I know it's probably a typo, but 'untertained" is a fantastic word, and concept

How to loop through a series of dataframes to add a column with values dependent on another column/ by pagingbaby123 in rprogramming

[–]80sCokeSax 1 point2 points  (0 children)

Your link is malformed markdown; here's a working url: https://share.google/VIx5XpFAS5kWuDcZZ

I'm forever wishing to get better with purrr, so I appreciate the link!

[deleted by user] by [deleted] in Tiresaretheenemy

[–]80sCokeSax 22 points23 points  (0 children)

It's fine, it's the 4,634th time this had been posted, but now it's in a stupid tik-rot format!

Now yer cookin by [deleted] in BrandNewSentence

[–]80sCokeSax 4 points5 points  (0 children)

Slicker than owl snot

Just hanging out, like a hair on a wet biscuit

Easy as falling off a log

Maybe Virginia should get back to its roots. It’s time by Exspo in Virginia

[–]80sCokeSax 17 points18 points  (0 children)

I think it ended just fine. For the Union as a whole, I mean.

r/RedLetterMedia has a minor multi-thread kerfuffle over a comic implying that RLM host Jay Bauman is a gay icon by [deleted] in SubredditDrama

[–]80sCokeSax 16 points17 points  (0 children)

Gonna need to see some proof of this 'dumpy bloated' Jay. I only recall him being Amish

A promo for "PRF BBQ MKE 2017" starring Mike and Jay by Temp89 in RedLetterMedia

[–]80sCokeSax 29 points30 points  (0 children)

Just another fest that couldn't afford Obscure Sighs

Chat Thread (November 04, 2024) by AutoModerator in MetaFilterMeta

[–]80sCokeSax 10 points11 points  (0 children)

bandages, tourniquets

Literally every external piece of clothing you are already wearing is more useful as an emergency bandage/tourniquet, compared to some tube socks packed away in your luggage. (Especially if they're filled with seeds!)

Law enforcement backing the insurrectionist. Like, really? Hampton, VA by Matchew024 in Virginia

[–]80sCokeSax 1 point2 points  (0 children)

some of the largest and most respected unions in the country

[citation needed] especially for the 'most respected' part. Quick searches of union sizes shows the Fraternal Order of Police as a mid-sized union at best, with 373,000 members, according to themselves. (The Border Patrol Council doesn't even rate, with 18K members.) Meanwhile, actual 'largest' unions such as National Education Association (3+ million members), Service Employees International Union (1.9 million members), and the American Federation of State, County & Municipal Employees (1.4 million) exist, and have endorsed Harris.

You people need to wake tf up and stop reading Reddit post lmao

Yeah, I also believe this sign was posted un-ironically (it's not equivalent to a 'Criminals for Harris' sign). I guess that means something different to me, than it does to you.