Re: [R] group by rows

2016-03-09 Thread carol white via R-help
n text, and try to explain more clearly what you want the result to look like. Sarah On Wed, Mar 9, 2016 at 7:09 AM, carol white via R-help <r-help@r-project.org> wrote: > How is it possible to group rows of a matrix or a data frame by the same > values of the first column? > 1 14331 453

[R] group by rows

2016-03-09 Thread carol white via R-help
How is it possible to group rows of a matrix or a data frame by the same values of the first column? 1 14331 453452 653 3762 45 1 1433,453452 45, 653 376 Thanks Carol [[alternative HTML version deleted]] __ R-help@r-project.org mailing list

[R] Change the location of R

2016-03-02 Thread carol white via R-help
Hi,I have R v 3.0 installed /usr/... and the new version R-3.2.3 in my home under ubuntu. Is it correct to copy the R-3.2.3 directory into /usr/local/lib/R/ or should I reconfig and remake into /usr/local/lib/R/? Regards, Carol [[alternative HTML version deleted]]

[R] determine the year of a date

2016-02-03 Thread carol white via R-help
Hi,might be trivial but how to determine the year of a date which is in the %m/%d/%y format and those whose year is century should be modified to ISO so that all date will have with year in ISO? Regards, Carol [[alternative HTML version deleted]]

Re: [R] determine the year of a date

2016-02-03 Thread carol white via R-help
eed to convert the string to a time object > and the time object back to string. The format specifier %Y prints four-digit > years: > > > d <- "7/27/59" > strptime(d, format="%m/%d/%y")  # "2059-07-27 EDT" > x <- strptime(d, format="%m/%d/

[R] logical vector of the indices of a string in a vector

2016-01-24 Thread carol white via R-help
Hi, it might be trivial but is there any way to get the logical vector of the indices of a string in a vector? I thought that %in% would do but it doesn't. I also want to filter the empty fields. Here I want to extract the non-empty elements containing "Yes":x =c("Yes, fsd", "", "No","","Yes,

Re: [R] warning on generic function when building R package

2015-10-20 Thread carol white via R-help
uot;Must have an x value")  if(missing(y)) stop("Must have a y value") ...} Jim On Tue, Oct 20, 2015 at 7:32 AM, carol white via R-help <r-help@r-project.org> wrote: In effect, this works but whether I use x or x.init, y or y.init in plot.func, I get no visible binding for global v

Re: [R] warning on generic function when building R package

2015-10-19 Thread carol white via R-help
le", # can't skip the arg name                     col, arg5,                     ...)  {          # can't skip the dots Duncan Murdoch > > Regards, > > On Monday, October 19, 2015 7:45 PM, Duncan Murdoch > <murdoch.dun...@gmail.com> wrote: > > > On 19/1

Re: [R] warning on generic function when building R package

2015-10-19 Thread carol white via R-help
", main = "title", col = col,type = "l") then, how to define and invoke to be consisent? Regards, On Monday, October 19, 2015 7:45 PM, Duncan Murdoch <murdoch.dun...@gmail.com> wrote: On 19/10/2015 1:29 PM, carol white via R-help wrote: > Hi,I have invo

[R] warning on generic function when building R package

2015-10-19 Thread carol white via R-help
Hi,I have invoked plot in a function (plot.func) as follows but when I check the built package, I get a warning: plot(x.pt,y.pt,xlim = c(0, 10), ylim = c(0,1), xlab= "xlab", ylab="ylab", main = "title", col = col,type = "l")  R CMD check my.package checking S3 generic/method consistency ...

Re: [R] [FORGED] change text size on a graphics

2015-07-21 Thread carol white via R-help
via R-help wrote: Hi,How is it possible to increase the size of a histogram labels (displayed on the top of the bars)? I thought that if I use cex 1, it will increase all text size on a plot (axis labels, axis annotation, title of the graphics and histogram labels) which I want but it doesn't

[R] change text size on a graphics

2015-07-20 Thread carol white via R-help
Hi,How is it possible to increase the size of a histogram labels (displayed on the top of the bars)? I thought that if I use cex 1, it will increase all text size on a plot (axis labels, axis annotation, title of the graphics and histogram labels) which I want but it doesn't. Regards, Carol

Re: [R] load a very big .RData - error reading from connection

2015-06-09 Thread carol white via R-help
yes and doesn't help.600MB Thanks Carol On Tuesday, June 9, 2015 12:22 PM, Jim Lemon drjimle...@gmail.com wrote: Hi carol, Have you tried renaming the file to something like my.RData? And just how big is it? Jim On Tue, Jun 9, 2015 at 5:50 AM, carol white via R-help r-help@r

[R] load a very big .RData - error reading from connection

2015-06-08 Thread carol white via R-help
Hi,How is it possible to load a very big .RData that can't be loaded it's very big and the following error msg is displayed load(.RData) Error: error reading from connection Thanks Carol   [[alternative HTML version deleted]] __

