Group Abstract Group Abstract

Message Boards Message Boards

0
|
3.8K Views
|
3 Replies
|
2 Total Likes
View groups...
Share
Share this post:

Using a conditional function with TimeSeriesThread

Posted 4 years ago
POSTED BY: Clarisse Wagner
3 Replies

Thank you very much!

POSTED BY: Clarisse Wagner
Posted 4 years ago

Probably not related to your question, but I think you can simplify

MyFunction[First[#],Part[#,2],Last[#]]&

to be just

Apply[MyFunction]
POSTED BY: Eric Rimbey
Posted 4 years ago

I haven't checked your MyFunction for correctness, but the thing that jumps out at me is the Take[#,2] expression. That will produce a List. I think what you probably wanted was Part[#,2].

POSTED BY: Eric Rimbey
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard