[R] Sampling problems
petr.pikal at precheza.cz
Thu Mar 8 10:49:20 CET 2012
I have only faint idea what was you problem as there is no context in you
message but maybe
> Hi, thank you but it does work for vectors and matrix but not
> gives me this message error:
> MeanA <- read.csv("MeanAmf.csv",header=T)
> mysample <- MeanA[sample(1:nrow(MeanA), 20, replace=FALSE),]
> Error in `[.default`(MeanA, -mysample) : invalid subscript type 'list'
> In Ops.factor(left) : - not meaningful for factors
> Any other way?
> View this message in context: http://r.789695.n4.nabble.com/Sampling-
> Sent from the R help mailing list archive at Nabble.com.
> R-help at r-project.org mailing list
> PLEASE do read the posting guide
> and provide commented, minimal, self-contained, reproducible code.
More information about the R-help