Search
 
SCRIPT & CODE EXAMPLE
 

R

how to select certain rows containing a word in r

irisSubset <- iris[grep("osa", iris$Species), ]
head(irisSubset)
#   Sepal.Length Sepal.Width Petal.Length Petal.Width Species
# 1          5.1         3.5          1.4         0.2  setosa
# 2          4.9         3.0          1.4         0.2  setosa
# 3          4.7         3.2          1.3         0.2  setosa
# 4          4.6         3.1          1.5         0.2  setosa
# 5          5.0         3.6          1.4         0.2  setosa
# 6          5.4         3.9          1.7         0.4  setosa
Comment

PREVIOUS NEXT
Code Example
R :: delete rows by rowname in R 
R :: name elements in vector r 
R :: types of vectors in r 
R :: rename variables in r 
R :: diff days R lubridate 
R :: grid.arrange 
R :: how to return the date with only the day in it in r 
R :: r remove all string before : in r data frame 
R :: how to itterate through a character in r 
R :: r: rename a column 
R :: r replace na with 0 
R :: error installing devtools r 
R :: how to summarise data but keep columns R 
R :: regression in r with many variables 
R :: r string split 
R :: how to change order in bar chart r 
R :: open xlsx with r 
R :: unite r function how to include in dataframe 
R :: rename variable in r dplyr 
R :: alpha 2 codes in r 
R :: cut function R 
R :: dotted y intercept line in ggplot 
R :: ways to examine model in r 
R :: Iteration in R 
Rust :: whats the difference between Iter and into_iter rust 
Rust :: rust comment 
Rust :: rust hashmap 
Rust :: custom errors rust 
Rust :: rust•armanriazi•concept•semantic 
Rust :: Read a floating point number from stdin 
ADD CONTENT
Topic
Content
Source link
Name
1+6 =