[R] building a list in a loop

2015-06-05 Thread carol white via R-help
It might be an easy question but how to construct correctly a list in a loop? The following doesn't work before starting the loopd = NULL#in the loop, 1st iteration d = list(d,c(1,2,3)d[[1]] NULL [[2]] [1] 1 2 3#in the loop, 2nd iterationd=list(d,c(4,5,6)d [[1]] [[1]][[1]] NULL [[1]][[2]] [1]

Re: [R] building a list in a loop

2015-06-05 Thread carol white via R-help
-Original Message- From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of carol white via R-help Sent: Friday, June 05, 2015 10:40 AM To: R-help Help Subject: [R] building a list in a loop It might be an easy question but how to construct correctly a list in a loop? The following

Re: [R] building a list in a loop

2015-06-05 Thread carol white via R-help
Message- From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of carol white via R-help Sent: Friday, June 05, 2015 10:40 AM To: R-help Help Subject: [R] building a list in a loop It might be an easy question but how to construct correctly a list in a loop? The following doesn't

[R] merge function

2015-06-01 Thread carol white via R-help
Hi,By default the merge function should take the intersection of column names (if this is understood from by = intersect(names(x), names(y)), but it takes all columns. How to specify the intersection of column names?  Thanks Carol [[alternative HTML version deleted]]

Re: [R] merge function

2015-06-01 Thread carol white via R-help
will have 3 col, namely col1, col2, col3 but all 5 col, i.e. col1, col2... col5 are taken if nothing is specified for the by arg. Cheers, On Monday, June 1, 2015 4:32 PM, Michael Dewey li...@dewey.myzen.co.uk wrote: On 01/06/2015 14:46, carol white via R-help wrote: Hi,By default

Re: [R] package.skeleton warning

2015-04-29 Thread carol white via R-help
. Duncan Murdoch Thanks On Tuesday, April 28, 2015 4:48 PM, Duncan Murdoch murdoch.dun...@gmail.com wrote: On 28/04/2015 10:05 AM, carol white via R-help wrote:   Hi,Why do I get this warning when I run package.skeleton() and how to solve this problem? Warning messages: 1

[R] package.skeleton warning

2015-04-28 Thread carol white via R-help
Hi,Why do I get this warning when I run package.skeleton() and how to solve this problem? Warning messages: 1: In package.skeleton(name = myPackage, code_files = ~/Desktop/myPkg/R/) :   Invalid file name(s) for R code in ./myPackage/R:   'R'  are now renamed to 'zname.R' 2: In file.rename(from =

[R] reverse dep of a package

2015-04-28 Thread carol white via R-help
Hi,How to cite reverse dependancies in the NAMESPACE file in building a package? Regards, Carol [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see

Re: [R] package.skeleton warning

2015-04-28 Thread carol white via R-help
if I upload and have them as R objects, I shouldn't have to list them in the list arg. Thanks On Tuesday, April 28, 2015 4:48 PM, Duncan Murdoch murdoch.dun...@gmail.com wrote: On 28/04/2015 10:05 AM, carol white via R-help wrote:   Hi,Why do I get this warning when I run

Re: [R] reverse dep of a package

2015-04-28 Thread carol white via R-help
yes, reverse dependency. All the reverse dependancies on the main web page of the packages are generated by CRAN? Thanks On Tuesday, April 28, 2015 5:02 PM, Duncan Murdoch murdoch.dun...@gmail.com wrote: On 28/04/2015 8:54 AM, carol white via R-help wrote: Hi,How to cite reverse

[R] cite publications in the package help file

2015-04-28 Thread carol white via R-help
To cite related publications, it seems that they can't be mentioned in  DESCRIPTION. Where to mention so that it appears on the 1st page of  the pdf help file and the package main web page? I'm not talking about what is specified in  inst/citation.  Thanks, Carol [[alternative HTML

Re: [R] cite publications in the package help file

2015-04-28 Thread carol white via R-help
, 2015 7:37 PM, Duncan Murdoch murdoch.dun...@gmail.com wrote: On 28/04/2015 1:00 PM, carol white via R-help wrote: To cite related publications, it seems that they can't be mentioned in  DESCRIPTION. Where to mention so that it appears on the 1st page of  the pdf help file and the package

Re: [R] cite publications in the package help file

2015-04-28 Thread carol white via R-help
, carol white via R-help wrote: To cite related publications, it seems that they can't be mentioned in  DESCRIPTION. Where to mention so that it appears on the 1st page of  the pdf help file and the package main web page? I'm not talking about what is specified in  inst/citation. The package

[R] view large tables

2015-02-17 Thread carol white via R-help
what is the best function to view large tables or data frames, scrolling down-up, left-right? Thanks c. [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see