Search
 
SCRIPT & CODE EXAMPLE
 

R

table() in R

# R Program to create 
# a tabular representation of data
  
# Creating a vector
vec = c(2, 4, 3, 1, 2, 3, 2, 1, 4, 2) 
  
# Calling table() Function
table(vec)

Output:

# vec
# 1 2 3 4 
# 2 4 2 2 
#by faycal elourrat  ^.^
Comment

PREVIOUS NEXT
Code Example
R :: count number of columns in r 
R :: read file in r EOF within quoted string 
R :: strtrim in r 
R :: Reorder bars in geom_bar ggplot2 by value 
R :: find q1, q3 and iqr in r 
R :: color code in R 
R :: make the first row as header in r 
R :: if a condition is true skip loop r 
R :: how to filter a vector by location in r 
R :: count r 
R :: rstudio github upload 
R :: number of days in a data set in r 
R :: how to enter character string with quotes in r 
R :: pairwise combinations r 
R :: cut function R 
R :: excel date format r 
R :: combine scripts into a pipeline 
R :: meaning of %% R 
R :: emf from r plot 
Rust :: how to cahce clean cargo 
Rust :: how to concatenate two &str in rust 
Rust :: rust write to file 
Rust :: rust trait 
Rust :: run or compile rust code 
Rust :: armanriazi•rust•thread•spawin•move•capture 
Rust :: armanriazi•rust•orphan•rule 
Rust :: overwritting print on same line rust 
Rust :: armanriazi•rust•ref•move 
Rust :: rust compiler error 
Lua :: lua not equal 
ADD CONTENT
Topic
Content
Source link
Name
1+2 =