Re: [R] Barplot for data frame

2023-11-29 Thread Ben Tupper
Another great resource is RSeek.org https://rseek.org/?q=barplot On Wed, Nov 29, 2023 at 4:26 AM Ivan Krylov wrote: > В Wed, 29 Nov 2023 00:29:49 + > Livio Beqiri пишет: > > > how can i create a vertical barplot that displays brands in x-axis > > and Revenue in Y-axis > > What have you

Re: [R] intersection in data frame

2022-10-13 Thread Ben Tupper
Hi, If you are game to use a tidy approach then you can use tidyr::pivot_wider() library(dplyr) library(tidyr) x <- dplyr::tribble( ~ID, ~station, ~value, 12, "xy", 15, 12, "xz", 20, 13, "xy", 16, 13, "xz", 19) tidyr::pivot_wider(x, names_from = station,

Re: [R] Reading very large text files into R

2022-09-29 Thread Ben Tupper
fo/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 (he/him) Bigelow Laboratory for Ocean Science East Boothbay, Maine http://www.bigelow.org/ https://eco.bige

Re: [R] Error generated by nlme::gnls

2022-07-23 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. --

Re: [R] Reference factors inside split

2022-07-11 Thread Ben Tupper
ata = myts, main = unique(myts$corp))}) > > # Now I can print one plot at a time > myplots[["ABC"]] > myplots[["XYZ"]] > > __ > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.eth

Re: [R] What to do when problems() returns nothing

2021-11-04 Thread Ben Tupper
s://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 (he/him) Bigelow Laboratory for Ocean Science East Boothbay, Maine http

Re: [R] Putting colours in ggplot facets

2021-10-25 Thread Ben Tupper
n=-Inf,ymax=Inf,alpha = 0.3)+ scale_fill_manual(values=colr)+ geom_bar(stat="identity")+ facet_grid(est~geo) On Mon, Oct 25, 2021 at 10:37 PM Ben Tupper wrote: > > Hi, > > I don't quite follow what you want to achieve - colored backgrounds > for each panel? You could

Re: [R] Putting colours in ggplot facets

2021-10-25 Thread Ben Tupper
min=-Inf,ymax=Inf,alpha = 0.3)+ >scale_fill_manual(values=colr)+ >geom_bar(stat="identity")+ >facet_grid(est~geo) > p0 > > I have tried several approaches and Googled for help, but to no avail. I > am getting the error message: Error: Aesthetics must be e

Re: [R] Specifying plot file name in the rscript

2021-03-09 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] change frequency of wind data correctly

2020-12-06 Thread Ben Tupper
O IMPORTANTE: Questo messaggio di posta elettronica può contenere > informazioni confidenziali, pertanto è destinato solo a persone autorizzate > alla ricezione. I messaggi di posta elettronica per i client di Regione > Marche possono contenere informazioni confidenziali e con privilegi l

Re: [R] How to understand the mentality behind tidyverse and ggplot2?

2020-11-18 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, re

Re: [R] getting raster layer between December and march in 1-year raster

2020-07-28 Thread Ben Tupper
.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] Help with ggplot error: #Error in FUN(X[[i]], ...) : object 'x' not found

2020-05-19 Thread Ben Tupper
", "MILLINOCKET", "MILNER", "MILTON", "MILWAUKEE", > "MINEOLA", "MINERAL SPGS", "MINERAL WELLS", "MINNEAPOLIS", "MISSION", > "MISSION HILLS", "MISSION VIEJO", "MISSOURI CI

Re: [R] the volcano orientation

2020-05-10 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

Re: [R] COVID-19 datasets...

2020-05-04 Thread Ben Tupper
s://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 Science East Boothbay, Maine http://www.bigelow.org

Re: [R] Package renv and Rscript

2020-04-14 Thread Ben Tupper
anecdote is not data. ~ Roger Brinner > The combination of some data and an aching desire for an answer does not > ensure that a reasonable answer can be extracted from a given body of data. > ~ John Tukey > > ////////

