Re: [R] New member
There are a number of articles and even books at the R site that are worth looking at. Look Dnder documentation on the main page of the site. This link may also help http://www.burns-stat.com/documents/tutorials/ John Kane Kingston ON Canada > -Original Message- > From: kipkorirfrankli...@gmail.com > Sent: Thu, 14 Apr 2016 13:39:50 +0300 > To: r-help@r-project.org > Subject: [R] New member > > > Hello. I am Franklin from University of Eldoret. I really want to study > the R package. What should I first of all do? > [[alternative HTML version deleted]] > > __ > R-help@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. FREE ONLINE PHOTOSHARING - Share your photos online with your friends and family! Visit http://www.inbox.com/photosharing to find out more! __ R-help@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.
Re: [R] New member
This is a good place to start ... https://cran.r-project.org/doc/manuals/R-intro.pdf Jean On Thu, Apr 14, 2016 at 5:39 AM, kipkorirfrankli...@gmail.com < kipkorirfrankli...@gmail.com> wrote: > > Hello. I am Franklin from University of Eldoret. I really want to study > the R package. What should I first of all do? > [[alternative HTML version deleted]] > > __ > R-help@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]] __ R-help@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.
Re: [R] is member
Dear all, I would like to thank you for you answers This worked for me Browse[1] match(Test,seq(1,C,FrN),nomatch=FALSE) [1] 1 0 2 3 0 0 4 0 0 5 0 0 6 7 0 0 8 0 [19] 0 9 0 10 11 0 0 12 0 0 13 14 0 15 0 16 0 0 [37] 17 18 19 0 0 20 21 22 23 0 0 24 0 25 0 0 26 0 [55] 0 27 29 0 30 31 0 32 0 0 33 34 0 0 37 0 38 0 [73] 0 0 39 0 40 0 41 0 42 43 46 47 0 48 0 0 49 51 [91] 0 0 52 0 53 0 0 54 55 0 0 56 0 57 58 59 0 0 [109] 60 61 0 0 62 63 64 65 67 68 69 70 71 72 73 74 75 0 [127] 76 77 79 0 80 0 81 82 83 84 85 86 0 87 0 88 89 90 [145] 0 0 91 92 93 94 0 95 0 96 97 98 99 0 0 100 0 0 [163] 101 102 0 0 103 0 0 0 104 0 0 105 0 0 106 0 107 0 [181] 108 0 109 110 111 0 0 112 0 113 0 114 0 115 116 117 118 119 [199] 120 121 122 123 124 125 126 127 129 130 131 132 133 134 135 0 136 137 [217] 0 138 0 139 140 141 0 142 0 0 143 144 0 0 145 0 146 0 [235] 0 147 0 148 149 150 0 151 152 153 0 0 154 156 157 158 0 159 [253] 160 161 162 163 164 165 166 167 0 168 169 170 171 172 173 0 0 174 [271] 0 175 176 177 178 179 180 181 182 183 184 185 0 186 187 0 188 0 [289] 189 190 191 192 0 193 194 195 196 197 198 199 200 What I want to do now is to keep all the vector elements (only numbers) without the zeros!. How I can do that? B.R Alex From: William Dunlap wdun...@tibco.com Sent: Saturday, October 1, 2011 12:11 AM Subject: RE: [R] is member Someone already suggested that you use match(), which does what I think you want. Read its help file for details. A - seq(1,113,4) match(c(9, 17, 18), A) [1] 3 5 NA Bill Dunlap Spotfire, TIBCO Software wdunlap tibco.com Sent: Friday, September 30, 2011 2:07 PM To: William Dunlap; R-help@r-project.org Subject: Re: [R] is member Thanks a lot! This works. Now I want to do the opposite let's say that I have one sequence for example check in image http://imageshack.us/photo/my-images/4/unleduso.png/ column A (this is a seq(1,113,4) and I want when I get the number 9 to say that this is the third number in the seq (1,113,4). everything about the seq(1,113,4) is known and I want when I get one of the number of the sequence to say which is its order. How I can do that? B.R A;ex From:William Dunlap wdun...@tibco.com Sent: Friday, September 30, 2011 6:34 PM Subject: RE: [R] is member is.element(myvector, seq(1,800,4)) or, if you like typing percent signs, myvector %in% seq(1,800,4) Bill Dunlap Spotfire, TIBCO Software wdunlap tibco.com -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of Alaios Sent: Friday, September 30, 2011 9:26 AM To: R-help@r-project.org Subject: [R] is member Dear all, I have a vector with number that some of them are part of the seq(1,800,4). How can I check which of the numbers belong to the seq(1,800,4) LEt's say that is called myvector the vector with the numbers. Is there in R something like this? is.member(myvector,seq(1,800,4)) I would like to thank you in advance for your help B.R Alex [[alternative HTML version deleted]] [[alternative HTML version deleted]] __ R-help@r-project.org mailing list 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.
Re: [R] is member
On Sep 30, 2011, at 12:25 PM, Alaios wrote: Dear all, I have a vector with number that some of them are part of the seq(1,800,4). How can I check which of the numbers belong to the seq(1,800,4) LEt's say that is called myvector the vector with the numbers. Is there in R something like this? is.member(myvector,seq(1,800,4)) ?match # which is the basis for %in% David Winsemius, MD West Hartford, CT __ R-help@r-project.org mailing list 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.
Re: [R] is member
5 %in% seq(1,800,4) [1] TRUE 4 %in% seq(1,800,4) [1] FALSE or is.element(5, seq(1,800,4)) [1] TRUE is.element(4, seq(1,800,4)) [1] FALSE Sarah On Fri, Sep 30, 2011 at 12:25 PM, Alaios ala...@yahoo.com wrote: Dear all, I have a vector with number that some of them are part of the seq(1,800,4). How can I check which of the numbers belong to the seq(1,800,4) LEt's say that is called myvector the vector with the numbers. Is there in R something like this? is.member(myvector,seq(1,800,4)) I would like to thank you in advance for your help B.R Alex -- Sarah Goslee http://www.functionaldiversity.org __ R-help@r-project.org mailing list 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.
Re: [R] is member
is.element(myvector, seq(1,800,4)) or, if you like typing percent signs, myvector %in% seq(1,800,4) Bill Dunlap Spotfire, TIBCO Software wdunlap tibco.com -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of Alaios Sent: Friday, September 30, 2011 9:26 AM To: R-help@r-project.org Subject: [R] is member Dear all, I have a vector with number that some of them are part of the seq(1,800,4). How can I check which of the numbers belong to the seq(1,800,4) LEt's say that is called myvector the vector with the numbers. Is there in R something like this? is.member(myvector,seq(1,800,4)) I would like to thank you in advance for your help B.R Alex [[alternative HTML version deleted]] __ R-help@r-project.org mailing list 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.
Re: [R] is member
Thanks a lot! This works. Now I want to do the opposite let's say that I have one sequence for example check in image http://imageshack.us/photo/my-images/4/unleduso.png/ column A (this is a seq(1,113,4) and I want when I get the number 9 to say that this is the third number in the seq (1,113,4). everything about the seq(1,113,4) is known and I want when I get one of the number of the sequence to say which is its order. How I can do that? B.R A;ex From: William Dunlap wdun...@tibco.com Sent: Friday, September 30, 2011 6:34 PM Subject: RE: [R] is member is.element(myvector, seq(1,800,4)) or, if you like typing percent signs, myvector %in% seq(1,800,4) Bill Dunlap Spotfire, TIBCO Software wdunlap tibco.com -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of Alaios Sent: Friday, September 30, 2011 9:26 AM To: R-help@r-project.org Subject: [R] is member Dear all, I have a vector with number that some of them are part of the seq(1,800,4). How can I check which of the numbers belong to the seq(1,800,4) LEt's say that is called myvector the vector with the numbers. Is there in R something like this? is.member(myvector,seq(1,800,4)) I would like to thank you in advance for your help B.R Alex [[alternative HTML version deleted]] [[alternative HTML version deleted]] __ R-help@r-project.org mailing list 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.
Re: [R] is member
Someone already suggested that you use match(), which does what I think you want. Read its help file for details. A - seq(1,113,4) match(c(9, 17, 18), A) [1] 3 5 NA Bill Dunlap Spotfire, TIBCO Software wdunlap tibco.com From: Alaios [mailto:ala...@yahoo.com] Sent: Friday, September 30, 2011 2:07 PM To: William Dunlap; R-help@r-project.org Subject: Re: [R] is member Thanks a lot! This works. Now I want to do the opposite let's say that I have one sequence for example check in image http://imageshack.us/photo/my-images/4/unleduso.png/ column A (this is a seq(1,113,4) and I want when I get the number 9 to say that this is the third number in the seq (1,113,4). everything about the seq(1,113,4) is known and I want when I get one of the number of the sequence to say which is its order. How I can do that? B.R A;ex From: William Dunlap wdun...@tibco.com To: Alaios ala...@yahoo.com; R-help@r-project.org R-help@r-project.org Sent: Friday, September 30, 2011 6:34 PM Subject: RE: [R] is member is.element(myvector, seq(1,800,4)) or, if you like typing percent signs, myvector %in% seq(1,800,4) Bill Dunlap Spotfire, TIBCO Software wdunlap tibco.comhttp://tibco.com -Original Message- From: r-help-boun...@r-project.orgmailto:r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.orgmailto:r-help-boun...@r-project.org] On Behalf Of Alaios Sent: Friday, September 30, 2011 9:26 AM To: R-help@r-project.orgmailto:R-help@r-project.org Subject: [R] is member Dear all, I have a vector with number that some of them are part of the seq(1,800,4). How can I check which of the numbers belong to the seq(1,800,4) LEt's say that is called myvector the vector with the numbers. Is there in R something like this? is.member(myvector,seq(1,800,4)) I would like to thank you in advance for your help B.R Alex [[alternative HTML version deleted]] [[alternative HTML version deleted]] __ R-help@r-project.org mailing list 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.
Re: [R] Accessing member
Assuming the data set is called xx subset (xx, xx$V1==AB) or xx[1,] if you now AB is the first row of the data. --- On Mon, 12/28/09, Nick Torenvliet nick.torenvl...@gmail.com wrote: From: Nick Torenvliet nick.torenvl...@gmail.com Subject: [R] Accessing members To: r-help@r-project.org Received: Monday, December 28, 2009, 6:14 PM Consider the following fileLines V1 V2 V3 V4 V5 V6 V7 V8 1 AB 20091224 156.0 156.0 154.00 154.00 55 1198 2 AB.C 20091224 156.0 156.0 156.00 156.00 0 0 3 ABF10 20091224 156.0 156.0 156.00 156.00 55 444 4 ABH10 20091224 156.0 156.0 156.00 156.00 0 749 5 ABH11 20091224 157.2 157.2 157.20 157.20 0 0 6 ABH12 20091224 157.2 157.2 157.20 157.20 0 0 7 ABK10 20091224 157.2 157.2 157.20 157.20 0 5 8 ABK11 20091224 157.2 157.2 157.20 157.20 0 0 9 ABN10 20091224 157.2 157.2 157.20 157.20 0 0 10 ABN11 20091224 157.2 157.2 157.20 157.20 0 0 11 ABV10 20091224 157.2 157.2 157.20 157.20 0 0 12 ABV11 20091224 157.2 157.2 157.20 157.20 0 0 13 ABZ10 20091224 157.2 157.2 157.20 157.20 0 0 14 ABZ11 20091224 157.2 157.2 157.20 157.20 0 0 15 RS 20091224 395.0 395.0 381.42 381.42 12918 100618 16 RS.C 20091224 395.0 399.1 395.00 398.70 1680 0 17 RSF10 20091224 395.0 399.1 395.00 398.70 2277 3081 18 RSF11 20091224 420.3 420.3 420.30 420.30 50 203 19 RSF12 20091224 415.5 415.5 415.50 415.50 0 0 20 RSH10 20091224 401.1 403.9 399.50 403.60 9925 79548 21 RSH11 20091224 419.2 419.2 419.20 419.20 0 193 22 RSK10 20091224 406.9 409.9 406.40 409.90 264 5769 23 RSK11 20091224 415.5 415.5 415.50 415.50 0 0 24 RSN10 20091224 414.7 415.2 410.00 415.20 189 6391 25 RSN11 20091224 415.5 415.5 415.50 415.50 0 2 26 RSX10 20091224 414.9 417.9 413.00 417.30 213 5431 27 RSX11 20091224 415.5 415.5 415.50 415.50 0 0 28 WF 20091224 363.0 363.0 363.00 363.00 0 0 29 WW 20091224 152.0 152.0 152.00 152.00 0 0 attributes (fileLines) $names [1] V1 V2 V3 V4 V5 V6 V7 V8 $class [1] data.frame $row.names [1] 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 [26] 26 27 28 29 fileLines[1,2] [1] 20091224 As expected! fileLines[1,3] [1] 156 As expected! fileLines[1,1] [1] AB 29 Levels: AB AB.C ABF10 ABH10 ABH11 ABH12 ABK10 ABK11 ABN10 ABN11 ... WW Doh! How do I access the AB element directly? Nick [[alternative HTML version deleted]] __ R-help@r-project.org mailing list 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. __ Looking for the perfect gift? Give the gift of Flickr! http://www.flickr.com/gift/ __ R-help@r-project.org mailing list 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.