David,
If the ".Rdata" contains more than one object you could (and maybe should
use) the SOAR package (from Venables). This package helps you to split the
objects over multiple RData files. It's useful when you have numerous
medium-large objects in the workspace but doesn't use then at the same
t
John,
as I know Microsoft has owned the Revolution Analytics and is continuing
the development of the Revolurion R with a new name Microsoft R. Note that
Microsoft R has an open source stable version. I'm not quite sure which
modifications they are doing on it. I suppose that this modified version
Hi,
Look to the following code:
set.seed(1)
dados =
data.frame(valor=rnorm(100),var=sample(LETTERS[c(1,2,3,5)],100,replace=T),peso=rpois(100,2))
dados[1:10,]
dados$var <- factor(dados$var,levels=LETTERS[1:5])
table(dados$var)
A B C D E
31 31 19 0 19
When I try to use summarize, Hmisc packa
Hi,
Sometimes, I need to do some hard work when exporting files using gdata
package.
It will be very useful if the justify parameter of write.fwf can receive
vectors. In some jobs I need to left and right justify in different columns
of the same file.
Nowadays, I do a lot ow this working in prep
Dear R-Users,
I was using survey for the past years and now I am experiencing some
problems with scripts that was working in the past.
We are working with big data bases so I can't put all variables that I will
use in the svydesign.
Script working:
> data(api)
> dclus1<-svydesign(id=apiclus1$d
.br>
*LEANDRO MARINO* | Showmetech
Estatístico | Fotógrafo
Mobile: 55 21 9845-7707
Email: cont...@leandromarino.com.br
Profiles SMT: facebook <http://www.facebook.com/showmetech> |
twitter<http://www.twitter.com/showmetech>
| Google+ <https://plus.google.com/11544078
allation of package RMySQL had non-zero exit status
<http://www.showmetech.com.br>
*LEANDRO MARINO* | Showmetech
Estatístico | Fotógrafo
Mobile: 55 21 9845-7707
Email: cont...@leandromarino.com.br
Profiles SMT: facebook <http://www.facebook.com/showmetech> |
twitter<ht
You can use only
if(!is.na(num))
[[alternative HTML version deleted]]
__
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 com
Dear Levke,
R works perfect with windows 8. I didn't update to the 3.0 version but I
guess that will work too. Windows Rt differ from Windows 8 in a lot of
things really don't know if it will work.
Kindly,
Leandro
<http://www.showmetech.com.br>
*LEANDRO MARINO* | Showme
I'm using R 64 in Win8 64 without problems. Only the StatET plugin for
eclipse is not working.
2013/1/16 Prof Brian Ripley
> On 16/01/2013 16:06, Claire Oswald wrote:
>
>> Hello:
>>
>> I'd like to know if R will run under Windows 8?
>>
>
> We have students running it under Windows 8, 32- and 64
> I think that if you're not familiar with emacs or vim I suggest you to
use RStudio. If you're a programmer that knows how to use eclipse I think
eclipse with statet it will be the best solution. Another option that you
have is the notepad + + with NppToR plugin
>
> Best,
>
it's good to check if all elements from rownames(snp.matrix$fam)
are in rownames(data_one).
setdiff( rownames(snp.matrix$fam),rownames(data_one))
setdiff(rownames(data_one),rownames(snp.matrix$fam))
*
*
*
*
*
*
*
*
Atenciosamente,
Leandro Marino
http://www.leandromarino.com.br (Fotóg
ve to configure TINN-R when you install a new release of R.
**
In the Option >> Application >> R you have an option to use i384 or x64. I
didn't understood the problem of the changes in the R path.
*Atenciosamente,
Leandro Marino
http://www.leandromarino.com.br (Fotógrafo)
http:
e. After that you have only
to open tinn-r and inside it open the R or the Rterm (i prefer this one
because consumes less memory).
Regards,
Leandro
*Atenciosamente,
Leandro Marino
http://www.leandromarino.com.br (Fotógrafo)
http://est.leandromarino.com.br/Blog (Estatístico)
Cel.: + 55 21 9845-7
*Luca,
*
you may use survey package. You have to declare the design with design
function and than you can you svytotal, svyby, svymean functions to do your
tabulations.
Regards,
Leandro
Atenciosamente,
Leandro Marino
http://www.leandromarino.com.br (Fotógrafo)
http://est.leandromarino.com.br
What I was trying to say is that TINNR has a possibility to connect to R on
a server. I want to know if its possible to have the r in a server with
ubuntu and use it from the TINNR software.
Sent from my mobile.
Att,
Leandro Marino
http://www.leandromarino.com.br (Fotógrafo)
http
*Hi,
I want to know how can I configure R in a Ubuntu to be a server.
I am planning to use R in a Windows machine with Tinn-R, but I want R
running at an Ubuntu Lucid machine.
How can i do this?
*Atenciosamente,
Leandro Marino
http://est.leandromarino.com.br/Blog (Estatístico)
Cel.: + 55 21
Hi,
You didnt put the parameter sep=' ' in the read.table.
If you try to see str(file), i think you are going to see only one column.
read.table("data.txt",header=FALSE,sep=' ')
Atenciosamente,
Leandro Lins Marino
Centro de Avaliação
Fundação CESGRANRIO
Rua Santa Alexandrina, 1011 - 2º andar
Rio
ill=c(rgb
(000,100,000,maxColorValue=255),rep(rgb(110,139,061,maxColorValue=255),
9)))
Now, I want to know how can i change the size of the bar. I want to draw it
thinner than it appears into the R Graphics Console.
Another doubt is how can I use another format into the y label, called in this
Another possibility is to download the xlsReadWrite package in
http://treetron.googlepages.com/xlsreadwrite.htm
And use the read.xls() function.
I am using this package without problems.
Atenciosamente,
Leandro Lins Marino
Centro de Avaliação
Fundação CESGRANRIO
Rua Santa Alexandrina, 1011 -
Hi,
I was trying to read some help of functions and in all functions I try to see
is giving me this error:
> ?write.table
Erro em
print.help_files_with_topic("C:/ARQUIV~1/R/R-29~1.0/library/utils/chm/write.table")
:
CHM file could not be displayed
Anybody knows what is happening?
Atenciosa
Try this:
mrp <- function(){
r <- list()
mr<-matrix(0,4,1)
for(i in 1:4){
r[[i]] <- lm(dat(,i+1)~dat(,1))
mr[i,1] <- coefficients(r[[i]]) }
mr
}
Atenciosamente,
Leandro Lins Marino
Centro de Avaliação
Fundação CESGRANRIO
Rua Santa Alexandrina, 1011 - 2º andar
Rio de Janeiro, RJ - CEP: 20261-90
> a <- matrix(c(1:4),ncol=2)
> b <- matrix(c(5:8),ncol=2)
> a
[,1] [,2]
[1,]13
[2,]24
> b
[,1] [,2]
[1,]57
[2,]68
> a+b
[,1] [,2]
[1,]6 10
[2,]8 12
Atenciosamente,
Leandro Lins Marino
Centro de Avaliação
Fundação CESGRANRIO
Rua Santa
I was having this problem with a file. My problem was a ' indo the name, link
Ricardo D'avilla, the ' skipped all sep to the end of the file.
Maybe it is your problem.
Atenciosamente,
Leandro Lins Marino
Centro de Avaliação
Fundação CESGRANRIO
Rua Santa Alexandrina, 1011 - 2º andar
Rio de Janeir
Amor,
You have the possibility to use the duplicated() function.
A[!duplicated(A[,var]),]
Atenciosamente,
Leandro Lins Marino
Centro de Avaliação
Fundação CESGRANRIO
Rua Santa Alexandrina, 1011 - 2º andar
Rio de Janeiro, RJ - CEP: 20261-903
R (21) 2103-9600 R.:236
( (21) 8777-7907
( lean...@ces
elp-boun...@r-project.org] Em nome
de Leandro Marino
Enviada em: quinta-feira, 12 de março de 2009 08:55
Para: 'Tammy Ma'; r-help@r-project.org
Assunto: [R] RES: Removing rows
Hi Tammy,
You can do:
act_2temp <- act_2[which(!duplicated(act_2[,c(1:5)])),]
act_2temp[1:5,]
act_2 <- act_2temp
Hi Tammy,
You can do:
act_2temp <- act_2[which(!duplicated(act_2[,c(1:5)])),]
act_2temp[1:5,]
act_2 <- act_2temp
rm(act_2temp)
Atenciosamente,
Leandro Lins Marino
Centro de Avaliação
Fundação CESGRANRIO
Rua Santa Alexandrina, 1011 - 2º andar
Rio de Janeiro, RJ - CEP: 20261-903
R (21) 2103-9600
Another possibility is buy an U3 smartdrive (U3). And then you can use de
UltraEdit Portable.
It’s a good text editor with some level of support for R.
Atenciosamente,
Leandro Lins Marino
Centro de Avaliação
Fundação CESGRANRIO
Rua Santa Alexandrina, 1011 - 2º andar
Rio de Janeiro, RJ - CEP: 202
Hi,
I know the function LETTERS, but, now I have some letters to convert it in
numbers, like A=1,B=2, etc... Is any function to do that?
Atenciosamente,
Leandro Lins Marino
Centro de Avaliação
Fundação CESGRANRIO
Rua Santa Alexandrina, 1011 - 2º andar
Rio de Janeiro, RJ - CEP: 20261-903
R (21)
I use it on an ASUS EEE 701 PC! It works with some limitation, because this
model have only 512mb of RAM. But it is working fine. The OS is Windows XP.
I think that the better netbooks is one from HP, this netbook have an normal
keyboard.
Atenciosamente,
Leandro Lins Marino
Centro de Avaliação
I think in this case its better use the write.csv. Microsoft Excel reads csv
files normally.
Atenciosamente,
Leandro Lins Marino
Centro de Avaliação
Fundação CESGRANRIO
Rua Santa Alexandrina, 1011 - 2º andar
Rio de Janeiro, RJ - CEP: 20261-903
R (21) 2103-9600 R.:236
( (21) 8777-7907
( lean...@
Did you do the configuration of Tinn-R after the installation?
Atenciosamente,
Leandro Lins Marino
Centro de Avaliação
Fundação CESGRANRIO
Rua Santa Alexandrina, 1011 - 2º andar
Rio de Janeiro, RJ - CEP: 20261-903
R (21) 2103-9600 R.:236
( (21) 8777-7907
( lean...@cesgranrio.org.br
"Aquele que s
Hi,
I am having some problems using bwplot(lattice) in my data. I want change
some parameters:
1) Fontfamily to serif
2) The size of the font
3) Put it in a bold face
4) Change de color of the lines
How can I do that?! Now, I am using this to plot my boxplot.
dados <- data.frame(varsep=as.fact
Hi,
I am having some problems using bwplot(lattice) in my data. I want change some
parameters:
1) Fontfamily to serif
2) The size of the font
3) Put it in a bold face
4) Change de color of the lines
How can I do that?! Now, I am using this to plot my boxplot.
dados <- data.frame(varsep=as.fac
It depends of the number of the variables. If you are using 2 or 3 variables
you can do some things.
I should you read about ff package and ASOR packages they manage the dataset
to do some kind of IO.
Regards,
-Mensagem original-
De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Em
nome de
Hi,
I was trying to adjust an bayesian network with Deal package.
I know how to adjust when I give the structure and when I don't give the
struture. Now, I want to adjust when I know some variables relationships and
others I don't know.
Anybody knows how can I do that?
Regards,
Atenciosamen
If I have an file like an JPG, gif, png or other, exist any kind of function
in the R to see de dimension in pixels of this image?
Thanks
Atenciosamente,
Leandro Lins Marino
Centro de Avaliacao
Fundacao CESGRANRIO
Rua Santa Alexandrina, 1011 - 2o andar
Rio de Janeiro, RJ - CEP: 20261-903
* (
> par(ps=15)
> plot(1:10)
-Mensagem original-
De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
nome de Stephane Bourgeois
Enviada em: quarta-feira, 6 de agosto de 2008 11:38
Para: r-help@r-project.org
Assunto: [R] Font size in plots (I do NOT understand par help)
Hi,
I do not get how p
> merge(df1,df2,by=commonvar,all=T)
Regards,
Leandro Marino
-Mensagem original-
De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
nome de Shreyasee Pradhan
Enviada em: quarta-feira, 6 de agosto de 2008 11:15
Para: r-help@r-project.org
Assunto: [R] Merging two datasets
I am facin
I thinks this is the solution that you want!
as.vector(matrix(c(x,y),byrow=T,ncol=3))
-Mensagem original-
De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
nome de Wacek Kusnierczyk
Enviada em: quarta-feira, 23 de julho de 2008 10:25
Para: R help
Assunto: Re: [R] Simple... but...
Shubha V
I know that!
But i will select about 10 colurs and show him
But he needs in that format!
thanks@
-Mensagem original-
De: Duncan Murdoch [mailto:[EMAIL PROTECTED]
Enviada em: quinta-feira, 17 de julho de 2008 11:32
Para: Leandro Marino
Cc: [EMAIL PROTECTED] Org
Assunto: Re: [R
Hi list,
I will help an person that will use some graphics of R in internet.
But this pearson want to specify the colours. This person want me to create
an pallete of colours like that:
Name of color - Code - Colour
White - 0xFF - color white (like an box with this color)
I know
ments imply differing number of rows: 5, 3, 4, 6
>
Thanks for the help!
Leandro Marino
__
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
Hi list,
I have an database (30.000 entrys) that my R is not modelling into betareg()
so I decided to do an sample and uses an bootstrap to give me the correct
estimates to the variance. Anybody knows what library can I use in this
case?
Regards,
Atenciosamente,
Leandro Lins Marino
Centro de Av
One of possible solutions is:
generate all the numbers.
num <- rpois(...)
num <- round(num/sum(num)*100,0)
sum(num)
I don't know if it is the best solution, but is one!
Leandro Marino
-Mensagem original-
De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
nome de Peter Dalga
data frame? Do you have to output this in a list()?
Leandro Marino
-Mensagem original-
De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
nome de mysimbaa
Enviada em: sexta-feira, 4 de julho de 2008 12:51
Para: r-help@r-project.org
Assunto: [R] Error while plotting matrix
Dear R
You have to put the tml in the function and deltat too.
like
VAR<-function(power,length,deltat,tml){
-Mensagem original-
De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
nome de mysimbaa
Enviada em: sexta-feira, 4 de julho de 2008 11:22
Para: r-help@r-project.org
Assunto: [R] initializ
How can I export an ftable object in the same format that appears in R
command window?
For testing that i was using this example that is in help of this function.
## Start with a contingency table.
ftable(Titanic, row.vars = 1:3)
ftable(Titanic, row.vars = 1:2, col.vars = "Survived")
ftable(
/questimp1104m.txt",dec=".",sep=";",append=T,quote=F)
}
How can I put the row.names before the col num in R? And how can I remove
the x in first line and the number 1 and the ^t in the second line before
Q05?
Thanks for the advance!
Leandro Marino
_
You can do this plot saying to R that your file is a time series with the
ts() function.
serie=ts(x,)
and then you use plot(serie)
-Mensagem original-
De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
nome de Petr PIKAL
Enviada em: quarta-feira, 2 de julho de 2008 05:04
Para: Kathi
Cc:
You can use names(database)[position]
where position is the number of the column that you want to rename!
Leandro Marino
-Mensagem original-
De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
nome de [EMAIL PROTECTED]
Enviada em: terca-feira, 1 de julho de 2008 16:18
Para: R-help@r
I will see the code! It is similar that i want!
Thanks a lot!
-Mensagem original-
De: Gabor Grothendieck [mailto:[EMAIL PROTECTED]
Enviada em: terça-feira, 1 de julho de 2008 16:22
Para: Leandro Marino
Cc: [EMAIL PROTECTED] Org
Assunto: Re: [R] plot window
Look at the code for the
Hi list,
I want to know how can i creat a plot window with this configuration:
___
| |
| PLOT 1|
| |
|-|
| | |
| |
Hi,
the problem is what you want!
With the -2.7^8.6 you are doing -(2.7^8.6) it exists...
But, if you try (-2.7)^8.6 the R gives you NaN. When you define p=-2.7 and
q=8.6 and do p^q you are doing that (-2.7)^8.6.
If you write p=2.7 and q=8.6 and use the -p^q it will work!
Leandro Marino
this sintax:
boxplot(your_base[,c("V1","V2","V3"])
or
boxplot(your_base[,c(5:7)]
Leandro Marino
-Mensagem original-
De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
nome de [EMAIL PROTECTED]
Enviada em: terca-feira, 1 de julho de 2008 12:22
Para: r-
Hi,
you can use the jpeg(), pdf(), bmp() functions. In this function you can
determinate the size of the graph, background color, quality of the image.
Leandro Marino
-Mensagem original-
De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
nome de Ptit_Bleu
Enviada em: terca-feira, 1 de
b="Santa
Catarina",ylab="Freqüência",col="antiquewhite4",main="")
hist(RS[,i+2],nclass=75,xlab="Rio Grande do
Sul",ylab="Freqüência",col="antiquewhite4",main="")
dev.off()
}
The problem is the name of the file, I want to do something like grafi.jpg
where i goes from 1 to 250.
Thanks a lot for the help.
Best Regards,
Leandro Marino
__
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, minimal, self-contained, reproducible code.
b="Santa
Catarina",ylab="Freqüência",col="antiquewhite4",main="")
hist(RS[,i+2],nclass=75,xlab="Rio Grande do
Sul",ylab="Freqüência",col="antiquewhite4",main="")
dev.off()
}
The problem is the name of the file, I want to do something like grafi.jpg
where i goes from 1 to 250.
Thanks a lot for the help.
Best Regards,
Leandro Marino
__
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, minimal, self-contained, reproducible code.
Hi,
I was reading e-mail about one doubt that you were when you read files
.sas7bdat in R.
Now, I am with the same problem. But I don´t know how can i do that. I have
download de Sas Viewer and i am using this sintax in r:
> read.ssd("X:\\users\\Anresc07","que0411.sas7bdat")
SAS failed. SAS prog
Hi
I am changing my databases from S-plus to R. I want to know how can I use
that?
May I only attach the folder _Data equal I do in S-plus?
Thanks!
Best Regards,
Leandro Marino
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman
60 matches
Mail list logo