Skip to content

[RsR] cancer-pred

2 messages · 天源--, Valentin Todorov

#
hello?I have cancer-pred data.I want to read the data into R and output the first list variable y with below  statement,
but I always get the wrong result.which I need to amend?
       mydata<-read.table("C:/Users/Desktop/cancer-pred.txt",na.string=".",header=T)
       mydata<-as.data.frame(mydata)
        y
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://stat.ethz.ch/pipermail/r-sig-robust/attachments/20160319/1d927bce/attachment.html>

-------------- next part --------------
A non-text attachment was scrubbed...
Name: cancer-pred.txt
Type: application/octet-stream
Size: 6554 bytes
Desc: not available
URL: <https://stat.ethz.ch/pipermail/r-sig-robust/attachments/20160319/1d927bce/attachment.obj>
1 day later
#
Dear Tianyuan,

I do not think this is the right place to ask this question.

However, if your data frame has a variable y - to see this try head(mydata)
-

you can see the variable y with the command

mydata$y

Best regards,
Valentin
On Sat, Mar 19, 2016 at 1:25 PM, ??-- <1456861180 at qq.com> wrote: