Re: [R] Getting individual co-ordinate points in k medoids cluster

2024-09-17 Thread Sarah Goslee
his is not the data I am working with but it illustrates the > issue easily > > library(factoextra) > library(cluster) > set.seed(170924) > df <- USArrests > df <- na.omit(df) > df <- scale(df) > kmed <- pam(df, k = 4) > fviz_cluster(kmed, data = df) > >

Re: [R] Converting .grib to excel file

2024-06-25 Thread Sarah Goslee
ling 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.sarahg

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

2024-05-27 Thread Sarah Goslee
ranger_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
quot;forecast", object) : > no applicable 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 >

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

2024-05-01 Thread Sarah Goslee
Carl Witthoft > > [[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

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

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 Gos

Re: [R] Yext in parentheses.

2023-10-26 Thread Sarah Goslee
t; > > [[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/post

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

2023-10-24 Thread Sarah Goslee
NA NA > ``` > > 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 &g

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
weibull = printweibull(x, digits), > stop(gettextf("invalid '%s' value", "x$family", domain = "R"))) > invisible(x) > } > environment(print.mixfitEM) <- getNamespace("mixR") > print.mixfitEM &l

Re: [R] environments: functions within functions

2023-05-25 Thread Sarah Goslee
On Thu, May 25, 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 >

[R] environments: functions within functions

2023-05-25 Thread Sarah Goslee
nctions to work? And 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 __

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

2022-12-27 Thread Sarah Goslee
sincerely, > 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 p

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

2022-09-20 Thread Sarah Goslee
p&data=05%7C01%7Ctebert%40ufl.edu%7C6ee1a1f50c14442beef508da9a301bde%7C0d4da0f84a314d76ace60a62331e1b84%7C0%7C0%7C637991828670135028%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=sNDYEJKhjSu%2FtrTIwZx5yVemKgDheQYXLrcQqJ2mOgo%3D

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

Re: [R] Problem with lm Giving Wrong Results

2021-12-03 Thread Sarah Goslee
: > [1] 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 > &g

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

2021-11-30 Thread Sarah Goslee
> 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 UNSUBS

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]] > > __ &g

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

2021-10-07 Thread Sarah Goslee
ore, 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 > PLEAS

Re: [R] FD package_dbFD error

2021-03-31 Thread Sarah Goslee
g 6, 1 Zagreb, Croatia > > ______ > 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 prov

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

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 Gosle

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

Re: [R] Col names in a data frame

2021-01-21 Thread Sarah Goslee
ith headings 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. > Retir

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

Re: [R] Finance & R

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

Re: [R] FInd packages in need of Update (like RStudio)

2020-12-23 Thread Sarah Goslee
UBSCRIBE 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

Re: [R] Help with strings

2020-09-29 Thread Sarah Goslee
"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"

Re: [R] date

2020-09-21 Thread Sarah Goslee
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 __ R-help

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
gt; 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
er is quite simple, though it's a bit unclear as you > did 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,

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
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. -- Sarah Goslee (she/her) http://www.numberwright.c

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

2020-06-30 Thread Sarah Goslee
Luigi > > __ > 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 prov

Re: [R] help with sqldf

2020-06-28 Thread Sarah Goslee
CC%TGAAACCTTTAACTATTT%" > > 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
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 > and

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

2020-05-14 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.org mailing list -

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

2020-05-14 Thread Sarah Goslee
that 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
x27; and spent > 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. > > T

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, reproducible code

Re: [R] Problem with loop in folders

2020-04-24 Thread Sarah Goslee
)) >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(&quo

Re: [R] Shape / Colour Configuration

2020-03-05 Thread Sarah Goslee
e, 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] 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
: unlike unique output which > 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.

Re: [R] pairs.panels ()

2019-11-19 Thread Sarah Goslee
ented, minimal, self-contained, 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:/

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

2019-11-04 Thread Sarah Goslee
ling 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.numberwrig

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
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
cially, there are worse things 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/m

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.

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, 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 re

Re: [R] ski.mack test in R

2019-08-23 Thread Sarah Goslee
ck(a) etc. > > I would be 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. >>

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 reinstalling

Re: [R] ski.mack test in R

2019-08-20 Thread Sarah Goslee
e data points as rows and > colums in 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 ele

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

2019-08-13 Thread Sarah Goslee
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 provide

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

2019-07-19 Thread Sarah Goslee
on' was read in through > data(Dilution) > > >library(affydata) > > data(Dilution) > > which was made an object of the AnnotatedDataFrame via > >Dilution > >phenoData(Dilution) > >pData(Dilution) > > ##To access the probesets### > > >

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

2019-07-19 Thread Sarah Goslee
tion: none >> experimentData: use 'experimentData(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 >>

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

2019-07-19 Thread Sarah Goslee
varMetadata > description: none > experimentData: use 'experimentData(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 > > >phenoDa

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

2019-07-19 Thread Sarah Goslee
BE 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] 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
0195385 [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 hardwa

Re: [R] bizarre color space conversion problem

2019-07-18 Thread Sarah Goslee
U min MHz: 1200. BogoMIPS:6600.00 Virtualization: VT-x L1d cache: 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

Re: [R] bizarre color space conversion problem

2019-07-18 Thread Sarah Goslee
67.38407 [4,] 53.48418 80.01027 67.38407 [5,] 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,]

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

2019-07-18 Thread Sarah Goslee
12 7 12 5 2 8 28 20 9 10 3 12 6 1 > [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 s

[R] bizarre color space conversion problem

2019-07-18 Thread Sarah Goslee
.54720 [16,]0 0.54720 [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

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, 1L, 1L, 1L, 1L, 1L, 1L), .Label = c("0", > "NULL"), class = "factor"), Var7 = c(0L, 0L, 0L, 0L, 0L, 0L, > 0L, 0L

Re: [R] install R

2019-05-08 Thread Sarah Goslee
are using the GNU Fortran compiler... no > checking whether accepts -g... no > configure: error: No Fortran compiler found > > > [[alternative HTML version deleted]] > > __ > R-help@r-project.org mailing list -- To UNSUBSCRI

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 A

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

2019-04-24 Thread Sarah Goslee
e out how to solve the > problem within my read in program. I suppose one option is that I could > manually change any values of "N" to "D" in my R code. That seems to work. > But not sure if that is the "right" way to solve this issue. > > Thanks > Haro

Re: [R] plot (cox)

2019-04-15 Thread Sarah Goslee
uot;n") 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 >

Re: [R] plot (cox)

2019-04-15 Thread Sarah Goslee
r this. > > Pls, help me! > > __ > 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 &g

Re: [R] Run time error with afex package

2019-04-14 Thread Sarah Goslee
ed]] > > __ > 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, minima

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

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

Re: [R] Question regarding the dcast function

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

Re: [R] Coding help for data frame.

2019-03-21 Thread Sarah Goslee
BE 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] Weather station data

2019-02-17 Thread Sarah Goslee
ata 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
to find 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.c

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, mini

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

2019-01-16 Thread Sarah Goslee
UBSCRIBE 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] Question

2019-01-08 Thread Sarah Goslee
gt; 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
aping 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 >>

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

2018-12-27 Thread Sarah Goslee
da_rppa_core/protein_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 > > 3

Re: [R] Retrievable results in a procedure

2018-12-25 Thread Sarah Goslee
-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/her)

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

Re: [R] extract hyperplan from e1071 model

2018-12-20 Thread Sarah Goslee
e data that 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: > > > > H

Re: [R] extract hyperplan from e1071 model

2018-12-20 Thread Sarah Goslee
9] "decision.values" "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/li

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

  1   2   3   4   5   6   7   8   9   10   >