Displaying 8 results from an estimated 8 matches for "myiri".
Did you mean:
myiris
2016 Feb 19
4
should `data` respect default.stringsAsFactors()?
Hi Peter,
Sorry if I was not clear. Perhaps an example will make my point:
> data(iris)
> class(iris$Species)
[1] "factor"
> write.table(iris,'data/myiris.tab')
> data(myiris)
> class(myiris$Species)
[1] "factor"
> rm(myiris)
> options(stringsAsFactors = FALSE)
> data(myiris)
> class(myiris$Species)
[1] "factor"
> myiris<-read.table("data/myiris.tab",header=TRUE)
> class(myiris$Species)
[1...
2016 Feb 19
2
should `data` respect default.stringsAsFactors()?
...6:03 PM, Cook, Malcolm <MEC at stowers.org> wrote:
>> Hi Peter,
>>
>> Sorry if I was not clear. Perhaps an example will make my point:
>>
>>> data(iris)
>>> class(iris$Species)
>> [1] "factor"
>>> write.table(iris,'data/myiris.tab')
>>> data(myiris)
>>> class(myiris$Species)
>> [1] "factor"
>>> rm(myiris)
>>> options(stringsAsFactors = FALSE)
>>> data(myiris)
>>> class(myiris$Species)
>> [1] "factor"
>>> myiris<-read.ta...
2016 Feb 19
0
should `data` respect default.stringsAsFactors()?
On Thu, Feb 18, 2016 at 6:03 PM, Cook, Malcolm <MEC at stowers.org> wrote:
> Hi Peter,
>
> Sorry if I was not clear. Perhaps an example will make my point:
>
>> data(iris)
>> class(iris$Species)
> [1] "factor"
>> write.table(iris,'data/myiris.tab')
>> data(myiris)
>> class(myiris$Species)
> [1] "factor"
>> rm(myiris)
>> options(stringsAsFactors = FALSE)
>> data(myiris)
>> class(myiris$Species)
> [1] "factor"
>> myiris<-read.table("data/myiris.tab",head...
2016 Feb 19
0
should `data` respect default.stringsAsFactors()?
...gt; wrote:
> >> Hi Peter,
> >>
> >> Sorry if I was not clear. Perhaps an example will make my point:
> >>
> >>> data(iris)
> >>> class(iris$Species)
> >> [1] "factor"
> >>> write.table(iris,'data/myiris.tab')
> >>> data(myiris)
> >>> class(myiris$Species)
> >> [1] "factor"
> >>> rm(myiris)
> >>> options(stringsAsFactors = FALSE)
> >>> data(myiris)
> >>> class(myiris$Species)
> >> [1] &q...
2016 Feb 18
2
should `data` respect default.stringsAsFactors()?
Hiya,
Probably been debated elsewhere....
I note that R's `data` function does not respect default.stringsAsFactors
By my lights, it should, especially as it is documented to call read.table, which DOES respect.
Oh, but: http://r.789695.n4.nabble.com/stringsAsFactors-FALSE-tp921891p921893.html
Compelling. I have to agree.
So, I change my mind.
By my lights, `data` should then be
2003 Nov 05
1
save(iris,file=
...hich seems correct ...
but not for loading:
> con <- file("clipboard","r")
> load(con)
Error in load(con) : loading from connections not compatible with magic number
even though when I try it with real files then it works both ways:
> save(iris,ascii=T,file="myiris.rda")
> rm(iris)
> load("myiris.rda")
> ls()
... iris is back ...
---
Date: Wed, 5 Nov 2003 19:01:20 +0000 (GMT)
From: Prof Brian Ripley <ripley at stats.ox.ac.uk>
To: Gabor Grothendieck <ggrothendieck at myway.com>
Cc: <R-help at stat.math.ethz.ch>...
2003 Nov 05
1
save(iris,file="clipboard",ascii=TRUE)
...ve(iris,ascii=TRUE,file="clipboard")
Error in file(file, "wb") : `mode' for the clipboard must be `r' or `w'
Also this (where gclip is a utility found at unxutils.sourceforge.net
that copies its standard input to the clipboard):
> save(iris,ascii=TRUE,file="myiris.rda")
> system("cmd /c gclip < myiris.rda")
> load("clipboard")
Error in open.connection(con, "rb") : unable to open connection
In addition: Warning message:
cannot open compressed file `clipboard'
_______________________________________________...
2013 Feb 13
1
context of runif()
Greetings,
I am exploring some random forest analysis methods and have come upon one
aspect I don't fully understand from any manual. The code of interest is
as follows from the randomForest package:
myiris=cbind(iris[1:4], matrix(runif(508*nrow(iris)),nrow(iris),508))
This would be following by the rfcv() function for cross-validation but I
am confused about the former syntax.
My question is why 508? Is this some arbitrary number that one just
chooses are is there some logic to the choice? I hav...