R: Set time value into data frame cell
I'm trying to set a time value into a data frame:

    ps = data.frame(t(rep(NA, 2)))
    ps[1,1] = strptime('10:30:00', '%H:%M:%S')

but I get the error:

    provided 9 variables to replace 1 variables

since a time value is a list (?) in R it thinks I'm trying to set 9 columns, when I really just want to set the one column to that class.

What can I do to make this set properly?
R: Set time value into data frame cell
===

I'm trying to set a time value into a data frame:

    ps = data.frame(t(rep(NA, 2)))
    ps[1,1] = strptime('10:30:00', '%H:%M:%S')

but I get the error:

    provided 9 variables to replace 1 variables

since a time value is a list (?) in R it thinks I'm trying to set 9 columns, when I really just want to set the one column to that class.

What can I do to make this set properly?