Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR R

r change column value conditionally

df <- within(df, est[b==0] <- (a[b==0]-5)/2.533)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #change #column #conditionally
ADD COMMENT
Topic
Name
8+2 =