Displaying 20 results from an estimated 800 matches similar to: "Using merge"
2010 Dec 19
1
sum with times
Hi,
I have this vector:
> A <- c("00:00:36","00:02:18")
> A
[1] "00:00:36" "00:02:18"
I use as.difftime to convert this to time vector based
> B <- as.difftime(A)
> B
Time differences in secs
[1] 36 138
attr(,"tzone")
[1] ""
Now i try to make a sum
> sum(B)
Time difference of 174 secs
The sum is ok, but
2011 Dec 13
2
Problem with package compilation
Hi,
I have a R package with some functions made all of then only with R
code. I use the command R CMD build to build a package that I can
install on linux, windows or mac, because all the code is only R code.
But I have some problems with R version. For each new R version I need
to rebuild the package to be install in this new version. It is possible
to make a package without this R Version
2010 Apr 22
1
Help with tapply selection
Hi,
I try to create a data.frame from results of a tapply.
I have this results from tapply:
--------------------------
, , tapinom sp 1
1 2 3 4 5 6 7 8 9 10
1 NA NA NA NA NA NA NA NA NA NA
4 NA NA NA NA NA NA NA NA NA 4
5 NA NA NA NA NA NA NA NA NA NA
6 NA NA NA NA NA NA NA NA NA NA
7 NA NA NA NA NA NA NA NA NA NA
, , wasm sp 2
1 2 3 4 5 6 7 8 9 10
1 1 NA NA NA NA NA
2010 Aug 09
1
Different colour in each bar in lattice package
Hi,
I try to plot bars with different colours in a barchart graphic. My idea
is make that all X-Levels from trat var with different colour (grey
scale). I search for a solution but dont find any.
Any help?
Thanks
dados <- structure(list(Medias = c(0.994169096209855, 0.99416342412449,
0.974683544303797, 0.954430379746835, 0.669047619047619, 0.999999998475569,
0.994163424124514,
2009 Sep 01
2
Simple question about data.frame reduction
Hi,
this is a simple question
I have this data.frame:
> test <-
data.frame(var1=c(1,1,1,1,1,1),var2=c("a","a","b","c","d","e"),var3=c("a1","a1","b1","a1","c1","d1"))
> test
var1 var2 var3
1 1 a a1
2 1 a a1
3 1 b b1
4 1 c a1
5 1
2007 Aug 24
3
It is possible to use a Shell command inside a R script?
Hi,
It is possible to use a shell command inside a R script?
I'm write a R script and I like to put somes shell commands inside to R.
Somethink like: convert fig01.png fig01.xpm or sed ..., etc.
It is possible? How?
Thanks
Ronaldo
--
Acalme-se, s??o somente 0's e 1's
--
> Prof. Ronaldo Reis J?nior
| .''`. UNIMONTES/Depto. Biologia Geral/Lab. de Ecologia
| : :' :
2007 Oct 05
3
help in substitute function
Hi,
I try to use a substitute function to generalise a equation.
I have this:
expression(1+2*pred+3*lat)
I need to define the equation in function of x1 and x2 variables. Also I try
to define who is x1 and x2. I try this:
X1 <- "pred"
X2 <- "lat"
Now I need substitute pred and lat in equation by x1 and x2 defined on X1 and
X2 above, I try this way:
>
2012 May 30
1
Automatically install package dependencies
Hi,
I have a R Package. It is working, but I can't that it install the
dependencies automatically. When I try to install I receive this message:
> install.packages("./RT4Bio_1.0.tar.gz",dependencies=TRUE)
Installing package(s) into '/usr/local/lib/R/site-library'
(as 'lib' is unspecified)
inferring 'repos = NULL' from the file name
ERROR: dependency
2010 Nov 17
1
Color on trellis device
Hi,
I try to make a xyplot withou colors. I try:
pdf(file="test.pdf")
trellis.device(color=F)
Depth <- equal.count(quakes$depth, number=8, overlap=.1)
xyplot(lat ~ long | Depth, data = quakes)
dev.off()
the graphic is showed without colors in a X device but it dont work
saving directly on pdf device.
How I made to put color off in trellis device?
Thanks
Ronaldo
--
2ª lei - Na
2011 Mar 10
0
Stress in metaMDS from vegam package
Hi,
I have a newbie doubt. I try to use metaMDS in R, it is OK, but the
stress that I get is 16.32, in other programs stress is showed like
0.173. I don't find a good explanation about this calculations on books,
I think that R show stress em a percentage data (0-100) and other
software in a proportional data (0-1), it is correct?
Thanks
Ronaldo
--
11ª lei - Você deve conhecer mais de
2011 Jun 09
0
Help on survival analysis
Hi,
I need a help in a survival analysis using survreg function with weibull
distribution from survival package.
Look the data sample:
########## Start of script
dados <- structure(list(TFD = c(20L, 34L, 1L, 2L, 3L, 3L, 50L, 26L, 1L,
50L, 21L, 3L, 13L, 11L, 22L, 50L, 50L, 1L, 50L, 9L, 50L, 1L,
13L, 50L, 50L, 1L, 6L, 50L, 50L, 50L, 36L, 3L, 46L, 10L, 50L,
1L, 18L, 3L, 36L, 37L, 50L, 7L, 1L,
2010 Apr 16
0
Help on rKward
Hi,
I'm testing rKward and it's become a great GUI for R on linux, mainly
for new linux users. I'm not a new linux user and I use Emacs for my own
R's script. But I always try new GUIs or IDEs for to recommend to my
students. The most dificult for new R and Linux users is: I have
installed R on my linux but I dont found the R icon. This happen because
R on linux have only the
2010 Apr 16
0
Yet Testing rKward
Hi,
I continue testing rKward. I dont know how to save the results from a
script execution without use copy and paste or using a rkward output system.
Now I try to understand how adapt my script do use the rKward output system.
Example:
I have this script:
----------------------
## Carregar a tabela de riqueza e equitabilidade
library(gdata)
dadosriq <-
2011 Dec 18
2
write.xls dont find the object in function
Hi,
I try to use write.xls from dataframes2xls inside a function. The
write.xls work normally in console, but inside a function it dont find
the object.
Look this example:
> library(dataframes2xls)
> test <- function(x){
+ a <- data.frame(A=c(1,2),B=c(10,11))
+ write.xls(a,file="a.xls")
+ }
> test()
Erro em get(s[i]) : objeto 'a' não encontrado
Why the
2011 Dec 31
1
Simple problem
Hi,
when I use the install.packages() function this make a download of
packages, try do compile/install packages and delete the downloaded
file. But if the compilation of package fail, I need to make the
download again because R delete all downloaded file. How I can make
install.packages dont delete the downloaded file automatically to be
used again in case of compilation fail?
Thanks
2008 Sep 22
1
change the panel name in xyplot
Hi,
I try to change the panel name in a xyplot without success.
Look this example from xyplot manual:
xyplot(Murder ~ Population | state.region,data=states)
The panel title are:
Northeast, South, North Central, West, that are factor from state.region.
I need do change some names and, for example, put some of these in italic. I
dont find how change this.
I looking for this in Deepayan
2011 Apr 08
4
Very simple question
Hi,
I have a very simple doubt.
Look:
> teste <- c("A","B","C")
> teste2 <- paste(teste[1],teste[2],teste[3],sep="+")
> teste2
[1] "A+B+C"
>
How to make it automatic, like I try to use paste(teste,sep="+") but the
paste dont get the teste elements separately to join again in a unique
element.
Exist any
2009 Nov 25
1
Sampling dataframe
Hi,
I have a table like that:
> datatest
var1 var2 var3
1 1 1 1
2 3 1 2
3 8 1 3
4 6 1 4
5 10 1 5
6 2 2 1
7 4 2 2
8 6 2 3
9 8 2 4
10 10 2 5
I need to create another table based on that with the rules:
take a random sample by var2==1 (2 sample rows for example):
var1 var2 var3
1 1
2018 Apr 17
2
Hacked
I've been receiving nasty e-mails too. No g-mail, but official/work e-mail address.
-----Original Message-----
From: R-help <r-help-bounces at r-project.org> On Behalf Of Rui Barradas
Sent: Tuesday, April 17, 2018 5:09 PM
To: Ding, Yuan Chun <ycding at coh.org>; Fowler, Mark <Mark.Fowler at dfo-mpo.gc.ca>; Luis Puerto <luiss.puerto at gmail.com>; Peter Langfelder
2018 Apr 18
0
Hacked
Seems it must be the R-list. A horde of ?solicitation? emails began arriving about 27 minutes after I posted about not seeing any! Had left work by that time, so did not encounter them until now.
From: Mark Leeds [mailto:markleeds2 at gmail.com]
Sent: April 18, 2018 12:33 AM
To: Rui Barradas
Cc: Ding, Yuan Chun; Fowler, Mark; Luis Puerto; Peter Langfelder; R-Help ML R-Project; Neotropical bat