Trying to merge two tables, using time stamps as keys in outerjoin(), getting ‘incorrect data type or missing argument’ error.
Hi!
I have two tables, each with two rows. One is ‘raw’, and has each possible time stamp and corresponding data. The other is ‘valid’, and only has time stamps corresponding to valid data. I want to have a third table, that contains all time stamps but NaNs where there isn’t both raw and valid data.
So, for example, these would go into outerjoin()
valid = ‘t_ms’ ‘val_dat’
[ 1 55
2 50
4 52 ]
raw = [ 1 49
2 37
3 51
4 52 ]
And I’d get a table that’s the length of ‘raw’, and ‘valid’ containing NaNs. Instead, I get the error:
‘Check for incorrect argument data type or missing argument in call to outerjoin.’
I’ve quadruple checked that I’m inputting tables, and the key variables have the exact same name, and I’ve tried pretty much every optional argument into outerjoin() I can, no dice.
Any help would be much appreciated, embarrassingly enough I’m stumped!
ThanksHi!
I have two tables, each with two rows. One is ‘raw’, and has each possible time stamp and corresponding data. The other is ‘valid’, and only has time stamps corresponding to valid data. I want to have a third table, that contains all time stamps but NaNs where there isn’t both raw and valid data.
So, for example, these would go into outerjoin()
valid = ‘t_ms’ ‘val_dat’
[ 1 55
2 50
4 52 ]
raw = [ 1 49
2 37
3 51
4 52 ]
And I’d get a table that’s the length of ‘raw’, and ‘valid’ containing NaNs. Instead, I get the error:
‘Check for incorrect argument data type or missing argument in call to outerjoin.’
I’ve quadruple checked that I’m inputting tables, and the key variables have the exact same name, and I’ve tried pretty much every optional argument into outerjoin() I can, no dice.
Any help would be much appreciated, embarrassingly enough I’m stumped!
Thanks Hi!
I have two tables, each with two rows. One is ‘raw’, and has each possible time stamp and corresponding data. The other is ‘valid’, and only has time stamps corresponding to valid data. I want to have a third table, that contains all time stamps but NaNs where there isn’t both raw and valid data.
So, for example, these would go into outerjoin()
valid = ‘t_ms’ ‘val_dat’
[ 1 55
2 50
4 52 ]
raw = [ 1 49
2 37
3 51
4 52 ]
And I’d get a table that’s the length of ‘raw’, and ‘valid’ containing NaNs. Instead, I get the error:
‘Check for incorrect argument data type or missing argument in call to outerjoin.’
I’ve quadruple checked that I’m inputting tables, and the key variables have the exact same name, and I’ve tried pretty much every optional argument into outerjoin() I can, no dice.
Any help would be much appreciated, embarrassingly enough I’m stumped!
Thanks outerjoin, tables, datatype MATLAB Answers — New Questions