python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
R categorize numeric value using case_when
I have a data with the variable id as a unique origin point, and the variable distance_km that tells us the distance to the nearest point of interest. I need to a better way classify each id as being ...
dano_
Votes: 0
Answers: 2
Using purrr to calculate differences across multiple columns
I'm trying to use purrr to calculate the difference scores between multiple fitness assessments.
Example dataframe would be like so:
PreA <- c(1, 4, 5, 7, 8, 12)
PostA = c(2, 6, 10, 14, 16, NA)
Pre...
TibialCuriosity
Votes: 0
Answers: 1
Applying a function using elements within a list take 2
I attempted this question yesterday(Applying a function using elements within a list) but my reprex produced the wrong data structure and unfortunately the suggestions didn't work for my actual datase...
user12176714
Votes: 0
Answers: 1
How to loop through two named lists and write non-homogenous data to a single xlsx sheet?
Say I have two lists like this:
listA <- list(
df1 <- data.frame(
Group = c('A', 'B'),
Value = c(12, 10)
),
df2 <- data.frame(
Group = c('A', 'B', 'C'),
Value = c(9, 8, ...
Natasha R.
Votes: 0
Answers: 1