Re: [R] Package renv and Rscript

2020-04-14 Thread Ben Tupper
rguments along. So, in this case, there's no way to communicate the configuration file to the script. Is there a recommended way to call Rscript such that the renv environment gets picked up? Thanks! Ben On Tue, Apr 14, 2020 at 1:41 PM Ben Tupper wrote: > Hi, > > I am using renv (ht

[R] Package renv and Rscript

2020-04-14 Thread Ben Tupper
/to/config_file'. I planned to use renv::run('/path/to/script.R', -- Ben Tupper Bigelow Laboratory for Ocean Science East Boothbay, Maine http://www.bigelow.org/ https://eco.bigelow.org [[alternative HTML version deleted]] __ R-help@r-project.org

Re: [R] Package httr::GET() question

2020-02-19 Thread Ben Tupper
://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 Science West Boothbay Harbor, Maine http://www.bigelow.

Re: [R] How to extract or sort values from one column

2020-01-31 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 Tu

Re: [R] Plotting confidence intervals

2019-12-07 Thread Ben Tupper
z.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 Science West Boothbay Harbor, Maine http://www.bigelow.org/

Re: [R] cannot open file '--no-restore.matrix'

2019-11-23 Thread Ben Tupper
8437542 -0.590669 0.0145733 > rs2174369 -0.167913 -0.0268728 > rs242252 0.20184 0.0161709 > rs34121330 0.328602 0.0753894 > rs4792798 -0.303601 0.00227314 > rs7222311 -0.367686 -0.0419168 > rs74369938 0.687555 -0.223105 > rs8075751 -0.261916 -0.0313484 > > On Fri, Nov 22, 201

Re: [R] cannot open file '--no-restore.matrix'

2019-11-22 Thread Ben Tupper
t; > Please advise, > > Thanks > Ana > > __ > 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-g

Re: [R] using xpath with xml2

2019-11-12 Thread Ben Tupper
> xlink <-> http://www.w3.org/1999/xlink <http://www.w3.org/1999/xlink> > > daymet %>% xml2::xml_find_all(xpath = "d1:dataset") > {xml_nodeset (1)} > [1] http://tibco.com/> > > On Tue, Nov 12, 2019 at 11:35 AM Ben Tupper <mailto:btup...@bigelow.or

[R] using xpath with xml2

2019-11-12 Thread Ben Tupper
other attached packages: [1] magrittr_1.5 httr_1.4.1 xml2_1.2.2 loaded via a namespace (and not attached): [1] compiler_3.5.1 R6_2.4.0 tools_3.5.1curl_4.2 [5] yaml_2.2.0 Rcpp_1.0.3 Thanks, Ben Ben Tupper Bigelow Laboratory for Ocean Sciences 60 Bigelow Drive

Re: [R] Trying to understand the magic of lm

2019-05-08 Thread Ben Tupper
rg 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] How to overlay a vector map (polygon) on raster maps?

2019-04-11 Thread Ben Tupper
in(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")) > thank you s

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

2019-04-11 Thread Ben Tupper
tom'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 Tupper >

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] looking for 'tied rows' in dataframe

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

Re: [R] Randomization Test

2019-02-27 Thread Ben Tupper
tion, 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 make >>> sure

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

2019-02-14 Thread Ben Tupper
e 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 provi

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] 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] POSIXct format

2018-12-04 Thread Ben Tupper
ee > 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 Boothbay,

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] Sp-package overlay

2018-10-02 Thread Ben Tupper
ttps://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 Bigelo

Re: [R] Casting Date to char

2018-09-05 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 Boothbay,

Re: [R] Understanding read.csv error message

2018-08-18 Thread Ben Tupper
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 > > __ > R-help@r-proj

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

2018-08-09 Thread Ben Tupper
h 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 and OC5, depending on the water class memberships

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

