Search
 
SCRIPT & CODE EXAMPLE
 

R

r create intervals cut

> a <- runif(100)
> cut(a, seq(from = 0, to = 1, by = 0.2))
  [1] (0,0.2]   (0.8,1]   (0.8,1]   (0.6,0.8] (0.6,0.8] (0,0.2]   (0.6,0.8]
  [8] (0.2,0.4] (0.8,1]   (0.4,0.6] (0.8,1]   (0.4,0.6] (0.8,1]   (0.6,0.8]
 [15] (0.8,1]   (0,0.2]   (0.8,1]   (0.8,1]   (0.6,0.8] (0.6,0.8] (0.2,0.4]
 [22] (0.4,0.6] (0.6,0.8] (0.2,0.4] (0.6,0.8] (0.6,0.8] (0.6,0.8] (0,0.2]  
 [29] (0,0.2]   (0.2,0.4] (0,0.2]   (0,0.2]   (0,0.2]   (0,0.2]   (0,0.2]  
 [36] (0.6,0.8] (0.2,0.4] (0.6,0.8] (0.6,0.8] (0.8,1]   (0.2,0.4] (0.4,0.6]
 [43] (0.4,0.6] (0.6,0.8] (0.2,0.4] (0.6,0.8] (0.6,0.8] (0.6,0.8] (0.4,0.6]
 [50] (0.6,0.8] (0.6,0.8] (0,0.2]   (0.2,0.4] (0.8,1]   (0.8,1]   (0.8,1]  
 [57] (0.6,0.8] (0.2,0.4] (0.2,0.4] (0,0.2]   (0.8,1]   (0.8,1]   (0.2,0.4]
 [64] (0.8,1]   (0.2,0.4] (0.4,0.6] (0.8,1]   (0,0.2]   (0.4,0.6] (0,0.2]  
 [71] (0.4,0.6] (0.8,1]   (0.6,0.8] (0.4,0.6] (0,0.2]   (0.2,0.4] (0.4,0.6]
 [78] (0,0.2]   (0.2,0.4] (0.8,1]   (0,0.2]   (0.4,0.6] (0.8,1]   (0,0.2]  
 [85] (0,0.2]   (0.2,0.4] (0.2,0.4] (0.4,0.6] (0.8,1]   (0.2,0.4] (0,0.2]  
 [92] (0.6,0.8] (0.2,0.4] (0.2,0.4] (0.8,1]   (0.2,0.4] (0.4,0.6] (0,0.2]  
 [99] (0,0.2]   (0,0.2]  
Levels: (0,0.2] (0.2,0.4] (0.4,0.6] (0.6,0.8] (0.8,1]
Comment

PREVIOUS NEXT
Code Example
R :: r - split the data in queal ranges 
R :: dplyr to vector 
R :: How to use group_by inside a function? 
R :: r select columns by name 
R :: pairing in r 
R :: add comma every 3 digits in r 
R :: base R change axis line width 
R :: convert ratio to numeric in r 
R :: timestamp conversion from excel R 
R :: how to get the r2 value in r 
R :: conditional mean statement r 
Rust :: rust dictionary 
Rust :: sort a vec<f32 rust 
Rust :: rust request get headers 
Rust :: rust reverse an array 
Rust :: actix web 
Rust :: rust String to &str 
Rust :: rust get input on the same line as question 
Rust :: what is () in rust 
Rust :: armanriazi•rust•box•vs•refcell 
Rust :: armanriazi•rust•static 
Rust :: rust fill vector with range 
Rust :: rust How to use if let statement with conditions? 
Rust :: search in dir rust 
Lua :: kerbal space program 2 
Lua :: luau region3 
Lua :: roblox how to loop through all players 
Lua :: roblox go thru all players 
Lua :: how to get the length of a table in lua 
Lua :: roblox text color 
ADD CONTENT
Topic
Content
Source link
Name
2+9 =