我正在處理一個大型數據集,我想查找所有站點通用的日期。查找日期對於數據框中的所有站點通用
site <- c(1,1,1,2,2,2,2,3,3,4,4,4)
date <- c("4th Nov","5th Nov","6th Nov","5th Nov","6th Nov","7th Nov","8th Nov","5th Nov","6th Nov","6th Nov","7th Nov","8th Nov")
temperature <- c(3,5,7,3,6,8,5,3,5,7,8,9)
data <- data.frame(site,date,temperature)
common.dates(data)
[1] "6th Nov"
任何幫助,將不勝感激。謝謝!
請定義「所有網站通用」。 – 2013-03-18 15:42:28
這個資料中的所有地點沒有共同的日期! – 2013-03-18 15:44:11
感謝您的注意。 – Brian 2013-03-18 15:47:37