Search
 
SCRIPT & CODE EXAMPLE
 

R

subset row r

# df[row,column]

df[1, ]   # select first row and all columns from df
df[ ,8]   # select all rows for column 8 from df
df[2,5]   # select row 2, column 5 from df 
df[1:5, ] # select rows 1 to 5 and all columns from df 
Comment

PREVIOUS NEXT
Code Example
R :: how to summarise data but keep columns R 
R :: string concatination R 
R :: r function syntax 
R :: find row with na r 
R :: table() in r 
R :: how to link world bank data into r 
R :: r string split 
R :: finding index of element in r 
R :: make the first row as header in r 
R :: how to split unsplit data frame in R 
R :: log likelihood in r 
R :: unite r function how to include in dataframe 
R :: ggplot glm 
R :: r glm select all variables 
R :: r read.csv tab delimited 
R :: get plot title over two lines R 
R :: rstudio refactor hotkey 
R :: generate random values binomial law in r 
R :: How to remove duplicates based on the combinations of two columns r 
R :: how to change column names in r 
Rust :: whats the difference between Iter and into_iter rust 
Rust :: rust case 
Rust :: actix web hello world 
Rust :: Split text on several separators 
Rust :: rust comment types 
Rust :: rust•armanriazi•type•wraper•mutable 
Rust :: armanriazi•rust•reference•dangle 
Rust :: rust•armanriazi•cast•try_into•unwrap 
Rust :: armanriazi•rust•trait•blanket 
Lua :: random string generator lua 
ADD CONTENT
Topic
Content
Source link
Name
4+9 =