Re: [R] Problem Subsetting Rows that Have NA's

2017-10-24 Thread Ben Tupper
ct.org mailing list -- To UNSUBSCRIBE and more, see > 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. Ben Tupper Bigelow Laboratory for Ocean Sciences

Re: [R] Generating help files for a function

2017-12-16 Thread Ben Tupper
Houston - Downtown > mailto: erinm.hodg...@gmail.com > > [[alternative HTML version deleted]] > > __ > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://ww

Re: [R] httr::content without message

2018-01-02 Thread Ben Tupper
K Jr. > > __ > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commen

Re: [R] httr::content without message

2018-01-02 Thread Ben Tupper
r rather than putting the url in any of the read.csv or > read_csv type code allows me greater control if the request fails. > > Thanks again, > > -Roy > >> On Jan 2, 2018, at 9:44 AM, Ben Tupper wrote: >> >> Ahoy! >> >> That's a message g

Re: [R] roxygen2 error - x$tag operator is invalid for atomic vectors

2018-01-17 Thread Ben Tupper
> > __ > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > 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

Re: [R] how to add a child to a child in XML

2018-03-21 Thread Ben Tupper
p="") > > root <- addChildren(root$child1,xmlNode("child2",attrs=node3)) > > > > Error in UseMethod("addChildren") : no applicable method for 'addChildren' > applied to an object of class "NULL" > > > Stephen B

Re: [R] how to add a child to a child in XML

2018-03-22 Thread Ben Tupper
ote: > > Big thanks. newXMLNode works great. Wonder why it is not included in the > documentation. > There is newXMLDoc and newXMLNamespace, but no mention of newXMLNode. > > Stephen > > From: Ben Tupper [mailto:btup...@bigelow.org] > Sent: Wednesday, March 21

Re: [R] netCDF to GeoTIFF by layer in r

2018-03-28 Thread Ben Tupper
; > > Ahmed Attia, Ph.D. > Agronomist & Soil Scientist > > [[alternative HTML version deleted]] > > __________ > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo

Re: [R] Histogram of character elements

2018-06-07 Thread Ben Tupper
factor(df$group)) and histogram(df$freq ~ > as.factor(df$group)) report all groups on the x axis (that is good) > but all at 20% level. > > What am I missing? > Thank you. > > -- > Best regards, > Luigi > > __ > R-help@r-project.org mailing list -- To UN

Re: [R] Histogram of character elements

2018-06-07 Thread Ben Tupper
2018, at 7:02 AM, Luigi Marongiu wrote: > > also, with this approach, I need to re-arrange the data. Is it > possible to work directly on a dataframe? > On Thu, Jun 7, 2018 at 12:48 PM Ben Tupper wrote: >> >> Hi, >> >> Is this what you are after? >&g

Re: [R] aggregate and list elements of variables in data.frame

2018-06-07 Thread Ben Tupper
nzia Regionale per la Prevenzione e > Protezione Ambientale del Veneto > > Dipartimento Provinciale di Treviso > Via Santa Barbara, 5/a > 31100 Treviso, Italy > > tel: +39 0422 558545 > fax: +39 0422 558516 > e-mail: massimo.bres...@arpa.veneto.it > --

Re: [R] Generate random Bernoulli draws

2018-07-06 Thread Ben Tupper
sting guide http://www.R-project.org/posti >>> ng-guide.html >>> and provide commented, minimal, self-contained, reproducible code. >>> >> >> > > [[alternative HTML version deleted]] > > __ >

Re: [R] inconsistency in display of character vector....

2018-07-08 Thread Ben Tupper
/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > > [[alternative HTML version deleted]] > > __ > R-help@r-project.or

Re: [R] taking a small piece of large tiff

2017-04-05 Thread Ben Tupper
ucible code. > > ______ > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > 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, m

Re: [R] as.POSIXct character string is not in a standard unambiguous format

