Hi every one, I read one excel external file into R, in that R dataset i have 20 variables. now my querry is i want to print only selected variables (eg:10 variables) with complete data. pls send me the code it will be very helpful for us. Thanks in Advance. -- View this message in context: http://www.nabble.com/print-selected-variables-tp25057378p25057378.html Sent from the R help mailing list archive at Nabble.com.
rajclinasia wrote:> Hi every one, > > I read one excel external file into R, in that R dataset i have 20 > variables. now my querry is i want to print only selected variables (eg:10 > variables) with complete data. pls send me the code it will be very helpful > for us. > > Thanks in Advance. >Hi, Please read the posting guide. It is very hard for us to give good advice right now. cheers, Paul -- Drs. Paul Hiemstra Department of Physical Geography Faculty of Geosciences University of Utrecht Heidelberglaan 2 P.O. Box 80.115 3508 TC Utrecht Phone: +3130 274 3113 Mon-Tue Phone: +3130 253 5773 Wed-Fri http://intamap.geo.uu.nl/~paul
Hi there, what you means by "complete data". Read the posting guide, where it is suggested a minimum reproducible code, as well as good clarification about what you have/get and what you realy want to get. bests milton On Thu, Aug 20, 2009 at 3:38 AM, rajclinasia <raj@clinasia.com> wrote:> > Hi every one, > > I read one excel external file into R, in that R dataset i have 20 > variables. now my querry is i want to print only selected variables (eg:10 > variables) with complete data. pls send me the code it will be very helpful > for us. > > Thanks in Advance. > -- > View this message in context: > http://www.nabble.com/print-selected-variables-tp25057378p25057378.html > Sent from the R help mailing list archive at Nabble.com. > > ______________________________________________ > 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<http://www.r-project.org/posting-guide.html> > and provide commented, minimal, self-contained, reproducible code. >[[alternative HTML version deleted]]
If your data is in a data frame named "mydata" and you want to print the 3rd, 5th and 10th variables: mydata[ , c(3,5,10) ] -Don At 12:38 AM -0700 8/20/09, rajclinasia wrote:>Hi every one, > >I read one excel external file into R, in that R dataset i have 20 >variables. now my querry is i want to print only selected variables (eg:10 >variables) with complete data. pls send me the code it will be very helpful >for us. > >Thanks in Advance. >-- >View this message in context: >http://*www.*nabble.com/print-selected-variables-tp25057378p25057378.html >Sent from the R help mailing list archive at Nabble.com. > >______________________________________________ >R-help at 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.-- -------------------------------------- Don MacQueen Environmental Protection Department Lawrence Livermore National Laboratory Livermore, CA, USA 925-423-1062