benmarwick / smps

time series colour contour plots of data from Scanning Mobility Particle Sizer (SMPS) data
Other
7 stars 6 forks source link

Error in as.POSIXlt.character #7

Open sssungwon opened 2 years ago

sssungwon commented 2 years ago

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