2017-04-05 Thread Ben Tupper
t -- To UNSUBSCRIBE and more, see > 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. Ben Tupper Bigelow Laboratory for Ocean Sciences 60 Bigelow Dr

[R] readr to generate tibble from a character matrix

2017-04-06 Thread Ben Tupper
the matrix to a file or paste it all into a character vector and then use read_* functions, but I confess I am looking for a straighter path by simply passing the matrix to a function like readr::read_matrix() or the like. Thanks! Ben Ben Tupper Bigelow Laboratory for Ocean Sciences 60 Bi

Re: [R] readr to generate tibble from a character matrix

2017-04-06 Thread Ben Tupper
7; but it get the job done. > > HTH > Ulrik > > On Thu, 6 Apr 2017 at 16:41 Ben Tupper <mailto:btup...@bigelow.org>> wrote: > Hello, > > I have a workflow yields a character matrix that I convert to a tibble. Here > is a simple example. > > libra

Re: [R] readr to generate tibble from a character matrix

2017-04-07 Thread Ben Tupper
sAsFactors=FALSE), type.convert, as.is=TRUE) >> as_tibble(mm) > # Your solution simplified by converting to a data.frame > >> as_tibble(lapply(as_tibble(m), type.convert, as.is=TRUE)) > # Ulrik's solution but without the pipes. Shows why you need 2 as_tibbles() > > ---

Re: [R] Maximum length for a -e argument to Rscript?

2017-04-21 Thread Ben Tupper
e script to a file and then execute > that file with Rscript, since that seems to work; but I was really hoping to > avoid that extra complication and overhead. Is there a better way? > > Thanks for any help you can provide! :-> > > Cheers, > -B. > > Benjami

Re: [R] Reading XML attriutes in R

2017-04-27 Thread Ben Tupper
ng a lot, thanks for reading and cheers! :) > > -- > Regards > Archit > > [[alternative HTML version deleted]] > > __ > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/ma

Re: [R] Reading XML attriutes in R

2017-04-28 Thread Ben Tupper
lated then as is. > > Unit Value Type > NANA NA > 3h0.0925 rain > > Thanks again and in advance ! > > Archit > > On Thu, Apr 27, 2017 at 6:27 PM, Ben Tupper wrote: > Hi, > > There might be an easy solution out there

Re: [R] Copy and Rename Folder in same directory

2017-05-08 Thread Ben Tupper
ting-guide.html > and provide commented, minimal, self-contained, reproducible code. Ben Tupper Bigelow Laboratory for Ocean Sciences 60 Bigelow Drive, P.O. Box 380 East Boothbay, Maine 04544 http://www.bigelow.org __ R-help@r-project.org mailing

Re: [R] Copy and Rename Folder in same directory

2017-05-08 Thread Ben Tupper
still getting FALSE and files are not getting copied from the > folder. However,if I give a single file name it copies that file to new > folder. > > Any thoughts ? > > On Mon, May 8, 2017 at 4:07 PM, Archit Soni <mailto:soni.archit1...@gmail.com>> wrote: > Tha

Re: [R] Nested for loop

2017-08-06 Thread Ben Tupper
timate)) + > geom_point(size = 2) + > geom_line() + > geom_hline(yintercept = N, col = "red", lwd = 1) + > coord_cartesian(xlim = c(0:100), ylim = c(300:500)) + > scale_x_continuous(breaks = pretty_breaks(11)) + > scale_y_continuous(breaks = pretty_breaks(11)) + >

Re: [R] Nested for loop

2017-08-07 Thread Ben Tupper
> population differs. I can do this separately, but I'm having trouble putting > them all on the same graph. > > I'd like to have sample on the x axis (1-300) and estimate on the y axis. I > want to show how population affects the estimates. > > Does this make

Re: [R] really dumb question with building/creating a new package.

