thanks all.your help much appreciated. and its usefull
--
View this message in context:
http://r.789695.n4.nabble.com/HELP-how-to-remove-10-of-data-randomly-in-R-tp4647879p4648098.html
Sent from the R help mailing list archive at Nabble.com.
__
R-hel
9.6 354 NA 1
#6 19980106 2400 0.021 0.018 29.9 603 NA 356 NA 1
A.K.
- Original Message -
From: Eugenie
To: r-help@r-project.org
Cc:
Sent: Wednesday, October 31, 2012 8:42 AM
Subject: Re: [R] HELP!! how to remove 10% of data randomly in R
tDate tTime
On Oct 31, 2012, at 5:42 AM, Eugenie wrote:
> tDate tTimeO3 No2 Temp Sun Wspeed Wdirect Hum Indicator
> 119980101 2400 0.065 0.036 31.4 7659.9 351 NA 1
> 219980102 2400 0.053 0.025 31.8 6247.7 351 NA 1
> 319980103 2400 0.027 0.033 31.5 852
> -Original Message-
> From: r-help-boun...@r-project.org [mailto:r-help-bounces@r-
> project.org] On Behalf Of Eugenie
> Sent: Wednesday, October 31, 2012 5:42 AM
> To: r-help@r-project.org
> Subject: Re: [R] HELP!! how to remove 10% of data randomly in R
>
>
.90*nrow(dat1)),] #remove 90% of data
# V1 V2
#7 2 4
- Original Message -
From: Eugenie
To: r-help@r-project.org
Cc:
Sent: Tuesday, October 30, 2012 11:12 AM
Subject: [R] HELP!! how to remove 10% of data randomly in R
any can please tell me how to remove 10%,15%,25% and 50% of the dat
Nope, you can do it easily along the lines of
dat[sample(NROW(dat), NROW(dat)*(1 - 0.1)),]
But you need to spend the time understanding what all that does. Lots
of important and powerful R ideas in that little bit.
Michael
On Tue, Oct 30, 2012 at 3:12 PM, Eugenie wrote:
> any can please tell m
any can please tell me how to remove 10%,15%,25% and 50% of the data randomly
by using R programme???
can anyone please show me the coding?
do i need to install any package?
--
View this message in context:
http://r.789695.n4.nabble.com/HELP-how-to-remove-10-of-data-randomly-in-R-tp4647879.html
7 matches
Mail list logo