Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

aggregate in r

df_meas$Month <- as.Date(cut(df_meas$Time, breaks="month"))

# Monthly value
monthly_Value <- aggregate(df_meas$Value ~ df_meas$Month, data=df_meas, median) # mean
names(monthly_Value) <- c("Month","Value")
 
PREVIOUS NEXT
Tagged: #aggregate
ADD COMMENT
Topic
Name
7+5 =