코딩, 딱 지금이 시작할때! (코딱지)

[R] 조건에 따라 데이터프레임 값 바꾸기

Ufungi 2024. 5. 22. 13:50

filter 함수를 이용하면 원래 테이블을 바꾸지는 못하기 때문에 아래 링크 3,4 를 사용

 

 

Replace Values Based on Condition in R

There are multiple ways to replace column values based on conditions in an R DataFrame. Conditionally updating columns is a very basic thing we do all the

sparkbyexamples.com