2017-08-17 Thread Ben Tupper
; > > -- > Erin Hodgess > Associate Professor > Department of Mathematical and Statistics > University of Houston - Downtown > mailto: erinm.hodg...@gmail.com > > [[alternative HTML version deleted]] > > __ > R-help@r-project.org mailing list --

Re: [R] rgdal error when trying to import raster

2017-09-06 Thread Ben Tupper
an to be quiet, > and he'll be silent for a moment. > Feed a man to a red dragon > and he'll be silent for a lifetime." > -Anne Isabella Thackeray Ritchie > > __________ > R-help@r-project.org mailing list -- To UNSUBSCRIBE and m

Re: [R] rgdal error when trying to import raster

2017-09-06 Thread Ben Tupper
brary(rgdal) and none of the other libraries that are loaded require >> rgdal. The package raster does suggest it though. Is that causing the >> problem? Is there a way to avoid this? Any help is welcome. >>> >>> best, >>> >>> John >>> >>

Re: [R] UUIDgenerate() withn a s4 class produces the same uuid at each instance

2016-06-08 Thread Ben Tupper
; An object of class "C" Slot "id": [1] > "1e07d7c2-2d71-11e6-b5e1-e1f59d8ccf09" > > Calling UUIDgenerate() successively at the R command line produces > different UUIDS each time. > > Where do I go wrong? > > Thanks > > Servet >

Re: [R] documenting R reference class methods with roxygen2

2016-07-20 Thread Ben Tupper
t; __ > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > 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-

Re: [R] splitting a vector of strings

2016-07-21 Thread Ben Tupper
> MIVEGEC. - UMR (CNRS/IRD/UM) 5290 > Maladies Infectieuses et Vecteurs, Génétique, Evolution et Contrôle > Institut de Recherche pour le Développement (IRD) > 911, Avenue Agropolis > BP 64501 > 34394 Montpellier Cedex 5, France > > __ &

Re: [R] How to add overall xlabel and ylabel?

2016-09-25 Thread Ben Tupper
lp@r-project.org mailing list -- To UNSUBSCRIBE and more, see > 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. Ben Tupper Bigelow Laboratory f

Re: [R] Efficient means to link two data frames

2016-09-29 Thread Ben Tupper
Than.com <http://www.plessthan.com/> > > > > > > [[alternative HTML version deleted]] > > __ > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-h

Re: [R] generate a list as follows: 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, . . . . ., n, n, n, n

2015-04-20 Thread Ben Tupper
On Apr 19, 2015, at 9:44 AM, John Sorkin wrote: > Windows 7 64-bit > R 3.1.3 > RStudio 0.98.1103 > > > I am trying to generate a list of length 4n which consists of the integers 1 > to n repeated in groups of four, i.e. > > 1,1,1,1, 2,2,2,2, 3,3,3,3, . . . . , n,n,n,n > Hi, Like this?

Re: [R] Interactive maps

2015-04-27 Thread Ben Tupper
't >>> have >>> to produce it >> using R. >>>> >>>> When the user clicks > anywhere in the map, the >>> coordinates >> (longitude and latitude) have to be > passed to R so that this, R, >>> can >>> look &g

Re: [R] Comparing 2 different files in R

2015-05-17 Thread Ben Tupper
Hi, On May 17, 2015, at 6:56 AM, Lyle Warren wrote: > Thanks and sorry for being light on detail. > > I have multiple files of raw human genome SNP data. Very large - the > compressed zip files are about 8mb large. > You'll have better luck asking on the Bioconductor help list ( http://www.b

Re: [R] Basic editing of XML file

2015-08-13 Thread Ben Tupper
t; __ > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > 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-con

Re: [R] backslash quirk in paste

2014-12-06 Thread Ben Tupper
ample, in documenting this. > > Best, JN > > __ > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-gu

Re: [R] Checking if a logical variable exists

2014-12-14 Thread Ben Tupper
__ > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > 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. Ben Tupper Bigel

Re: [R] list of lists, is this element empty

