I believe this query is OT here and would best be addressed by either a
careful reading of the package documentation or by contacting the package
maintainer, found by maintainer("STAR").
Cheers,
Bert
Bert Gunter
"The trouble with having an open mind is that people keep coming along and
sticking things into it."
-- Opus (aka Berkeley Breathed in his "Bloom County" comic strip )
On Fri, Nov 3, 2017 at 6:50 AM, Peng Sian Goh <bryangoh39 at hotmail.com>
wrote:
> Hi all,
>
>
> I have recently used the as.spikeTrain function in the STAR Packages but
> instead of using the CAL1S data that could be found in the package, I used
> data from other sources.
>
>
> I am able to convert the data into the required data frame but when I
> execute the as.spikeTrain function: datafile <- lapply(list_data,as.
> spikeTrain)
>
>
> It will give this error:
>
>
> Error in FUN(X[[i]], ...) :
> The elements of X[[i]] should be all different.
>
> Error in FUN(X[[i]], ...) :
> X[[i]] should have strictly increasing elements.
>
> I found out that as.spikeTrain will only work when the raw data (in txt,
> csv or any other format) doesnt contain numbers that are repeated and it
> numbers should also be arranged in increasing order.
>
> May i know why the limitation?
>
> As far as I understand by looking at other spiketrain datasets, the data
> doesnt follow the increasing trends and many have repeated numbers.
>
> Do advice.
>
> Thanks
>
>
>
> Regards,
>
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/
> posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>
[[alternative HTML version deleted]]