Re: [R] Issues with R's forecast function

2024-05-27 Thread Sarah Goslee
anger_0.16.0 > [121] rngtools_1.5.2 reshape2_1.4.4 rstantools_2.4.0 > evaluate_0.23RcppParallel_5.1.7 > [126] laeken_0.5.3 nloptr_2.0.3 tzdb_0.4.0 > future_1.33.1xtable_1.8-4 > [131] class_7.3-22 snow_0.4-4

Re: [R] Issues with R's forecast function

2024-05-27 Thread Sarah Goslee
e method for 'forecast' applied to an object of class "bats" > > It seems like the forecast function is not working for these models > anymore. Any idea of how to solve this issue? > > Kind regards, > > Paul > > [[alternative HTML version deleted]] > >

Re: [R] strange behavior in base::as.double

2024-05-01 Thread Sarah Goslee
_ > 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] Volume of polygon

2023-12-06 Thread Sarah Goslee
There's also an excellent discussion of various methods with R code here: https://dewey.dunnington.ca/post/2019/bathymetry-lake-volume-estimation-using-r/ On Wed, Dec 6, 2023 at 8:52 AM Sarah Goslee wrote: > > Hi, > > As already mentioned, this is a great topic for R-sig-geo,

Re: [R] Volume of polygon

2023-12-06 Thread Sarah Goslee
__ > 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. -- Sarah Goslee (

Re: [R] Yext in parentheses.

2023-10-26 Thread Sarah Goslee
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 provide com

Re: [R] How to Calculate the Mean by Multiple Groups in R

2023-10-24 Thread Sarah Goslee
gt; ``` > > Thank you. > > __ > 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 pro

Re: [R] OK, next Q - a sort of factorial on a vector

2023-06-20 Thread Sarah Goslee
6 > Cowra NSW 2794 > Australia > E-mail: p...@pricom.com.au > > __ > 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:/

Re: [R] environments: functions within functions

2023-05-26 Thread Sarah Goslee
gits), > stop(gettextf("invalid '%s' value", "x$family", domain = "R"))) > invisible(x) > } > environment(print.mixfitEM) <- getNamespace("mixR") > print.mixfitEM <- compiler::cmpfun(print.mixfitEM) >

Re: [R] environments: functions within functions

2023-05-25 Thread Sarah Goslee
, 2023 at 10:18 AM Sarah Goslee wrote: > > Hi, > > I ran into a problem with S3 method dispatch and scoping while trying > to use functions from the mixR package within my own functions. I know > enough to find the problem (I think!), but not enough to fix it > myself. The

[R] environments: functions within functions

2023-05-25 Thread Sarah Goslee
d what's the correct way to do what print.mixfitEM() is doing, so that it works regardless? I poked around for a while, but didn't find a clear (to me!) answer. Thanks, Sarah -- Sarah Goslee (she/her) http://www.numberwright.com __ R-help@r-project.org

Re: [R] error in exists.....

2022-12-27 Thread Sarah Goslee
erely, > AKSHAY M KULKARNI > > > [[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 postin

Re: [R] Question concerning side effects of treating invalid factor levels

2022-09-20 Thread Sarah Goslee
2beef508da9a301bde%7C0d4da0f84a314d76ace60a62331e1b84%7C0%7C0%7C637991828670135028%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7Csdata=sNDYEJKhjSu%2FtrTIwZx5yVemKgDheQYXLrcQqJ2mOgo%3Dreserved=0 > > PLEASE do read the posting guide &

Re: [R] extracting numeric values returned when using the by function to run the acf function

2022-05-10 Thread Sarah Goslee
t; acf(RecallSmall[1:4,"value"],na.action=na.pass,plot=FALSE)Thank you, John > > Thank you, > John > > > > > > > > > > [[alternative HTML version deleted]] > > ______ > R-help@r-pro

Re: [R] Pixel Image Reshaping using R

2022-02-24 Thread Sarah Goslee
an/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. -- Sarah Goslee (she/her) http://www.sarahgoslee.com __ R-help@r-project

Re: [R] Problem with lm Giving Wrong Results

2021-12-03 Thread Sarah Goslee
compiler_4.1.1 tools_4.1.1 > > > > Thomas R. LaBone > PhD student > Department of Epidemiology and Biostatistics > Arnold School of Public Health > University of South Carolina > Columbia, South Carolina USA > > >

Re: [R] Is 'temp' a reserved/key word in R?

2021-11-30 Thread Sarah Goslee
gt; > and provide commented, minimal, self-contained, reproducible code. > > > > [[alternative HTML version deleted]] > > ______ > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.c

Re: [R] How to use ifelse without invoking warnings

2021-10-07 Thread Sarah Goslee
t; 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-

Re: [R] How to use ifelse without invoking warnings

2021-10-07 Thread Sarah Goslee
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. -- Sarah Goslee (she/her) http://www.sarahgoslee.com __

Re: [R] how to combine logic test on vectors in R?

2021-09-30 Thread Sarah Goslee
_b$q) == "", which is TRUE. > How can I properly implement a logic test on vectors? > Thank you > > __ > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE

Re: [R] extraction of last observation date from many observations in each row/column

2021-04-02 Thread Sarah Goslee
)) > > Thank you for your help. > Sincerely, > MW > > [[alternative HTML version deleted]] > > __ > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-help > P

Re: [R] FD package_dbFD error

2021-03-31 Thread Sarah Goslee
___ > 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: [R] About fviz_famd_ind()

2021-03-21 Thread Sarah Goslee
repel = TRUE) > > > Regards, > Mahmood > > [[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.or

Re: [R] Colorizing contribution of variables

2021-03-21 Thread Sarah Goslee
__ > 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. -- Sarah Goslee (sh

Re: [R] How to plot dates

2021-03-16 Thread Sarah Goslee
_ > 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. -- Sarah Goslee (s

Re: [R] Col names in a data frame

2021-01-21 Thread Sarah Goslee
eadings the parentheses are replaced by > periods but I can add them after creating the data frame and the column > headings are correct. > > Any ideas on why this occurs? > > Thanks > > > Bernard McGarvey > Director, Fort Myers Beach Lions Foundation, Inc. > Reti

Re: [R] Help with changing date format in R

2021-01-20 Thread Sarah Goslee
_ > 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. -- Sarah G

Re: [R] Finance & R

2020-12-23 Thread Sarah Goslee
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. -- Sarah Goslee (she/her) http://www.numberwright.com ___

Re: [R] How to correct my error message

2020-10-27 Thread Sarah Goslee
__ > 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. -- Sarah Goslee (she

Re: [R] Help with strings

2020-09-29 Thread Sarah Goslee
t;rain", "some_string")) > colnames(C) <- c("id", "km", "vehicle", "accident_type") > C > > mylist <- list(A=A,B=B,C=C) > mylist > > > ###Desired output > > A= data.frame(c("1", "2", &qu

Re: [R] date

2020-09-21 Thread Sarah Goslee
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. -- Sarah Goslee (she/her) http://www.numberwright.com __ R-help@r-project

Re: [R] .grb2 Files

2020-09-02 Thread Sarah Goslee
GDAL supports GRIB2 so it should be easy using rgdal and raster packages. Sarah On Wed, Sep 2, 2020 at 8:32 PM Philip wrote: > > Any advise about how to get NOAA .grb2 files into R? > > Thanks. -- Sarah Goslee (she/her) http://www.numb

Re: [R] How to extract information from .Rdata format

2020-07-31 Thread Sarah Goslee
uot; > and "patient"? > > 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://w

Re: [R] Looping thorugh dataframe

2020-07-22 Thread Sarah Goslee
id not provide a reprex (see the posting guide linked below for how to post > here). However, I see no purpose in my blurting it out when you do not seem > aware of even the most basic R constructs -- e.g. see ?while. Of course, > others may disagree and provide you what you seek. > --

Re: [R] Estimate garch model by GMM

2020-07-08 Thread Sarah Goslee
_ > 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] algorithms that cluster time series data

2020-07-06 Thread Sarah Goslee
st -- 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. -- Sarah Goslee (she/her) http://www.numberwright.com _

Re: [R] argument "x" is missing in minpack.lm

2020-06-30 Thread Sarah Goslee
i > > __ > 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 c

Re: [R] help with sqldf

2020-06-28 Thread Sarah Goslee
TTTAACTATTT%" > > However, test2 does not work well. > How to make test2 work? > Thank you, > > Ding > > > -- -- Sarah Goslee (she/her) http://www.numberwright.com

Re: [R] Obtaining p values from t-test run with a by function

2020-06-12 Thread Sarah Goslee
L 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 provide commen

Re: [R] Automating package updates after major version change

2020-05-14 Thread Sarah Goslee
he posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. -- Sarah Goslee (she/her) http://www.sarahgoslee.com __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://s

Re: [R] Automating package updates after major version change

2020-05-14 Thread Sarah Goslee
character vector there. Sarah On Thu, May 14, 2020 at 1:06 PM Rich Shepard wrote: > > On Sun, 26 Apr 2020, Sarah Goslee wrote: > > > Not so coincidentally, I just worked thru this for myself. > > http://numberwright.com/2020/04/clean-and-new/ > > Sarah, > >

Re: [R] Convex hulls after nMDS or PCoA

2020-05-12 Thread Sarah Goslee
oups were independently established with > cluster analysis. I have learnt to plot convex hulls but would need to > create every of the 21 groups independently. Do you know how could I just > add the hulls to the ordination plot in an easier way? > Thank you very much, > Fernando. > >

Re: [R] Automating package updates after major version change

2020-04-26 Thread Sarah Goslee
> time rebuilding dependencies, too. Is there a script or method that > automates package updates after a major version change in R? > > My web searches on this topic found tips for only regular package updates > without rebuilding multiple dependencies. > > TIA, > > R

Re: [R] incidence_fit model for simulation

2020-04-24 Thread Sarah Goslee
> 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, reproducibl

Re: [R] Problem with loop in folders

2020-04-24 Thread Sarah Goslee
t;dbf<-list.files(path, pattern = "*ward.dbf") >df <- read.dbf(dbf) >dbfname<-basename(dbf) >name<-file_path_sans_ext(dbfname) # get the name of the file like > agra_ward >write.csv( df, file = paste0("csv

Re: [R] Shape / Colour Configuration

2020-03-05 Thread Sarah Goslee
e > 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. -- Sarah Goslee (she/her) http://www.numberwright.com ___

Re: [R] Isolating Distinct Dates between two data frames

2020-03-01 Thread Sarah Goslee
assist me to achieve it. > > Thank you. > Best regards > Ogbos > > [[alternative HTML version deleted]] > > __ > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinf

Re: [R] Text search

2020-01-25 Thread Sarah Goslee
Shall54 >7 2006 7Short12 Short > > How do I get my desired output? > Thank you. > > __ > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-help > PLE

Re: [R] table and unique seems to behave differently

2019-12-10 Thread Sarah Goslee
ich > contains "3.4 3.4", table has only one cell for 3.4. > > Can anybody know why I get results that look like incoherent between the two > functions? > > > Best regards, > Alain Guillet > -- Sarah Goslee (she/her) http://www.numberwright.com _

Re: [R] pairs.panels ()

2019-11-19 Thread Sarah Goslee
ained, reproducible code. -- Sarah Goslee (she/her) http://www.numberwright.com __ 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/postin

Re: [R] clusplot() and fviz_cluster() functions

2019-11-04 Thread Sarah Goslee
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. -- Sarah Goslee (she/her) http://www.numberwright.com ___

Re: [R] my question is how to read pvcm file

2019-10-04 Thread Sarah Goslee
closed as too broad and not clear enough. Sarah On Fri, Oct 4, 2019 at 11:04 AM Jui-Kun Chiang via R-help wrote: > > Dear Sir, >I got a pvcm file. > My question is how to read it by R. > Gratefully > > Jui-Kun Chiang > > [[alternative HTML version deleted]

Re: [R] help

2019-09-09 Thread Sarah Goslee
he other algorithms doesn’t work for AP (clvalid or > fviz_nbclust). > So my question is, how I can get the Silhouette coefficient for the > clustering with AP? > > Thank you very much in advance for your help. > -- Sarah Goslee (she/her) http://www.numberwrigtht.com __

Re: [R] New Work Based on R

2019-08-29 Thread Sarah Goslee
gs to do than donate to the R Foundation. https://www.r-project.org/foundation/ Sarah --- Sarah Goslee http://www.numberwright.com __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do re

Re: [R] SVM - calculating values problem

2019-08-28 Thread Sarah Goslee
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-gu

Re: [R] File corrupted in R/magic number

2019-08-27 Thread Sarah Goslee
___ > 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. -- S

Re: [R] Code that works when run as straight code, but that fails when run as a function

2019-08-23 Thread Sarah Goslee
0, 1 ) > plotit(c1,c2,fit2aCort) > > [[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 th

Re: [R] ski.mack test in R

2019-08-23 Thread Sarah Goslee
e very grateful to hear back from you or the list. > > With all my best, > Sophie > > Am Di., 20. Aug. 2019 um 19:18 Uhr schrieb Sarah Goslee > : >> >> Hi Sophie, >> >> We don't have enough information to help you. >> >> You DON'T need to type in

Re: [R] Cannot load vegan and vcd, "object vI not found"

2019-08-21 Thread Sarah Goslee
Hi, You misunderstood the suggestion, which was to run update.packages() to update all packages, not just vegan (which doesn't need updated because you just reinstalled it). To make your own life easier, I'd run it as: update.packages(ask=FALSE, checkBuilt = TRUE) You could also try

Re: [R] ski.mack test in R

2019-08-20 Thread Sarah Goslee
the R console, which is recommended in the ski.mack author's > online PDF? It's a lot of data and manually inputting rows and colums and > data points won't be doable in this case. > > I would be very grateful to hear of an elegant short solution, similar to > the friedman command /

Re: [R] reading in csv files, some of which have column names and some of which don't

2019-08-13 Thread Sarah Goslee
> ______ > 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: [R] How to create a data set from object/data frame?

2019-07-19 Thread Sarah Goslee
was made an object of the AnnotatedDataFrame via > >Dilution > >phenoData(Dilution) > >pData(Dilution) > > ##To access the probesets### > > > geneNames(Dilution)[1:3] [1] "100_g_at" "1000_at" "1001_at" > > random.affyid <- sampl

Re: [R] How to create a data set from object/data frame?

2019-07-19 Thread Sarah Goslee
>> ##At this point is when the dataset 'Dilution was read in through >> data(Dilution) >> >> which was made an object of the AnnotatedDataFrame via >> >> >phenoData(Dilution) >> >> My apologies in advance as I know the above info. pertains

Re: [R] How to create a data set from object/data frame?

2019-07-19 Thread Sarah Goslee
entData(object)' > Annotation: > > ##At this point is when the dataset 'Dilution was read in through > data(Dilution) > > which was made an object of the AnnotatedDataFrame via > > >phenoData(Dilution) > > My apologies in advance as I know the above info. pertains to

Re: [R] How to create a data set from object/data frame?

2019-07-19 Thread Sarah Goslee
; 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. -- Sarah Goslee (she/her) http://www.numberwright.com ___

Re: [R] bizarre color space conversion problem

2019-07-18 Thread Sarah Goslee
Peter, it appears to be the same as this bug: https://github.com/xianyi/OpenBLAS/issues/2168 I added my info to the discussion. Thanks for the reminder. And thank you again to Ivan for the help. Sarah On Thu, Jul 18, 2019 at 3:17 PM Peter Langfelder wrote: > > Sarah, if you haven't done so

Re: [R] bizarre color space conversion problem

2019-07-18 Thread Sarah Goslee
85 [8,] 0.4168213 0.2149235 0.0195385 [9,] 0.4168213 0.2149235 0.0195385 [10,] 0.4168213 0.2149235 0.0195385 On Thu, Jul 18, 2019 at 1:59 PM Ivan Krylov wrote: > > On Thu, 18 Jul 2019 13:30:09 -0400 > Sarah Goslee wrote: > > > I'm not even remotely a hardware expert:

Re: [R] bizarre color space conversion problem

2019-07-18 Thread Sarah Goslee
che: 32K L1i cache: 32K L2 cache:1024K L3 cache:14080K NUMA node0 CPU(s): 0-19 On Thu, Jul 18, 2019 at 1:05 PM Ivan Krylov wrote: > > On Thu, 18 Jul 2019 11:50:17 -0400 > Sarah Goslee wrote: > > > The problem is in the conversion f

Re: [R] bizarre color space conversion problem

2019-07-18 Thread Sarah Goslee
53.48418 80.01027 67.38407 [6,] 53.48418 80.01027 67.38407 [7,] 53.48418 80.01027 67.38407 > > convertColor(red.lab, from = "Lab", to = "sRGB") [,1] [,2] [,3] [1,]100 [2,]100 [3,]100 [4,]100 [5,]100 [6,]1

Re: [R] Dataframe columns are accessible by incomplete column names, is this a bug?

2019-07-18 Thread Sarah Goslee
t; [26] 8 3 10 19 8 2 6 2 6 3 9 3 13 12 11 13 32 7 7 53 29 29 > > So in order to access the column "Examination", I can type any substring from > "Ex" to "Examination" and will always get the column swiss$Examination. > > Thanks for

[R] bizarre color space conversion problem

2019-07-18 Thread Sarah Goslee
0 [17,]1 0.0 [18,]1 0.0 [19,]1 0.0 [20,]1 0.0 #-#-# I've gotten as far as locating the problem in this line from grDevices::convertColor() xyz <- from$toXYZ(color, from.ref.white) Packages are up to date on all computers, although this doesn'

Re: [R] Subsetting Data from a Dataframe

2019-05-24 Thread Sarah Goslee
1L, 1L, 1L, 1L, 1L, > 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, > 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L), .Label = c("0", > "NULL"), class = "factor"), Var7 = c(0L, 0L, 0L, 0L, 0L, 0L, > 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L,

Re: [R] install R

2019-05-08 Thread Sarah Goslee
> checking whether accepts -g... no > configure: error: No Fortran compiler found > > > [[alternative HTML version deleted]] > > __ > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.

Re: [R] Read_fwf in package readr, double vs. numeric

2019-04-24 Thread Sarah Goslee
cli_1.0.0 > hms_0.3 tools_3.4.2 > [7] pillar_1.3.0 tibble_1.4.2 Rcpp_1.0.0 crayon_1.3.4 > utf8_1.1.4 fansi_0.2.3 > [13] rlang_0.3.0.1 > > -Original Message- > From: Sarah Goslee > Sent: Wednesday, April 24, 2019 11:12 AM

Re: [R] Read_fwf in package readr, double vs. numeric

2019-04-24 Thread Sarah Goslee
at is the "right" way to solve this issue. > > Thanks > Harold > > __ > 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.

Re: [R] plot (cox)

2019-04-15 Thread Sarah Goslee
;) axis(1, at=seq(0, 48, by=12)) Or whatever axis values you actually want. Sarah On Mon, Apr 15, 2019 at 3:02 PM Medic wrote: > > Thanks, but too hard for me > > Sarah Goslee : > > You can presumably use xaxt="n" in your plot() statement (see ?par for > > deta

Re: [R] Run time error with afex package

2019-04-14 Thread Sarah Goslee
t.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. -- Sarah Goslee (she/her) http://www.numberw

Re: [R] String replace

2019-04-03 Thread Sarah Goslee
uot;)) > BHC <-BHC %>% mutate ( Date = stringr :: str_replace ( Date , "M_20" , > "01-10-2018")) > BHC <-BHC %>% mutate ( Date = stringr :: str_replace ( Date , "M_21" , > "01-11-2018")) > BHC <-

Re: [R] Cluster analysis

2019-03-31 Thread Sarah Goslee
IBE 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. -- Sarah Goslee (she/her) http://www.numberwright.com

Re: [R] Coding help for data frame.

2019-03-21 Thread Sarah Goslee
; drug. > > comdrug= data.frame("ID"=c(1:50), "DrugX"=drugx, "DrugY"=drugy) > > # whereby the data would look like this > > head(comdrug) > > > head(comdrug) > ID DrugX DrugY > 1 1 0.10037492 0.1322691 > 2 2 0.09631495 0.15079

Re: [R] Coding help for data frame.

2019-03-21 Thread Sarah Goslee
esulting data frame to look like? I'm assuming that your sample data is the starting point. Or do you simply need to rbind the two columns together? Sarah > Anand > > Begin forwarded message: > > From: Sarah Goslee > Subject: Re: [R] Coding help for data frame. > Date:

Re: [R] Question regarding the dcast function

2019-03-21 Thread Sarah Goslee
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. -- Sarah Goslee (she/her) http://www.numberwright.com ___

Re: [R] Coding help for data frame.

2019-03-21 Thread Sarah Goslee
e > 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. -- Sarah Goslee (she/her) http://www.numberwright.com __

Re: [R] Weather station data

2019-02-17 Thread Sarah Goslee
s data at weather stations around > the globe? An R package perhaps? > > Thanks > > Bernard -- Sarah Goslee (she/her) http://www.sarahgoslee.com __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/ma

Re: [R] R help

2019-02-14 Thread Sarah Goslee
nd the data. I keep getting stuck on how to create > specific characters for the table. > > > -- Sarah Goslee (she/her) http://www.numberwright.com __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch

Re: [R] periodicity

2019-01-30 Thread Sarah Goslee
__ > 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, repr

Re: [R] R help: fviz_nbclust’ is not available (for R version 3.5.2)

2019-01-16 Thread Sarah Goslee
nd 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. -- Sarah Goslee (she/her) http://www.numberwright.com

Re: [R] Question

2019-01-08 Thread Sarah Goslee
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. > -- Sarah Goslee (she/her) http://www.sarahgoslee.com [[alternative HTML versi

Re: [R] you are making it far too difficult

2018-12-27 Thread Sarah Goslee
non-metacharacters with a backslash. Sarah On Thu, Dec 27, 2018 at 4:09 PM Spencer Brackett wrote: > > What is the significance of using / or \ ? > > On Thu, Dec 27, 2018 at 4:02 PM Sarah Goslee wrote: >> >> On Thu, Dec 27, 2018 at 2:03 PM Spencer Brackett >&g

Re: [R] you are making it far too difficult

2018-12-27 Thread Sarah Goslee
_exp/mdanderson.org_BLCA.MDA_RPPA_Core.mage-tab.1.7.0/mdanderson.org_BLCA.MDA_RPPA_Core.idf.txt > > raw_data_repository raw_data_accession > > 1TCGA TCGA-19-5960-01A-13-1900-20 > > 2TCGA TCGA-19-5960-01A-13-1900-20 > > 3TCGA T

Re: [R] Retrievable results in a procedure

2018-12-25 Thread Sarah Goslee
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. > -- Sarah Goslee (she/her) http://w

Re: [R] Problem with system() and source on linux

2018-12-20 Thread Sarah Goslee
Actually, here's another possibility: system('bash -c "source filename"') On Thu, Dec 20, 2018 at 10:13 AM Sarah Goslee wrote: > > Hi, > > I can tell you what the problem is: > > You're probably running bash at the terminal command line, as I am: > >

Re: [R] Problem with system() and source on linux

2018-12-20 Thread Sarah Goslee
> 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] extract hyperplan from e1071 model

2018-12-20 Thread Sarah Goslee
make the > hyperplane (it should be a matrix of X,Y value, for a bidimensional > plane, I guess) so I can plot a line in another plot. I tried with > model$SV but it is not the right one. > Luigi > > On Thu, Dec 20, 2018 at 2:59 PM Sarah Goslee wrote: > > > > Hi, > > &g

Re: [R] extract hyperplan from e1071 model

2018-12-20 Thread Sarah Goslee
"terms" > > Which one should I look at? > Thank you > -- > Best regards, > Luigi > > __ > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do r

Re: [R] Filtering data with dplyr or grep and losing data?

2018-12-19 Thread Sarah Goslee
> head(sec1_test) > > sec1_test2 = sec1[grep("DF_API: input string",sec1$V1, perl = TRUE),] > head(sec1_test2) > > write.csv(sec1_test, file = "test_out.txt", row.names = F, quote = F) > write.csv(sec1_test2, file = "test2_out.txt", row.names = F, q

Re: [R] In need of TCGA Workflow to identify portion expression

2018-12-13 Thread Sarah Goslee
I am looking for a workflow compatible with a TCGA file, and one that can > essentially identify the protein expression involved with TMZ-induced MGMT > methylation. Any advice or information that could lead me to finding such a > workflow would be greatly appreciated! > > Best, > &

Re: [R] R - Comparing BIC Results Between Expectation-Maximization (EM) and Linear Regression (LR) Algorithm

2018-11-28 Thread Sarah Goslee
[[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/pos

Re: [R] Basic optimization question (I'm a rookie)

2018-11-27 Thread Sarah Goslee
t. > > I've searched online for some time, and only found a video of a dude that > plotted the functions toggling the values to find the tangent optimum point > (something useless, because the idea is to make the optimization more > efficiently than using a paper and a pencil) > >

Re: [R] EXAMPLE OF HOW TO USE R FOR EXPONENTIAL DISTRIBUTION & EXPONENTIAL REGRESSION

2018-11-27 Thread Sarah Goslee
garithmic > f <- function(x,a,b) {a * log(x) + b} > fit <- nls(y ~ f(x,a,b), start = c(a=1, b=1)) > co <- coef(fit) > curve(f(x, a=co[1], b=co[2]), add = TRUE, col="orange", lwd=2) > > # polynomial > f <- function(x,a,b,d) {(a*x^2) + (b*x) + d} > fit <

  1   2   3   4   5   6   7   8   9   10   >