DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
8+2 =
Submit