Home
Blogs
Questions
Jobs
Monetize

Home

About Us

Blogs

Questions

Jobs

Monetize

Post Job

banner

Questions about coalescing

Read more about coalescing

python (65.2k questions)

javascript (44.3k questions)

reactjs (22.7k questions)

java (20.8k questions)

c# (17.4k questions)

html (16.3k questions)

r (13.7k questions)

android (13k questions)

Questions - coalescing

Fill the NAs values in a dataframe based on calculation of columns in other dataframe

I have 2 dataframes. The RP and the RP2. My goal is to fill the NAs of RP columns Country_1 and Country_2 based on the conditions below: 1.If a cell of RP has already value leave it as it is. 2.If it ...
test-img

firmo23

r

dataframe

tibble

coalescing

Votes: 0

Answers: 1

Latest Answer

library(dplyr) RP2 %>% mutate_at(c("Country_1", "Country_2"), list(PFa = ~. * PFaverage / 100)) %>% select(TreatmenArea, Subarea, contains("PFa"...
test-img

M--ßţřịƙïñĝ

Posts

Questions

Blogs

Jobs

The ultimate platform for coders and IT specialists

About

  • Company
  • Support

  • Platform

  • Terms & Conditions
  • Privacy statement
  • Cookie policy
  • Cookie option
  • OnlyCoders © 2025  |  All rights reserved