2018-07-08 Thread Ben Tupper
e 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.org mailing list -- To UNSUBSCRI

Re: [R] Generate random Bernoulli draws

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

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

2018-06-07 Thread Ben Tupper
le 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 > > > [[alternative HTML version deleted]] >

Re: [R] Histogram of character elements

2018-06-07 Thread Ben Tupper
M, 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? >> >> gr

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] netCDF to GeoTIFF by layer in r

2018-03-28 Thread Ben Tupper
. > 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/r-help > PLEASE do read the posting

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

2018-03-22 Thread Ben Tupper
phen.b...@cibc.com> wrote: > > 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] > Se

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

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

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-co

Re: [R] httr::content without message

2018-01-02 Thread Ben Tupper
Perfect. Using httr 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 <btup...@bigelow.org> wrote: >> >> Aho

Re: [R] httr::content without message

2018-01-02 Thread Ben Tupper
LK 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 commented,

Re: [R] Generating help files for a function

2017-12-16 Thread Ben Tupper
g 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 Ecocast Reports: http://seascapemodeling.

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

2017-10-24 Thread Ben Tupper
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

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

2017-09-06 Thread Ben Tupper
. > -- > Sent from my phone. Please excuse my brevity. > > On September 6, 2017 3:29:41 PM PDT, Ben Tupper <btup...@bigelow.org> wrote: >> Hi, >> >> The message "there is no package called 'rgdal'" means that you don't >> have rgdal installed.

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 more, see

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

2017-08-17 Thread Ben Tupper
ist -- 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 D

Re: [R] Nested for loop

2017-08-07 Thread Ben Tupper
tely, 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 more sense? > > Thanks for your time! >

Re: [R] Nested for loop

2017-08-06 Thread Ben Tupper
y = pop.estimate)) + > 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_

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

2017-05-08 Thread Ben Tupper
files, new.folder) > > But i am 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 <soni.archit1...@g

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

2017-05-08 Thread Ben Tupper
g 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] Reading XML attriutes in R

2017-04-28 Thread Ben Tupper
alue Type > NANA NA > 3h 0.0925 rain > > Thanks again and in advance ! > > Archit > > On Thu, Apr 27, 2017 at 6:27 PM, Ben Tupper <btup...@bigelow.org> wrote: > Hi, > > There might be an easy solution out there already, but

Re: [R] Reading XML attriutes in R

2017-04-27 Thread Ben Tupper
> I know I am asking 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 > http

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

2017-04-21 Thread Ben Tupper
ld write out the 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. > >

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

2017-04-07 Thread Ben Tupper
--------- > David L Carlson > Department of Anthropology > Texas A University > College Station, TX 77840-4352 > > -Original Message- > From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Ben Tupper > Sent: Thursday, April 6, 201

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

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

[R] readr to generate tibble from a character matrix

2017-04-06 Thread Ben Tupper
or 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 Bigelow Drive, P.O. Box 380 East Boothbay, Maine 04544 http://

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

2017-04-05 Thread Ben Tupper
oject.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 S

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

2017-04-05 Thread Ben Tupper
; 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 > PLEASE do

Re: [R] Extracting time-series data from netCDF file for a defined period using ncdf4 package

2017-03-23 Thread Ben Tupper
re, 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 Drive, P.O. Box 380 East Bo

Re: [R] [FORGED] Re: get() return nothing

2017-02-14 Thread Ben Tupper
ternative 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] princomp() output loadings component missing

2017-01-29 Thread Ben Tupper
//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 __ R-help@r-projec

Re: [R] Current Terminal (console) width

2017-01-20 Thread Ben Tupper
r.r20.constantcontact.com/manage/optin/ea?v=001qrD4A3S5xJ5KgMyelH9jyw%3D%3D> > > CONFIDENTIALITY NOTICE: This message and any accompanyi...{{dropped:19}} > > __ > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-help >

