Question: I am attempting to return the hidden input field value above a checked checkbox. As it is at the moment I am finding a value of `undefined`.

This is what I have tried.

```
var checkedTopics = document.getElementsByName("chkRelatedTopics");
for (var i = 0; i < checkedTopics.length; i++) {
    if (checkedTopics[i].checked) {
        var uniqueKeyTopic = $(this).parent().
                       find("input[name=hidTopicsDomain]").val();
        console.log(uniqueKeyTopic);
    }

}

```

this is the markup

```
{{each Items}}
                <tr>

                    <td>
                        <input type='hidden' 
                              name='hidTopicsDomain' value='${DomainObjectKey}'/>
                        <input type='checkbox' 
                                     name='chkRelatedTopics' value='${subject}'/>
                    </td>
                    <td><label id='labRelatedTopicDisplay'>${subject}</label>
                </tr>

            {{/each}}

```

How can I retrieve this hidden `input field` value?

Thanks

Answer: 
You can use the `zoo` package. The code below was writen to be reproducible but in actual practice `text="Lines"` would be replaced with `file="fileName"`. Also as shown in the question the Date field is ambiguous and you may need to adjust the percent codes if its not day/month/year.

```
library(zoo)

Lines <- "Date,Time,Value
04/01/2010,07:10,17159
04/01/2010,07:20,4877
04/01/2010,07:30,6078
04/01/2010,07:40,3105
"

z <- read.zoo(text = Lines, sep = ",", header = TRUE, 
       index = 1:2, tz = "", format = "%d/%m/%Y %H:%M")

```

which gives:

```
> z
2010-01-04 07:10:00 2010-01-04 07:20:00 2010-01-04 07:30:00 2010-01-04 07:40:00 
              17159                4877                6078                3105 

```
In addition to what has been mentioned as the answer, you can check this link (<http://eclr.humanities.manchester.ac.uk/index.php/R_TSplots>) which discusses the use of 'xts' in this case.
I hope it helps.