2014-12-20 Thread Ben Tupper
ad the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. Ben Tupper Bigelow Laboratory for Ocean Sciences 60 Bigelow Drive, P.O. Box 380 East Boothbay, Maine 04544 http://www.bigelow.org

Re: [R] Do NOT use ifelse() if you can use if(.) else . [was "Checking .."]

2014-12-23 Thread Ben Tupper
an median uq max neval cld > r1 <- ifelse(z > 3, x, y) 4466 4971.5 5498.928 5244 5673.5 31705 1000 b > r2 <- if (z > 3) x else y 171 212.0 265.241264 291.0 3130 1000 a >> > > i.e., roughly a factor of 20 times more efficient > Wow! T

[R] Interesting article on R

2014-12-30 Thread Ben Tupper
Hi, In case you missed it... http://www.nature.com/news/programming-tools-adventures-with-r-1.16609 Cheers, Ben Ben Tupper Bigelow Laboratory for Ocean Sciences 60 Bigelow Drive, P.O. Box 380 East Boothbay, Maine 04544 http://www.bigelow.org __ R

Re: [R] Cube of Matrices or list of Matrices

2015-01-19 Thread Ben Tupper
Hi, On Jan 18, 2015, at 4:36 PM, Karim Mezhoud wrote: > Dear All, > I am trying to get correlation between Diseases (80) in columns and > samples in rows (UNEQUAL) using gene expression (at less 1000,numeric). For > this I can use CORREP package with cor.unbalanced function. > > But before to

Re: [R] Cube of Matrices or list of Matrices

2015-01-19 Thread Ben Tupper
> > for (i in 1:80){ > > > > Cublist$Diseases[[gene[k] ]] <- Cubist$Expression[[Diseases[i] ]][k] > > } > > > > } > > > > This double loops is time consuming...Is there a way to do this faster? > > > > Thanks, > > karim &

Re: [R] Cube of Matrices or list of Matrices

2015-01-19 Thread Ben Tupper
> [3,]5 1079 11 > [4,] NA 118 10 12 > [5,] NA 129 11 13 > [6,] NA 13 NA 12 14 > [7,] NA 14 NA 13 15 > [8,] NA 15 NA NA 16 > [9,] NA NA NA NA 17 > > Ben > >> Thanks >> K

Re: [R] How to use curve() function without using x as the variable name inside expression?

2015-01-31 Thread Ben Tupper
Hi Philippe, Ah! Thanks for pointing out the pesky ifelse() issue. I have only recently been learning (the hard way) that ifelse() is not a tool for the uninformed like me, but it is ever so tempting! I would like to offer another way to speed things up. findInterval() can be quite fast, and

Re: [R] Categorizing by month

2015-03-27 Thread Ben Tupper
, format: "2000-10-01" "2001-10-01" "2002-10-01" "2003-10-01" ... $ 11: POSIXct[1:10], format: "2000-11-01" "2001-11-01" "2002-11-01" "2003-11-01" ... $ 12: POSIXct[1:10], format: "2000-12-01" "2001-12-01" "2002-12

Re: [R] Help with POSIX

