Skip to content
This repository was archived by the owner on Jan 19, 2024. It is now read-only.
This repository was archived by the owner on Jan 19, 2024. It is now read-only.

Error in as.POSIXlt.character #7

@sssungwon

Description

@sssungwon

Hi Ben
I'm using your code well for smps analysis thank you for all.

i have some problem with prepare_data progress.

Update: converting data from wide to long format...
Error in as.POSIXlt.character(x, tz, ...) :
character string is not in a standard unambiguous format

this is my data for smps analsysis. can i know what is problem with my data?
my data have some NA values so i replace to average values with "sapply"
this is my code for NA values
KAR_SMPS_D <- as.data.frame(KAR_SMPS)
sapply(KAR_SMPS_D, function(x) mean(x, na.rm=T))

new_KAR_SMPS<-sapply(KAR_SMPS_D, function(x) ifelse(is.na(x), mean(x,na.rm=TRUE),x))

KAR_SMPS_2<-as.data.frame(new_KAR_SMPS)
prepared_data<-prepare_data(KAR_SMPS_2)
thank you

KAR_SMPS.csv

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