Re: [R] Error in R_nc4_open

2017-01-11 Thread Ben Tupper
/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. >> > > [[alternative HTML version deleted]] > > _

Re: [R] XML to CSV

2017-01-04 Thread Ben Tupper
ecommendations would be greatly appreciated as I have felt fairly stuck. > Once again, thank you very much for your help. > > Best, > Andrew > > On Tue, Jan 3, 2017 at 2:29 PM, Ben Tupper <btup...@bigelow.org > <mailto:btup...@bigelow.org>> wrote: > Hi, >

Re: [R] XML to CSV

2017-01-03 Thread Ben Tupper
g 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 __ R

Re: [R] Any help on R code interpretation?

2016-12-22 Thread Ben Tupper
lman/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 Boothbay, Maine 04544 http://www.bi

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.et

Re: [R] Convert arc-second to degree

2016-11-29 Thread Ben Tupper
rnative 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.h

Re: [R] Merra2 files

2016-11-27 Thread Ben Tupper
n/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 Boothbay, Maine 04544 http://www.bigel

Re: [R] Question about using ggplot

2016-11-13 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

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

2016-10-30 Thread Ben Tupper
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/posting-g

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

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

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

2016-10-26 Thread Ben Tupper
ot;, data=NULL) > layout.widths$key.right <- list(x=1, units="cm", data=NULL) > lattice.options(layout.widths=layout.widths) > # Force (width of) left axis labels to be the same > xy_p <- xyplot(y ~ x, data = xy, xlim=xscale, > scales=list(y=list(at=se

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

2016-10-25 Thread Ben Tupper
widths=layout.widths) > # 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=&

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

2016-10-25 Thread Ben Tupper
: > > Hi > > Does this 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

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

2016-10-25 Thread Ben Tupper
ws > the plot. > > Cheers, > Bert > > > On Oct 25, 2016 2:55 PM, "Ben Tupper" <btup...@bigelow.org > <mailto:btup...@bigelow.org>> wrote: > Hello, > > I am drawing a levelplot and an xyplot on a single device as shown in the > run

[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.o

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

2016-09-29 Thread Ben Tupper
lessthan.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 p

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

2016-09-25 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 Tu

Re: [R] splitting a vector of strings

2016-07-21 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] documenting R reference class methods with roxygen2

2016-07-20 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

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

2016-06-08 Thread Ben Tupper
t;) > > 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 > > S

Re: [R] projectRaster function no values

2016-05-18 Thread Ben Tupper
> Adrienne > -- > Adrienne Wootten > Ph.D Candidate / Graduate Research Assistant > State Climate Office of North Carolina > Department of Marine, Earth and Atmospheric Sciences > North Carolina State University > > [[alternative HTML version deleted]] > > ___

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

2016-04-30 Thread Ben Tupper
> #pr<-pointsToRaster(r,xy) > > 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"

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

2016-04-30 Thread Ben Tupper
nfo/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 Boothbay, Maine 04544 http://www.bigelow.org ___

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 <h.wick...@gmail.com> wrote: > > You normally see these errors when compiling on a vm that has very > little memory. > Hadley > > On Tue, Apr 19, 2016 a

Re: [R] installation of dplyr

2016-04-19 Thread Ben Tupper
ue, Apr 19, 2016 at 2:47 PM, Ben Tupper <btup...@bigelow.org> wrote: >> Hello, >> >> I am getting a fresh CentOS 6.7 machine set up with all of the goodies for R >> 3.2.3, including dplyr package. I am unable to successfully install it. >> Bel

[R] installation of dplyr

2016-04-19 Thread Ben Tupper
an 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] Using R for cURL commands

2016-04-01 Thread Ben Tupper
[[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-project.org/posting-guide.html >

Re: [R] Question about Imager

2016-03-25 Thread Ben Tupper
SCRIBE 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 Drive, P.O. Box

  1   2   3   >