2015-03-30 Thread Ben Tupper
Hi, On Mar 30, 2015, at 9:15 PM, Doran, Harold wrote: > I�m struggling a bit with learning about POSIX objects to do some basic > things with objects of this class. Suppose I have the following simple example > > times <- c("03:20", "29:56", "03:30", "21:03", "56:26") > > aa <- strptime(time

Re: [R] error with the expand.grid command

2018-08-09 Thread Ben Tupper
ved products were generally > computed with the standard SeaDAS algorithms. QAA IOPs were derived using > the standard SeaDAS algorithm but with a modified backscattering table to > match that used in the bandshifting. The final chlorophyll is a combination > of OC4, Hu's CI

Re: [R] Understanding read.csv error message

2018-08-18 Thread Ben Tupper
le code. > > -- > Peter Dalgaard, Professor, > Center for Statistics, Copenhagen Business School > Solbjerg Plads 3, 2000 Frederiksberg, Denmark > Phone: (+45)38153501 > Office: A 4.23 > Email: pd@cbs.dk Priv: pda...@gmail.com > > __

Re: [R] Casting Date to char

2018-09-05 Thread Ben Tupper
ng list -- To UNSUBSCRIBE and more, see > 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. > Ben Tupper Bigelow Laboratory for Ocean Sciences 60 Bi

Re: [R] Sp-package overlay

2018-10-02 Thread Ben Tupper
SUBSCRIBE and more, see > 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. > Ben Tupper Bigelow Laborator

Re: [R] gemo_text issue

2018-11-27 Thread Ben Tupper
; zp1 <- zp1 + scale_y_continuous(breaks = 0:6, expand = c(0, 0)) > zp1 <- zp1 + coord_fixed() > zp1 <- zp1 + theme_bw() > print(zp1) > > ### Add title and lines ### > zp1 <- zp1 + ggtitle("5x5 Plot")+theme(plot.title = element_text(hjust = 0.5)) > zp1 <- zp1 + geom_vline(xintercept=c(1.5:5.5)) >

Re: [R] POSIXct format

2018-12-04 Thread Ben Tupper
elp@r-project.org mailing list -- To UNSUBSCRIBE and more, see > 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. Ben Tupper Bigelow Laboratory for O

Re: [R] Width of a text

2018-12-12 Thread Ben Tupper
roject.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. Ben Tupper Bigelow Laboratory for Ocean Sciences 60 Bigelow Drive, P.O. Box 380 East Boothbay, Maine 04544 http://www.bigelow.org Ecological Forecasting: https://eco.bigelow.org/ [[alternativ

Re: [R] I can't get seq to behave how I think it should

2019-01-17 Thread Ben Tupper
Hi, This looks like a floating point reality bump - see https://cran.r-project.org/doc/FAQ/R-FAQ.html#Why-doesn_0027t-R-think-these-numbers-are-equal_003f You can use other methods to finding

Re: [R] Finding the Mean of a Specific Set of Columns

2019-02-14 Thread Ben Tupper
native HTML version deleted]] > > __ > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and

Re: [R] Randomization Test

2019-02-27 Thread Ben Tupper
> discrimination, but it is important to note which assumptions have to be >>> (implicitly) made. >>> * I'm not sure what you mean by "mean differences" of the events - is that >>> two groups you are comparing? If so, that seems reasonable, but just mak

Re: [R] looking for 'tied rows' in dataframe

2019-03-18 Thread Ben Tupper
ut I'm stuck beyond this. >> >> The following gets me pretty close, >> >> test_new <- test >> test_new[which(apply(test,1,isUnique)==FALSE),] <- 'T' >> >> but is clunky. >> >> >> >> >> >> >

Re: [R] How to overlay a vector map (polygon) on raster maps?

2019-04-11 Thread Ben Tupper
w")) > > thanks > > > [[alternative HTML version deleted]] > > __________ > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE d

Re: [R] How to overlay a vector map (polygon) on raster maps?

2019-04-11 Thread Ben Tupper
; bottom's image and y values for each image. > > I added the following code on your code > grid.arrange(PP[[1]],PP[[2]],PP[[3]]) > > But, as I mentioned above, I can get three separate images with its own > legend and X and Y axix > Thanks, > > From: Ben Tup

Re: [R] How to overlay a vector map (polygon) on raster maps?

