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
As
R. Michael Weylandt michael.weylandt at gmail.com michael.weylandt at
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
Sarah Goslee sarah.goslee at 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
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] Fred
Sarah Goslee sarah.goslee at 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] -
Bert Gunter gunter.berton at 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
Jeff Newmiller jdnewmil at 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 be
jim holtman jholtman at 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
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]
9 matches
Mail list logo