Select Language

AI社区

公开数据集

纽约城市出租车行程距离

纽约城市出租车行程距离

300.74M
191 浏览
0 喜欢
6 次下载
0 条讨论
Travel Classification

数据结构 ? 300.74M

    Data Structure ?

    * 以上分析是由系统提取分析形成的结果,具体实际数据为准。

    README.md

    Context I want to use haversine distance and approximate zip-code of trips in NY City Taxi Trips Durations project. Content (https://www.kaggle.com/c/nyc-taxi-trip-duration) Acknowledgements **geosphere** package in R
    **zipcode** package in R Inspiration If you think this data is useful for you and not able to download it. You can re-compute the same using below few lines of code. library(data.table)
    library(geosphere)
    library(zipcode)
    ** Reading data **
    train <- fread("train.csv")
    test <- fread("test.csv")
    ** Computing haversine distance **
    train[, distance := distHaversine(c(pickup_longitude, pickup_latitude), c(dropoff_longitude, dropoff_latitude)), by = id]
    test[, distance := distHaversine(c(pickup_longitude, pickup_latitude), c(dropoff_longitude, dropoff_latitude)), by = id]
    ** Assigning approximate zipcode using euclidean distance between the locations **
    data("zipcode")
    zipcode <- as.data.table(zipcode)
    zipcode <- zipcode[state == "NY
    ×

    帕依提提提温馨提示

    该数据集正在整理中,为您准备了其他渠道,请您使用

    注:部分数据正在处理中,未能直接提供下载,还请大家理解和支持。
    暂无相关内容。
    暂无相关内容。
    • 分享你的想法
    去分享你的想法~~

    全部内容

      欢迎交流分享
      开始分享您的观点和意见,和大家一起交流分享.
    所需积分:0 去赚积分?
    • 191浏览
    • 6下载
    • 0点赞
    • 收藏
    • 分享