Displaying 3 results from an estimated 3 matches for "gagurine".
2006 Dec 26
2
sequential row selection in dataframe
Dear all;
I'm wondering if there is any 'efficient' approach for selecting a
sample of 'every nth rows' from a dataframe. For example, let's use
the dataframe GAGurine in MASS library:
> length(GAGurine[,1])
[1] 314
# select an 75% of the dataset, i.e. = 236 rows, every 2 rows starting
from row 1
> test<-GAGurine[seq(1,314,2),]
> length(test[,1])
[1] 157
# so, I still need another 79 rows, one way could be:
test2<-GAGurine[-seq(1,314,2),]
> l...
2003 Apr 09
1
'Apparently' trouble with name spaces and Sweave...
...Error in namespaceExport(ns, exports) : undefined exports: abbey,
accdeaths, Aids2, Animals, anorexia, austres, bacteria, beav1, beav2,
biopsy, birthwt, Boston, cabbages, caith, Cars93, cats, cement, chem,
coop, cpus, crabs, Cushings, DDT, deaths, drivers, eagles, epil, farms,
fdeaths, fgl,
forbes, GAGurine, galaxies, gehan, genotype, geyser, gilgais, hills,
housing, immer, Insurance, leuk, lh, mammals, MASS.data.load, mcycle,
mdeaths, Melanoma, menarche, michelson, minn38, motors, muscle, newcomb,
nlschools, nottem, npk, npr1, oats, OME, painters, petrol, phones,
Pima.te, Pima.tr, Pima.tr2, quine, Ra...
2006 Dec 26
1
Colored Dendrogram
...ec4045@mail.gmail.com>
> Content-Type: text/plain; charset=UTF-8; format=flowed
>
> Dear all;
>
> I'm wondering if there is any 'efficient' approach for selecting a
> sample of 'every nth rows' from a dataframe. For example, let's use
> the dataframe GAGurine in MASS library:
>
> > length(GAGurine[,1])
> [1] 314
>
> # select an 75% of the dataset, i.e. = 236 rows, every 2 rows starting
> from row 1
> > test<-GAGurine[seq(1,314,2),]
> > length(test[,1])
> [1] 157
>
> # so, I still need another 79 rows, one way...