#baser

Steven P. Sanderson II, MPHspsanderson.com@bsky.brid.gy
2025-06-09

I've talked about creating data.frames and tibbles before, but it is an important topic so I have covered it again. This time specifically from the perspective of creating them from vectors. Post: www.spsanderson.com/steveondata/... #R #RStats #tibble #dplyr #tidyverse #dataframe #baseR #blog

I've talked about creating data.frames and tibbles before, but it is an important topic so I have covered it again. This time specifically from the perspective of creating them from vectors.

Post: https://www.spsanderson.com/steveondata/posts/2025-06-09/

#R #RStats #tibble #dplyr #tidyverse #dataframe #baseR #blog #Technology
Steven Sandersonspsanderson@rstats.me
2025-06-09

I've talked about creating data.frames and tibbles before, but it is an important topic so I have covered it again. This time specifically from the perspective of creating them from vectors.

Post: spsanderson.com/steveondata/po

#R #RStats #tibble #dplyr #tidyverse #dataframe #baseR #blog #Technology

I've talked about creating data.frames and tibbles before, but it is an important topic so I have covered it again. This time specifically from the perspective of creating them from vectors.

Post: https://www.spsanderson.com/steveondata/posts/2025-06-09/

#R #RStats #tibble #dplyr #tidyverse #dataframe #baseR #blog #Technology
Steven P. Sanderson II, MPHstevensanderson@mstdn.social
2025-06-09

I've talked about creating data.frames and tibbles before, but it is an important topic so I have covered it again. This time specifically from the perspective of creating them from vectors.

Post: spsanderson.com/steveondata/po

#R #RStats #tibble #dplyr #tidyverse #dataframe #baseR #blog #Technology

I've talked about creating data.frames and tibbles before, but it is an important topic so I have covered it again. This time specifically from the perspective of creating them from vectors.

Post: https://www.spsanderson.com/steveondata/posts/2025-06-09/

#R #RStats #tibble #dplyr #tidyverse #dataframe #baseR
2025-02-07

# objetivo: Actualizar script en el tinyverso

# contexto: Gráfico millas en función del peso por cilindro

# entrada : mtcars

# plot : Con leyenda sin esfuerzo
# - leyenda continua ?

#tinyplot #rstats #Lecheria #ANZ #anzoátegui #CostaRica #tinyverso #baseR #Palette

Steven Sandersonspsanderson@rstats.me
2025-01-28

Are duplicates messing up your R analysis? 😱 Our latest blog post offers practical solutions to clean your data!

Dive into the details at spsanderson.com/steveondata/po and tell us how you handle duplicates!

#R #RStats #Programming #Rdata #Clean #Blog #RProgramming #dplyr #baser #datatable

**Alt Text:** A code snippet displayed in a dark-themed editor showcasing three methods to remove duplicate rows in R. The methods include: Base R using `unique(df)` and `df[!duplicated(df[c("id", "value")]), ]`, dplyr using `df %>% distinct()` and `df %>% distinct(id, value, .keep_all = TRUE)`, and data.table using `unique(dt)`. The code is neatly formatted and color-coded for readability.
Steven P. Sanderson II, MPHstevensanderson@mstdn.social
2025-01-28

Are duplicates messing up your R analysis? 😱 Our latest blog post offers practical solutions to clean your data!

Dive into the details at spsanderson.com/steveondata/po and tell us how you handle duplicates!

#R #RStats #Programming #Rdata #Clean #Blog #RProgramming #dplyr #baser #datatable

**Alt Text:** A code snippet displayed in a dark-themed editor showcasing three methods to remove duplicate rows in R. The methods include: Base R using `unique(df)` and `df[!duplicated(df[c("id", "value")]), ]`, dplyr using `df %>% distinct()` and `df %>% distinct(id, value, .keep_all = TRUE)`, and data.table using `unique(dt)`. The code is neatly formatted and color-coded for readability.
2025-01-14

I posted a new introduction to surface #gifti and volume #NIfTI #fMRI data at mvpa.blogspot.com/2025/01/intr.

The material is mostly general, with all examples using #baseR #rstats code; it's accompanied by a major update to my gifti #knitr tutorial.