2019-04-11 Thread Ben Tupper
> > min_ > = min(minValue(xras), minValue(yras)) > > max_ > = max(maxValue(xras), maxValue(yras)) > > r.range > = c(min_, max_) > > > levelplot > (stack(xras, yras), col.regions = rev(rainbow(99, start=0, end=1)), colorkey > = list(space = "bottom&q

Re: [R] Depth vs Temp graph for different transects

2014-09-01 Thread Ben Tupper
On Sep 1, 2014, at 12:32 PM, David Winsemius wrote: > > On Sep 1, 2014, at 3:52 AM, Tinus Sonnekus wrote: > >> Hi All, >> >> Have the following code. The graph works well plotting the 15 transect for >> me however the legend shows a total of 22 transects. The original data has >> 22 transects

Re: [R] "missings=function(x) x[x==998|x==999]<-NA" doesn't work...

2014-09-18 Thread Ben Tupper
Hi, On Sep 18, 2014, at 10:13 AM, Doreen Mueller wrote: > Hi! > > I want to have a function that assigns NAs to certain values of my > variable "var" in the dataset "d". This doesn't work: > >> missings=function(x) x[x==998|x==999]<-NA >> missings(d$var) >> table(d$var, useNA="always") > >

Re: [R] Injecting a column of characters to a matrix of numerics

2014-10-29 Thread Ben Tupper
Hi, On Oct 29, 2014, at 11:41 AM, Steven Yen wrote: > Hello > I am designing a regression printout, which works out nicely. Then, I try to > inject a column of characters to indicate a discrete regressor with a dot > (.). Then, all numbers seem to turn into characters, in quotations. Is there

Re: [R] Why would something work in R but not Rscript?

2014-11-19 Thread Ben Tupper
Hi, On Nov 19, 2014, at 11:48 AM, Jeff Hansen wrote: > I have a script that uses RWeka (and consequently rJava). When I run > it in Rstudio everything works fine. When I run it with `R CMD BATCH`, > everything also works fine. However, when I run it with Rscript, I get > the following error: >

Re: [R] Extracting XML value

2015-09-03 Thread Ben Tupper
nction. I have > lost something in translation and I am unable to extract the value. my > understanding is I have one node with no children, correct? > > -Glenn > > > __ > R-help@r-project.org mailing list -- To UNSUBSCRI

Re: [R] How to plot shades between curves?

2015-10-18 Thread Ben Tupper
2,9602,9752,9902) > > [[alternative HTML version deleted]] > > __________ > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-

Re: [R] Graphing the Area of Definite Integral

2015-11-27 Thread Ben Tupper
___ > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > 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, reproduci

Re: [R] "par(tcl=0.5,las=1)" doesn't work

2016-01-07 Thread Ben Tupper
Hi, I think it may be the order in which your par() configuration occurs relative to png(). When you open a new device, as you have with png(), the default par() values for that device are exposed. If you move your par() statement to *after* your call to png() you get the result you desire. S

Re: [R] Extracting point data using longitude and latitude from netcdf file using R

2016-01-09 Thread Ben Tupper
iling list -- To UNSUBSCRIBE and more, see >> 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. > > _

Re: [R] Extracting point data using longitude and latitude from netcdf file using R

2016-01-09 Thread Ben Tupper
ight_lon_lat[2], lat ) > > # I end up with this error, "Error: could not find function "wherenearest" > > Is there any other way I can get the index corresponding/or rearing to the > longitude and latitude of interests? > > _ > Peter E. Tuju >

Re: [R] EXTRACT POINT DATA FROM NETCDF FILE

2016-01-15 Thread Ben Tupper
_lon_lat[2], lat ) > iy1 = wherenearest( upper_right_lon_lat[2], lat ) > > countx = ix1 - ix0 + 1 > county = iy1 - iy0 + 1 > > rainc = get.var.ncdf( inp_file, "RAINC", start = c( ix0, iy0, 1 ), count = c( > countx, county, 1 )) > _ > Peter E. Tuju

Re: [R] Reading a tab delimted file of varying length using read.table

2016-01-17 Thread Ben Tupper
lternative HTML version deleted]] > > __ > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and p

Re: [R] Basic Problem with Data Input

