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
Finding Identical Rows in Multiple Datasets
I am trying to find out if 3 datasets (df1, df2, df3) have any common rows (i.e. entire row is a duplicate).
I figured out how to do this for pairs of 2 datasets:
df1 = data.frame(id = c(1,2,3), names...
stats_noob
Votes: 0
Answers: 4
selecting columns from a set of names with dplyr
I'm attempting to make subsets of a large data frame based on whether the column names are in an externally defined set. So I'm starting with something like:
> x <- c(1,2,3)
> y <- c("...
Michael Clauss
Votes: 0
Answers: 1
Using dplyr to remove duplicates conditionally
I have a dataset in longformat that contains both visit and measure dates for each ID. What I want is to remove the duplicate visit dates for each ID conditionally, namely:
IF visit date - measure dat...
Orangemarmalade
Votes: 0
Answers: 1