Re: [R] Named rows in a table (data frame) read from a file

2011-11-16 Thread JulioSergio
Sarah Goslee gmail.com> writes: Thank you, Sara! Your information is's been very useful __ 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 p

Re: [R] Named rows in a table (data frame) read from a file

2011-11-16 Thread JulioSergio
R. Michael Weylandt gmail.com> gmail.com> writes: .. Thanks Michael __ 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,

[R] Named rows in a table (data frame) read from a file

2011-11-16 Thread JulioSergio
I read a table as follows: > F1 <- read.table("Rtext3.txt") > F1 Price Floor Area Rooms Age Cent.heat a 52.00 111 830 5 6.2no b 54.75 128 710 5 7.5no c 57.50 101 1000 5 4.2no d 57.50 131 690 6 8.8no e 59.7593 900 5 1.9 yes

Re: [R] Named components in a list

2011-11-10 Thread JulioSergio
Jeff Newmiller dcn.davis.ca.us> writes: > > >Well, Bert, then the manual where I found the example must be wrong. It > >is: > > > >http://cran.r-project.org/doc/manuals/R-intro.html#Constructing-and- modifying- > >lists > > > >And textually it says: > > > >Lists, like any subscripted object, can

Re: [R] Named components in a list

2011-11-10 Thread JulioSergio
Bert Gunter gene.com> writes: > > Inline Below. Well, Bert, then the manual where I found the example must be wrong. It is: http://cran.r-project.org/doc/manuals/R-intro.html#Constructing-and-modifying- lists And textually it says: Lists, like any subscripted object, can be extended by speci

Re: [R] Named components in a list

2011-11-10 Thread JulioSergio
Sarah Goslee gmail.com> writes: > > Hi, > > You probably want: > L["NewName"] <- "something" > or one of the many potential variants. > Thanks, Sara, That works! However, following the idea that the syntactic notation L[i] means a sublist of L, again the syntactic notation L[i] <- list(N

[R] Named components in a list

2011-11-10 Thread JulioSergio
I'm studying lists and I came to an example where > L $name [1] "Fred" $wife [1] "Mary" $no.children [1] 4 $child.ages [1] 4 7 9 then following the instructions to extend the list with a new component, I executed: > L[5] <-list(NewName="something") and the new list I got was: > L $name [1

Re: [R] Intervals in function cut

2011-11-09 Thread JulioSergio
jim holtman gmail.com> writes: ... Thanks Jim, very useful your information, Sergio. __ 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 pro

[R] Intervals in function cut

2011-11-07 Thread JulioSergio
When I was studying the function cut I found this example: > x <- rep(0:8, tx0) > x [1] 0 0 0 0 0 0 0 0 0 1 1 1 1 2 2 2 2 2 2 3 3 3 3 3 4 4 4 5 5 5 5 5 5 5 5 5 5 6 [39] 6 6 6 6 7 7 7 8 8 8 8 8 > cut(x, b = 8) [1] (-0.008,0.994] (-0.008,0.994] (-0.008,0.994] (-0.008,0.994] (-0.008,0.994] [6]