2016-02-07 Thread Ben Tupper
> P.S. I apologize, but I sent the first “edition” a few minutes ago without a > Subject and not quite finished up. > > > > [[alternative HTML version deleted]] > > __________ > R-help@r-project.org mailing list -- To UNS

Re: [R] Variable Argument Function

2016-02-07 Thread Ben Tupper
//www.R-project.org/posting-guide.html >> and provide commented, minimal, self-contained, reproducible code. >> > > __ > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-hel

Re: [R] Split a character string with two separators

2016-02-18 Thread Ben Tupper
o read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. Ben Tupper Bigelow Laboratory for Ocean Sciences 60 Bigelow Drive, P.O. Box 380 East Boothbay, Maine 04544 http://www.bigelow.org ___

Re: [R] KNN

2016-02-25 Thread Ben Tupper
t;>> PLEASE do read the posting guide >>>> http://www.R-project.org/posting-guide.html >>>> and provide commented, minimal, self-contained, reproducible code. >> >> > > __ >

Re: [R] Get object name inside lapply

2016-02-25 Thread Ben Tupper
Hi, Using your example (note I called the list 'z')... z <-list(a = seq(1:5), b = seq(10:20)) I picture lapply as extracting each element of z like this z[[i]] - the `[[` extracts the ith value from the context of residing in a list - hence it's name is 'lost' in the new context. That's diffe

Re: [R] source() is 'bombing'

2016-03-01 Thread Ben Tupper
please delete it and > all copies from your system and notify the sender immediately by return > message. > > E-mail communication cannot be guaranteed to be timely secure, error or > virus-free. > __________ > R-help@r-project.org mailing list

Re: [R] Please guide -- Error during export in csv format

2016-03-21 Thread Ben Tupper
,'.csv')) > >write.csv(posts_frame, file=my.file2, row.names = F) >write.csv(likes_frame, file = my.file1, row.names = F) > > Regards, > Sunny > > __ > R-help@r-project.org mailing list -- To UNSUBSCRIBE

Re: [R] Question about Imager

2016-03-25 Thread Ben Tupper
> 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. Ben Tupper Bigelow Laboratory for Ocean Sciences 60 Bigelow Drive, P.O. Box 380 East Boothb

Re: [R] Using R for cURL commands

2016-04-01 Thread Ben Tupper
der and/or addressee immediately and delete the > material. Thank you. > > [[alternative HTML version deleted]] > > __ > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-hel

[R] installation of dplyr

2016-04-19 Thread Ben Tupper
error similar to the other but not quite exactly the same - the error messages sail right over my head. I can contact the package author if that would be better, but thought it best to start here. Thanks! Ben Ben Tupper Bigelow Laboratory for Ocean Sciences 60 Bigelow Drive, P.O. Box 380 East

Re: [R] installation of dplyr

2016-04-19 Thread Ben Tupper
Hi, OK - that can be fixed by our IT whizzes. Thanks, Ben P.S. Thanks for dplyr! > On Apr 19, 2016, at 4:10 PM, Hadley Wickham wrote: > > You normally see these errors when compiling on a vm that has very > little memory. > Hadley > > On Tue, Apr 19, 2016 at 2:47

Re: [R] installation of dplyr

2016-04-20 Thread Ben Tupper
Increasing memory resolved the issue for me. Thanks again, Ben > On Apr 19, 2016, at 4:10 PM, Hadley Wickham wrote: > > You normally see these errors when compiling on a vm that has very > little memory. > Hadley > > On Tue, Apr 19, 2016 at 2:47 PM, Ben Tupper wrote:

Re: [R] Could not find function "pointsToRaster"

2016-04-30 Thread Ben Tupper
read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. Ben Tupper Bigelow Laboratory for Ocean Sciences 60 Bigelow Drive, P.O. Box 380 East Boothbay, Maine 04544 http://www.bigelow.org

Re: [R] Could not find function "pointsToRaster"

