[adegenet-forum] Random error message

Spencer Bruce goatsrunfaster at gmail.com
Fri Nov 7 15:56:12 CET 2014


Thanks! How embarrassing!

On Fri, Nov 7, 2014 at 9:55 AM, Caitlin Collins <caitiecollins at gmail.com>
wrote:

> Hi there,
>
> I'm guessing the previously lines of code didn't look exaaactly the
> same... You're missing a closing curved bracket on the right end of sample.
> Should be:
>
> randomF12Gen15 <- randomF12Gen14[sample(nrow(randomF12Gen14$tab), 199 *) *,
> ]
>
> See if that works now?
>
> Best,
> Caitlin.
>
> On Fri, Nov 7, 2014 at 2:47 PM, Spencer Bruce <goatsrunfaster at gmail.com>
> wrote:
>
>> Hello All,
>>
>> I'm work with a large set of data where I need to continuously randomly
>> sample individuals, and keep getting random error messages, seemingly for
>> no reason. Example below:
>>
>> > randomF12Gen15 <- randomF12Gen14[sample(nrow(randomF12Gen14$tab), 199, ]
>>
>> Error: unexpected ']' in "randomF12Gen15 <-
>> randomF12Gen14[sample(nrow(randomF12Gen14$tab), 199, ]"
>>
>> This does not make sense given that I ran multiple lines of code before
>> it that look exactly the same.
>>
>> Any idea why this might be happening?
>>
>> --
>> Spencer A Bruce
>> 113 Hill St.
>> Troy, NY 12180
>> 518 225 0787
>>
>> _______________________________________________
>> adegenet-forum mailing list
>> adegenet-forum at lists.r-forge.r-project.org
>>
>> https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/adegenet-forum
>>
>
>


-- 
Spencer A Bruce
113 Hill St.
Troy, NY 12180
518 225 0787
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/adegenet-forum/attachments/20141107/a56209b5/attachment.html>


More information about the adegenet-forum mailing list