Search
 
SCRIPT & CODE EXAMPLE
 

R

harmonic mean in r

# using psych package 
library(psych) 
harmonic.mean(x,na.rm=TRUE,zero=TRUE)

# base R 
a = c(vector) 
1/mean(1/a) #harmonic mean calculation
Comment

PREVIOUS NEXT
Code Example
R :: check type of column in r 
R :: r convert string to list of characters 
R :: if not i startswith r 
R :: How to Export a DataFrame to Excel File in R 
R :: i have library(dplyr) but i still get Error in select(., 
R :: r dataframe filter endswith 
R :: str_detect multiple patterns 
R :: plot3d in r 
R :: r dataframe column factor 
R :: create dataframe or table in r 
R :: Write data from R to clipboard 
R :: sort in descending order in r 
R :: how to change the numbering of rows in r 
R :: r: rename a column 
R :: gather function in r 
R :: filter only NA column in R 
R :: r first row by group 
R :: for loop in R dictionary 
R :: how to randomly select R 
R :: how to remove columns in a table in r 
R :: detect factors in r 
R :: r select columns by vector of names 
R :: logistic inverse CDF in r 
R :: detect rank deficient in r 
R :: Non-redundant version of expand.grid 
R :: Iteration in R 
Rust :: rust value of pi 
Rust :: rust .trim() 
Rust :: rust global variables 
Rust :: armanriazi•rust•smartpointer•box 
ADD CONTENT
Topic
Content
Source link
Name
4+2 =