I hope these will be useful to folks getting started with #neuroimaging datasets, as well as anyone looking for example scripts for reading, plotting, and manipulating (human fMRI) brain data files.

Steven P. Sanderson II, MPHstevensanderson@mstdn.social
2024-12-19

Missing data slowing you down?

😱 Discover how R's complete.cases() can help you filter out incomplete rows and keep your analysis on track. Includes practical examples you can try today! 🧼✨

👉 spsanderson.com/steveondata/po

#R #RStats #Programming #Clean #Data #Blog #BaseR #RProgramming

A code snippet in R creating a vector `x` with missing values (`NA`) and using `complete.cases(x)` to check which elements are non-missing, outputting `TRUE TRUE FALSE TRUE TRUE FALSE`.
2024-01-09

Uden offentlig debat har regeringen indgået en aftale med USA, der tillader amerikanske baser på dansk jord. USA får med aftalen eksklusiv kontrol over områder i Danmark, hvor de kan opbevare våben og foretage sig ting, uden at danske myndigheder har nogen ret til inspektion eller kontrol, skriver Trine Pertou Mach i denne blog.

#USA #dkpol #baser #dkmedier #Arbejderen

arbejderen.dk/blog/forsvarsaft

2023-12-31

What does your batting average need to be to be a hall of fame baseball player?

Patrick Ward and I look at this among other questions using only Base R plotting tools, including making a plot interactive!

#rstats #BaseBall #baseR

Bit.ly/TidyX_Ep168

2023-12-14
2023-12-10

Base R plots - oft overlooked for the powerful ggplot2- offer a surprising amount of power if you take the time to learn it!

Join Patrick Ward and I as we talk through making scatter plots in #rstats !

#baseR #scatterplots #dataviz

Bit.ly/TidyX_Ep165

2023-12-08

Svenska ledare är vilseledda och saknar verklighetskontakt och Putin hyllas i arabvärlden i Omvärldsanalys 71

swebbtv.se/videos/watch/9c7586

2023-07-21

@StatGenDan Thanks for linking this. It looks really interesting, and will form my "reward reading" when I'm done studying today.

(that's right - I reward study by doing more study lol)

I can't say whether or not I'll agree with the entire argument, but I can say that learning #baseR before introducing other packages suited me very well.

2023-07-18

@edyhsgr Potentially controversial, but I agree!

I was annoyed when the code demos for a particular uni course relied on #tidyR, because I felt that I hadn't learned enough #baseR yet.

So I stuck to base for my big assignment, only bringing in other packages where needed. It's not that I dislike tidy; it's just that I want to be in control of the packages - I don't want the packages to be in control of me.

2023-04-14

Get unique rows of a dataframe in #rstats, but ignore some columns (e.g., ID in this df)?

df1 <-
data.frame(
name = c("apple", "apple", "apple", "orange", "orange"),
ID = c(1, 2, 3, 4, 5),
is_fruit = c("yes", "yes", "yes", "yes", "yes")
)

If you're a #baseR fan like me, you might want:

df1[!duplicated(df1[!names(df1) %in% c("ID")]), ]

Screenshot of the R code described in the toot. It shows that the output of the first piece of code is a dataframe with five rows and the columns "name" (three "apple", two "orange"), "ID" (1-5) and "is_fruit" (all "yes"). The second piece of code reduces the dataframe to the unique rows while ignoring the column "ID". I.e., the resulting output is a dataframe with two rows: One row with name = "apple", ID = 1 and is_fruit = "yes", and one row with name = "orange", ID = 4 and is_fruit = "yes".
2023-03-31

Major thanks to @tannguyen for spotting and reporting a bug in my niftiPlottingFunctions.R plot.volume() function!

The code at osf.io/k8u2c is updated; see mvpa.blogspot.com/2023/03/bugf for info and examples.

(This #baseR #rstats function is for plotting #fMRI #nifti images in #knitr documents.)

... it is painful to find out there was a bug, but so much better to fix it than to continue its propagation! I am grateful to @tannguyen and hope anyone else seeing something odd lets me know.

Client Info

Server: https://mastodon.social
Version: 2025.04
Repository: https://github.com/cyevgeniy/lmst