2016-04-30 Thread Ben Tupper
; > library(maps) > w = map("world") > wc = cbind(w$x, w$y) > wc=wc[!is.na(wc[,1]),] > write.table(wc, file = "my.fileb", sep=" ",row=FALSE,col=FALSE) > my<-read.table("my.out",col.names=c("a","b")) > rena = fu

Re: [R] projectRaster function no values

2016-05-18 Thread Ben Tupper
3.2.3 in a Linux/Unix > environment. > > Many thanks for your help! > > Adrienne > -- > Adrienne Wootten > Ph.D Candidate / Graduate Research Assistant > State Climate Office of North Carolina > Department of Marine, Earth and Atmospheric Sciences > North Carolina St

[R] lattice: control panel extent on device

2016-10-25 Thread Ben Tupper
1] lattice_0.20-33 loaded via a namespace (and not attached): [1] tools_3.3.1 grid_3.3.1 Ben Tupper Bigelow Laboratory for Ocean Sciences 60 Bigelow Drive, P.O. Box 380 East Boothbay, Maine 04544 http://www.bigelow.org __ R-help@r-project.org mai

Re: [R] lattice: control panel extent on device

2016-10-25 Thread Ben Tupper
> Cheers, > Bert > > > On Oct 25, 2016 2:55 PM, "Ben Tupper" <mailto:btup...@bigelow.org>> wrote: > Hello, > > I am drawing a levelplot and an xyplot on a single device as shown in the > runnable example below. I would like the x axes to align - th

Re: [R] [FORGED] Re: lattice: control panel extent on device

2016-10-25 Thread Ben Tupper
his do what you want ? > > library(latticeExtra) > c(vol_p, xy_p, x.same=TRUE) > > Paul > > On 26/10/16 04:30, Ben Tupper wrote: >> Thanks, Bert. >> >> I have used latticeExtra for layering graphics. I'm not sure how I >> would use it to align gra

Re: [R] [FORGED] lattice: control panel extent on device

2016-10-25 Thread Ben Tupper
t; # Force (width of) left axis labels to be the same > xy_p <- xyplot(y ~ x, data = xy, xlim=xscale, > scales=list(y=list(at=seq(100, 200, 20), > labels=rep(" ", 11 > print(xy_p, newpage=FALSE, prefix="xy_p")

Re: [R] [FORGED] lattice: control panel extent on device

2016-10-26 Thread Ben Tupper
ayout.widths$ylab <- list(x=1, units="cm", data=NULL) > layout.widths$panel <- list(x=width, units="in", data=NULL) > layout.widths$key.right <- list(x=1, units="cm", data=NULL) > lattice.options(layout.widths=layout.widths) > # Force (width of) left axi

Re: [R] [FORGED] [FORGED] lattice: control panel extent on device

2016-10-27 Thread Ben Tupper
lt;- x[[n]]$y.limits >yticks <- axisTicks(yrange, FALSE) >x[[n]] <- update(x[[n]], > scales=list(y=list(at=yticks, > labels=rep(" ", > length(yticks) >

Re: [R] How to create a list of trellis objects for grid.arrange()

2016-10-30 Thread Ben Tupper
ted, minimal, self-contained, reproducible code. > > __ > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/pos

Re: [R] Question about using ggplot

2016-11-13 Thread Ben Tupper
english skills..:( > > __ > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/pos

Re: [R] Merra2 files

2016-11-27 Thread Ben Tupper
ASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. Ben Tupper Bigelow Laboratory for Ocean Sciences 60 Bigelow Drive, P.O. Box 380 East Boothbay, Maine 04544 http://www.bigelow.org ___

Re: [R] Convert arc-second to degree

2016-11-29 Thread Ben Tupper
ve HTML version deleted]] > > __ > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/p

Re: [R] Error: XYZ is not an exported object

2016-12-10 Thread Ben Tupper
www.R-project.org/posting-guide.html >> and provide commented, minimal, self-contained, reproducible code. > > __ > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-help > PLEA

  1   2   3   >