Skip to content

Error: Column 销售时间 is a date/time and must be stored as POSIXct, not POSIXlt. #1

@yangdonghan50

Description

@yangdonghan50

#合并单订单中重复商品;子数据集1valdata
valdata<-makdata %>%

  • select(c(销售数量,销售金额)) %>%
  • aggregate(by=list(单据号=makdata$单据号,商品货号=makdata$商品货号),FUN=sum) %>%
  • arrange(单据号) %>%
  • merge(unique(makdata[,1:5]),by=c("单据号","商品货号"),all=FALSE) %>%
  • mutate(销售单价=销售金额/销售数量)
    Error: Column 销售时间 is a date/time and must be stored as POSIXct, not POSIXlt.
    Call rlang::last_error() to see a backtrace

请问这是什么原因呢 如何修改 ‘销售时间’ 的格式?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions