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)
Remove a column in dataframe if a particular value meets a condition in R
After a lot of research, I'm struggling to do what should be straightforward in R. I am trying to delete columns only (not rows) if a value from a particular row and particular column meets a conditio...
will brown
Votes: 0
Answers: 2
Fill Columns with TRUE or FALSE based on other Dataframe
Unfortunately I have a problem and would have to ask for your support.
I have a list of the most popular pet names. From the dataframe x, it appears that "Jerry" is the most popular mouse na...
RKF
Votes: 0
Answers: 4
How to create a new column in R where arithmetic is applied on opposite values given a group
Suppose the following data frame:
group
value1
value2
1
16
2
1
20
4
2
12
2
2
8
6
3
10
7
3
14
5
I want to create a table that divides value2 over value1. However, I want it to be ...
J_sdata
Votes: 0
Answers: 2
Create categorical variable/data subset with case matching
I have a dataset like this:
structure(list(year = c(2019, 2019, 2019, 2019, 2019, 2019),
venue = c("Z", "Z", "Z", "Z", "O", "D"), HO = ...
Cristiano
Votes: 0
Answers: 1