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))
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