I have a date-time stamp column and i was able to convert the column to R date-time format, in a bid for me to split the column, i created 2 new columns with the date information in one and time information in the order. Now I have found a way to split the original Date...Timestamp column so i want to drop the 2 new columns but I'm getting this error.
I tried this code:
newpHdata = subset(newpHdata, select = -c(newpHdata$Dates))
newpHdata = subset(newpHdata, select = -c(newpHdata$Time))
And I'm getting this error
> newpHdata = subset(newpHdata, select = -c(newpHdata$Dates))
Error in `-.Date`(c(newpHdata$Dates)) :
unary - is not defined for "Date" objects
> newpHdata = subset(newpHdata, select = -c(newpHdata$Time))
Error in -c(newpHdata$Time) : invalid argument to unary operator