Is there a way to use find and replace for multiple lines at once in R or RStudio?
Here is the data I'm using for this example:
# example data
## starting data
### mtcars
head(mtcars)
str(mtcars)
colnames(mtcars)
## ending data
### AirPassengers
head(AirPassengers)
length(AirPassengers)
is.na(AirPassengers)
I know I can just use the find and replace buttons to change mtcars
to AirPassengers
by doing so 1 line at a time or by highlighting/copying/pasting, but I want to know if it's possible to change multiple lines at once in R or RStudio.
Thanks ahead of time.
EDIT 1: Restructured question to make answer more clear.