Re: [R] dependent nested for loops in R

2021-02-01 Thread David Winsemius
IMTS length 2000 Sent from my iPhone > On Feb 1, 2021, at 9:16 PM, David Winsemius wrote: > > Cc’ed the list as should always be your practice. > > Here’s one way (untested): > > W <- +(z>4| z<2) # assume z is of length 20 > > — > David > >

Re: [R] dependent nested for loops in R

2021-02-01 Thread David Winsemius
(1:2000)[z >4|z<2) > > Could you please guide how I can assign zero if condition is not satisfied? > > Best Regards > > Shaami > >> On Mon, 1 Feb 2021, 11:01 am David Winsemius, wrote: >> >> On 1/31/21 1:26 PM, Berry, Charles wrote: >> >

Re: [R] dependent nested for loops in R

2021-01-31 Thread David Winsemius
On 1/31/21 1:26 PM, Berry, Charles wrote: On Jan 30, 2021, at 9:32 PM, Shaami wrote: Hi I have made the sample code again. Could you please guide how to use vectorization for variables whose next value depends on the previous one? I agree with Charles that I suspect your results are not

Re: [R] dependent nested for loops in R

2021-01-30 Thread David Winsemius
On 1/30/21 8:26 PM, Shaami wrote: Hi I have very large dependent nested for loops that are quite expensive computationally. It takes weeks and does not end to give me results. Could anyone please guide how could I use apply function or any other suggestion for such big and dependent loops in R?

Re: [R] need help calculating the indicator function

2021-01-29 Thread David Winsemius
Perhaps (in R): n_i <- cumsum( Y==l ) You should read further regarding R's logical class, and operators that work on it, and how it is coerced. -- David On 1/29/21 6:27 AM, Ablaye Ngalaba wrote: > Hello, > please, I need to calculate the indicator function as I underlined in my > attached

Re: [R] help post

2021-01-20 Thread David Winsemius
On 1/20/21 8:00 AM, Imran Shimanto wrote: Dear Sir, How can i find the save workplace what i was practiced on parrot os terminal? # execute at your console ?save.image How can i save program on parrot terminal and how i can find the saved file ?? You should contact the people who mainta

Re: [R] writing a function to work with dplyr::mutate()

2021-01-19 Thread David Winsemius
Sent from my iPhone > On Jan 19, 2021, at 1:52 PM, Steven Rigatti wrote: > > I use case_when a lot - but I have a lot of dynamic tables to treat this > way and case_when has to be hard-coded. But, but, but my case_when-based illustration let you pass a parameter dataframe that contain

Re: [R] writing a function to work with dplyr::mutate()

2021-01-19 Thread David Winsemius
On 1/19/21 11:17 AM, Bill Dunlap wrote: Your translate... function seems unnecessarily complicated and reusing the name 'var' for both the input and the data.frame containing the input makes it confusing to me. The following replacement, f, uses your algorithm but I think gets the answer you w

Re: [R] writing a function to work with dplyr::mutate()

2021-01-19 Thread David Winsemius
On 1/19/21 7:50 AM, Steven Rigatti wrote: I am having some problems with what seems like a pretty simple issue. I have some data where I want to convert numbers. Specifically, this is cancer data and the size of tumors is encoded using millimeter measurements. However, if the actual measurement

Re: [R] Summarizing select columns in a data frame

2021-01-17 Thread David Winsemius
On 1/17/21 12:15 PM, Bernard McGarvey wrote: I have a data frame that consists of several factor columns say A, B, C, D, and E and several columns containing numerical data, say X1, X2, X10. I would like to create statistics of some of the numerical columns by some of the factor columns

Re: [R] log of small values in R

2021-01-11 Thread David Winsemius
> On Jan 10, 2021, at 11:38 PM, Jeff Newmiller wrote: > > ?log1p > > On January 10, 2021 12:53:14 AM PST, Shaami wrote: >> Dear FriendsI am facing the problem of log values in R. The >> log(1-0.9) is giving -Inf while log(1e-18) gives finite >> answer. Any suggestion

Re: [R] [External] Re: [External] Adding a superscript 6 to a number

2020-12-29 Thread David Winsemius
On 12/29/20 3:45 PM, Jeff Newmiller wrote: This doesn't sound right. When you use expression() it freezes the syntax as the expression you wrote, so expression(paste(x^2,"[", m^2, "]")) is a perfectly valid plotmath expression. The expression() call is _not_ an "inverse" of paste because the

Re: [R] ggplot2 + coord_cartesian + automatic ylim

2020-12-13 Thread David Winsemius
On 12/13/20 12:49 PM, Brian Beckage wrote: As an example to illustrate my question, if I used the following code to plot the price of Apple stock using the tidyquant package and ggplot2 AAPL<-tq_get(x="AAPL") AAPL %>% ggplot(aes(x = date, y = close)) + geom_line() + labs(title = "A

Re: [R] Save Results in svg format

2020-12-03 Thread David Winsemius
On 12/3/20 7:12 PM, Anas Jamshed wrote: #Loading the required libraries library(ape) library(phangorn) library(seqinr) #Importing the required file align_5 <- read.alignment("C:/Users/VAMSI/align 5.fasta", format = "fast") align_119 <- read.alignment("C:/Users/VAMSI/align 119.fasta", format = "

Re: [R] the invisible question

2020-11-22 Thread David Winsemius
On 11/22/20 5:20 PM, Rolf Turner wrote: On Mon, 23 Nov 2020 10:07:42 +1100 Jim Lemon wrote: Hi all, I have encountered a problem in some emails with invisible characters in code snippets that throw an error when pasted into the terminal window: Error: unexpected input in: "star_wars_matrix<

Re: [R] [EXT] Re: Inappropriate color name

2020-11-19 Thread David Winsemius
solve problems with R. -- David Winsemius On 11/19/20 5:06 PM, David Wright wrote: Is it really the proposal that the word 'Indian' should not be allowed when referring to someone or something from India? Context is important. Innumerable words can offend if used with that intent, but

Re: [R] ggplot2 stat_smooth formula different units

2020-11-11 Thread David Winsemius
On 11/11/20 2:11 PM, Marcelo Laia wrote: Hi, I am running these approaches: Model 1 ggplot( dat , aes(x=DAP, y=Altura, color=as.factor(Espacamento) )) + geom_point(size=0.5) + stat_smooth(method = "lm", formula = y ~ x + I(x^2), size = 1) + facet_grid(Espacame

Re: [R] R ioanalysis pkg

2020-11-10 Thread David Winsemius
On 11/10/20 5:08 PM, Bert Gunter wrote: There are around 20,000 specialized packages for R. This list is set up to help on standard R features and packages, but cannot possibly be expected to support 20,000 packages. As the posting guide says (did you read it??!): "If the question relates to a

Re: [R] Error in is biallelic

2020-11-06 Thread David Winsemius
On 11/6/20 4:11 PM, John Kane wrote: I think we need a lot mole information. see these links for suggestions on how to ask a question. http://adv-r.had.co.nz/Reproducibility.html http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example I agree that more infor

Re: [R] how to order variables on correlation plot

2020-11-06 Thread David Winsemius
Why did you specify a different order parameter if that is not what you wanted? Suggest you look more carefully at the parameters of the code you are copying and pasting and also at the help page, ?corrplot . -- David. On 11/6/20 6:08 AM, Ana Marija wrote: > sorry forgot to attach the plot.

Re: [R] securing R code....

2020-10-26 Thread David Winsemius
On 10/26/20 7:17 AM, akshay kulkarni wrote: dear members, I am a stock trader. I am using R for my research. I want to service my laptop, wherein resides all my R code, which, for obvious reasons, has to be secured. I am using Windows 7 Ultimate. I cannot encryp

Re: [R] Logreturn variance in Heston model

2020-10-15 Thread David Winsemius
I'm sure I don't know the answer, but I'll hazard a guess why no one has responded in 3 hours. Generally persons submit question to Rhelp with some code and data (or at least a description of the data). Questions about theory are considered off-topic although sometimes addressed if there seems

Re: [R] 2 D density plot interpretation and manipulating the data

2020-10-09 Thread David Winsemius
I’m wondering if you do any searching of the Web or use the help facilities before asking questions? When I posed the question to Google’s search facilities I immediately was directed to, unsurprisingly, the help page text in a webpage format: https://ggplot2.tidyverse.org/reference/geom_densit

Re: [R] Help with the Error Message in R "Error in 1:nchid : result would be too long a vector"

2020-09-22 Thread David Winsemius
ataframe level. Thanks in advance. Regards, Rahul Chakraborty On Tue, Sep 22, 2020 at 4:50 AM David Winsemius wrote: @Rahul; You need to learn to post in plain text and attachments may not be xls or xlsx. They need to be text files. And even if they are comma separated files and text, they s

Re: [R] Help with the Error Message in R "Error in 1:nchid : result would be too long a vector"

2020-09-21 Thread David Winsemius
 Time2  Length:13932       Length:13932       Length:13932  Class :character   Class :character   Class :character  Mode  :character   Mode  :character   Mode  :character Yes, I have many Likert items and many dummy variables. How do I solve this issue? Best regards,

Re: [R] Help with the Error Message in R "Error in 1:nchid : result would be too long a vector"

2020-09-21 Thread David Winsemius
If you had included output of summary(mydata) we might be more capable of giving a fact-based answer but I'm guessing that you have a lot of catagorical variables with multiple levels and some sort of combinatoric explosion is resulting in too many levels of a constructed factor. -- David.

Re: [R] Creating animation in R Notebooks

2020-09-18 Thread David Winsemius
https://bookdown.org/yihui/rmarkdown-cookbook/animation.html On 9/18/20 8:26 AM, Jeff Reichman wrote: r-help forum Has anyone created an animations within a R-Notebook. I'm trying to create an animation within a R -Notebook and while my code works outside of a notebook (Console) but inside

Re: [R] How to represent the effect of one covariate on regression results?

2020-09-15 Thread David Winsemius
riving your "data". -- David. Thanks for all your help Ana On Tue, Sep 15, 2020 at 1:26 AM David Winsemius wrote: There is a user-group for PLINK, easily found by looking at the page you cited. This is not the correct place to submit such questions. https://groups.google.com/g/plink

[R] Cross-posted was Re: Unnesting JSON using R

2020-09-15 Thread David Winsemius
Cross-posting is deprecated on r-help. Please don't do it again. And it was already answered on StackOverflow. -- David. On 9/15/20 1:13 PM, Fred Kwebiha wrote: Source=https://jsonformatter.org/e038ec The above is nested json. I want the output to be as below dataElements.name,dataElement

Re: [R] How to represent the effect of one covariate on regression results?

2020-09-14 Thread David Winsemius
There is a user-group for PLINK, easily found by looking at the page you cited. This is not the correct place to submit such questions. https://groups.google.com/g/plink2-users?pli=1 -- David. On 9/14/20 6:29 AM, Ana Marija wrote: Hello, I was running association analysis using --glm geno

Re: [R] How to run Hutcheson t-test on R?

2020-09-07 Thread David Winsemius
On 9/7/20 3:17 PM, Rolf Turner wrote: On Mon, 7 Sep 2020 11:17:36 +0200 Luigi Marongiu wrote: Hello, is it possible to run the Hutcheson t-test (https://www.sciencedirect.com/science/article/abs/pii/0022519370901244) on R? Almost surely. With R, all things are possible. :-) How? Program

Re: [R] dataRetrieval query error

2020-09-05 Thread David Winsemius
This worked: > dataAvailable <- whatNWISdata(siteNumber=siteNumbers) > str(dataAvailable) 'data.frame':    2565 obs. of  24 variables:  $ agency_cd : chr  "USGS" "USGS" "USGS" "USGS" ...  $ site_no   : chr  "14207920" "14208000" "14208000" "14208000" ...  $ station_nm    : ch

Re: [R] .grb2 Files

2020-09-02 Thread David Winsemius
A very simple search (= "CRAN NOAA .grb2") and small bit of reading help files suggests that you might want wgrib2 and rNOMADS https://rdrr.io/cran/rNOMADS/man/GribInfo.html https://www.cpc.ncep.noaa.gov/products/wesley/wgrib2/ -- David On 9/2/20 5:57 PM, Sarah Goslee wrote: GDAL supports G

Re: [R] plot.window: need finite 'ylim' values

2020-08-23 Thread David Winsemius
You are using a function whose help page says it is "highly experimental". In such cases it is probably better to contact the package maintainer with a feature request. The DESCRIPTION file says contact should be through one of http://www.quantmod.com https://github.com/joshuaulrich/quantmod

Re: [R] Error in Rose Method (class balancing)

2020-07-24 Thread David Winsemius
t be in your directory but I > >have > >provided the data using dput? Didn't I? Previously members of this > >group > >have used dput to provide the detail about their data. Seriously, I > >have no > >idea how else I can provide a rep

[R] Fortune nomination .... Re: Looping through a dataframe

2020-07-24 Thread David Winsemius
On 7/21/20 2:31 PM, Jim Lemon wrote: I want to get a total for the number of years of data for each company. When I loop through the data After two one liners using `table`: I'm too lazy to provide a difficult way. Jim __ R-help@r-proje

Re: [R] Error in Rose Method (class balancing)

2020-07-23 Thread David Winsemius
r <- d[index, ] > > ts <- d[-index, ] > > boot3 <- trainControl(method = "repeatedcv", number=10, > repeats=10,classProbs = TRUE,verboseIter = FALSE, > > summaryFunction = twoClassSummary, sampling = "rose") > > set.seed(30218) >

Re: [R] Error in Rose Method (class balancing)

2020-07-23 Thread David Winsemius
On 7/23/20 7:01 AM, Neha gupta wrote: > > library(caret) > library(farff) > library(DMwR) > > d=readARFF("bughunter.arff") Error in readARFF("bughunter.arff") :   Assertion on 'path' failed: File does not exist: 'bughunter.arff'. I say again: > I suggest you read the Posting Guide, > restar

Re: [R] how to view and edit this RData file

2020-07-22 Thread David Winsemius
On 7/22/20 12:35 AM, Jason Levy wrote: Dear R Scholars Many R users have successfully loaded and used the attached WVS RDATA file into my R program. I would just would like help viewing, editing etc. I wanted to include the actual RData file (which was not attached previously) I can successf

Re: [R] Error in Rose Method (class balancing)

2020-07-22 Thread David Winsemius
On 7/22/20 3:43 PM, Neha gupta wrote: Hello, I get the following error when I use the ROSE class balancing method but when I use other methods like SMOTE, up, down, I do not get any error message. Something is wrong; all the ROC metric values are missing: ROC Sens Spec Min. : NA Min. : NA

Re: [R] viewing, editing and saving an RDATA file

2020-07-22 Thread David Winsemius
On 7/21/20 9:11 PM, Jason Levy wrote: Dear R Scholars Many R users have successfully loaded and used the attached WVS RDATA file into my R program. You appear to have made a common mistake in assuming that attachments of any sort can be processed by the Rhelp mail-server. Only attachments o

Re: [R] Playing a music file in R

2020-07-21 Thread David Winsemius
From the package's DESCRIPTION file found as the first hit to a search with rseek.org using strategy "play mp3 files": Package:     ‘tuneR’ July 8, 2018 Version:     1.3.3 Date 2018-07-03 Title:     Analysis of Music and Speech Author:     Uwe Ligges with contributions from Sebastian Krey, Ol

Re: [R] Testing wether my dataset follows a poisson distribution with R

2020-07-21 Thread David Winsemius
Your first check might be to see in the mean and sd are "reasonably" close. Next approach would be to see if the `qqplot` of that vector has an arguably straight-line relationship with a random draw from a Poisson random generator function with the same mean. ?rpois ?qqplot And do remember t

Re: [R] Plot base 100

2020-07-19 Thread David Winsemius
On 7/19/20 11:18 AM, Pedro páramo wrote: Hi all, I am trying to make a plot based on stock market prices and the library quantmod, imagine BatchGetSymbols(‘^IBEX’, first.date = ‘1999-12-31’, last.date = ‘2020-12-07’) The thing is I want to plot a plot that for each year on 31/12/year tthe

Re: [R] Using Rvest to scrape pages

2020-07-12 Thread David Winsemius
On 7/12/20 10:42 AM, Tiffany Adekola wrote: Dear All, I am just learning how to use R programming. I want to extract reviews from a page and loop till I extract for all pages: #specify the first page URL fpURL <- 'https://wordpress.org/support/plugin/easyrecipe/reviews/' #read the HTML conte

Re: [R] Character (1a, 1b) to numeric

2020-07-11 Thread David Winsemius
It might be easier to simply assign names to the numeric vector if you already have numeric and character vectors of the right lengths. Using Heibergers's vectors: xc <- c("1", "1a", "1b", "1c", "2", "2a", "2b", "2c") xn <- c(1, 1.3, 1.5, 1.7, 2, 2.3, 2.5, 2.7) names(xn) <- xc testdata <- r

Re: [R] Opening Another Application in R Then Hangs

2020-07-05 Thread David Winsemius
This list is not the recommended location for support of that Windows only package. The URL in the DESCRIPTION file has this to advise: ++ This package doesn't work on my computer! How can I make it work? Open aGitHub issu

Re: [R] R Software Risk Analysis

2020-06-18 Thread David Winsemius
On 6/18/20 3:41 PM, John Harrold wrote: Hello Kristin, Are you talking about risk analysis from the perspective of software vulnerabilities? It appears that is exactly what is being asked. What is not clear is whether the installation would be offered to persons or groups on the network w

Re: [R] Help guidelines to install packages and tools of R Studio

2020-06-17 Thread David Winsemius
On 6/17/20 1:06 PM, mrita.goncal...@gmail.com wrote: > Dear Sirs, > > I have installed Rstudio 4.0 version to start using and learn R language. > > > > I am not able to install the learnr package or create the library directory. > > > > Also appears that message.of error in Portuguese(Brazi

Re: [R] Rmarkdown flexdashboard

2020-06-17 Thread David Winsemius
On 6/17/20 12:37 AM, giulio verdi wrote: Hello to everyone, How can I change the color of the tickets on the dashboards from blue to grey when you hover your mouse over it. An example: [image: image] I need to change the color form blue to grey. Thanks in advance. Marco [[alternative

Re: [R] Rstudio does not run on ubuntu 20

2020-06-16 Thread David Winsemius
On 6/16/20 10:11 AM, Luigi Marongiu wrote: Thank you, but isn't this the link to Rstudio server? Is there one for Rstudio desktop? It didn't seem that difficult to find: https://download1.rstudio.org/desktop/bionic/amd64/rstudio-1.3.959-amd64.deb -- David. On Tue, Jun 16, 2020 at 5:41

Re: [R] Error messages (Long vectors not supported)

2020-06-10 Thread David Winsemius
If that is an exact copy of the issued command than it should be throwing an error related to the use of "smart quotes". Furthermore it was not clear if that command was the proximate cause of the error or perhaps it was encountered when you tried to load (rather than install) the Rserve pack

Re: [R] Using item difficulties from a fitted Partial Credit Model to predict person abilities in an extended dataset?

2020-06-07 Thread David Winsemius
There is a StackExchange forum dedicated to Quantitative Finance. -- David. On 6/7/20 8:31 AM, Rob Forsyth wrote: OK thanks for the guidance Rob On 7 Jun 2020, at 16:15, Bert Gunter wrote: ⚠ External sender. Take care when opening links or attachments. Do not provide your login details.

Re: [R] na.omit not omitting rows

2020-06-04 Thread David Winsemius
Perhaps indexing with rowSums(is.na(dfrm))? — David Sent from my iPhone > On Jun 4, 2020, at 4:58 PM, Ted Stankowich > wrote: > > This worked! Thank you! > > -Original Message- > From: Rui Barradas [mailto:ruipbarra...@sapo.pt] > Sent: Thursday, June 4, 2020 2:49 PM > To: Ted Stan

Re: [R] Query on contour plots

2020-06-02 Thread David Winsemius
On 6/2/20 11:44 AM, Abby Spurdle wrote: Very nice Jim, thank you. However, the (deterministic, or near-deterministic) diagonal lines in the plot, make me question the suitability of this approach. In my plot, the contour lines could be removed, and brighter colors could be used. But perhaps,

Re: [R] is there is a way to extract lines in between 3 files that are in common based on one column?

2020-06-01 Thread David Winsemius
On 6/1/20 5:40 PM, Ana Marija wrote: Hi Jim, thank you so much for getting back to me. I tried your code and this is what I get: dim(neu2) [1] 3740988 9 dim(nep2) [1] 3740988 9 dim(ret2) [1] 3740001 9 I think I would need to have the same number of lines in all 3 data

Re: [R] how to load data frame where numeric will be numeric instead of character

2020-06-01 Thread David Winsemius
to do? I could tell you, but I think instead that you should read the documentation for the `read.table` function. -- David > > Thanks > Ana > > On Mon, Jun 1, 2020 at 4:13 PM David Winsemius <mailto:dwinsem...@comcast.net>> wrote: > > > On 6/1/20 1:37 PM

Re: [R] how to load data frame where numeric will be numeric instead of character

2020-06-01 Thread David Winsemius
On 6/1/20 1:37 PM, Ana Marija wrote: Hello, I have a dataframe like this: ChrBP Marker MAF A1 A2 Direction pValueN 1 10 10625 10:10625:A:G 0.416562 G A - 0.558228 1594 2 10 10645 10:10645:A:C 0.215182 C A - 0.880622 1594 ..

Re: [R] Partial matching list elements in R 4.0

2020-05-28 Thread David Winsemius
There is a modifyList function in pkg utils that is used extensively in the code for lattice graphics:  var$options <- modifyList(var$options, list( misc=list(abc = "123"), mi= list(something    = 13))                                              ) #--- > var $options $optio

Re: [R] how to factor in the ID of the imported subtable to R table?

2020-05-21 Thread David Winsemius
On 5/21/20 9:24 AM, YANJUN CHEN via R-help wrote: Dear R community, I am new to R—did some online tutorials and exercises in R playground. I was wondering if I could seek guidance on the following matter. I have a set of 403 .csv files. Each.csv file contains the same layouts and distinguis

Re: [R] regular expression, stringr::str_view, grep

2020-04-28 Thread David Winsemius
On 4/28/20 2:29 AM, Sigbert Klinke wrote: Hi, we gave students the task to construct a regular expression selecting some texts. One send us back a program which gives different results on stringr::str_view and grep. The problem is "[^[A-Z]]" / "[^[A-Z]" at the end of the regular expressio

Re: [R] Ubuntu 18.04 R repo bionic-cran35 seems to be broken

2020-04-27 Thread David Winsemius
On 4/27/20 7:41 PM, Yakov Goldberg wrote: Hello, I'm using Ubuntu 18.04 R repo https://cloud.r-project.org/bin/linux/ubuntu bionic-cran35/ Perhaps because you misspelled it? https://cloud.r-project.org/bin/linux/ubuntu/bionic-cran35/ Next time try going "upstream and then follow links (a

[R] (probably) SOLVED was .... Re: confidence interval

2020-04-26 Thread David Winsemius
On 4/26/20 12:00 PM, David Winsemius wrote: On 4/26/20 11:26 AM, Alex Serafim wrote: there is a function called "confbands", which is no longer available in software R. It is not "confband" or "confBands", but "confbands", I need to use this objec

Re: [R] confidence interval

2020-04-26 Thread David Winsemius
On 4/26/20 11:26 AM, Alex Serafim wrote: there is a function called "confbands", which is no longer available in software R. It is not "confband" or "confBands", but "confbands", I need to use this object to add confidence intervals in my work. Why is this function not available? attached is an

Re: [R] Add GAM fit on the plot ?

2020-04-22 Thread David Winsemius
On 4/22/20 3:29 PM, varin sacha via R-help wrote: Dear R-experts, Here below the reproducible example. I can not add the "green" gam curve on the plot. The last line of my R code gives me problem. There is a message error that I don't understand. Many thanks for your precious help.

Re: [R] overlaying graphs in xYplot (Hmisc)

2020-04-22 Thread David Winsemius
On 4/22/20 7:31 AM, Cade, Brian S via R-help wrote: Hi All. I am trying to construct a graph using the xYplot() function in Hmisc package (thank you Frank Harrell) taking advantage of the Cbind() argument for plotting the median, 10th, and 90th quantiles and also the cbind() argument for in

Re: [R] Add Gauss normal curve ?

2020-04-11 Thread David Winsemius
On 4/11/20 7:00 AM, varin sacha via R-help wrote: Dear R-experts, Here below my reproducible example. I would like to fit/add the Gauss normal curve to this data. I don't get it. There is no error message but I don't get what I am looking for. Many thanks for your help. #

Re: [R] Help needed: gdal-configuration to install sf package in Mac OS Catalina

2020-04-07 Thread David Winsemius
On 4/5/20 9:27 PM, Bijesh Mishra wrote: Hi, I am using R in Mac. I was trying to install sf package but could not and got error. Detail message of error is under this email. It seems like I have to run gdal- configuration, but not sure what that means. Do you have any idea about that? GDAL i

Re: [R] Mapping of countries

2020-03-31 Thread David Winsemius
On 3/31/20 6:49 AM, george brida wrote: Dear Jim, Is it possible to add also a title to this map? Many thanks When I look at the  ?map help page, I see all these questions answered in the Examples section. -- David On Tue, Mar 31, 2020 at 2:29 PM george brida wrote: Dear Jim,

Re: [R] Error message using boot.ci function

2020-03-30 Thread David Winsemius
ing with 100 replications  results <- boot(data = newdata, statistic = MSE,   R = 100, formula = crp ~ bmi+glucose+age+sex,method="MM") str(results) boot.ci(results, type="norm" ) str(Dataset) str(newdata) summary(results$t) # # # # # # # # # # # # # # # # # # #

Re: [R] Error message using boot.ci function

2020-03-29 Thread David Winsemius
On 3/28/20 12:25 PM, varin sacha via R-help wrote: Dear R-experts, Here below my "toy" reproducible example showing many warnings and an error message. What I am interested in is the error message. Of course I can access and view the results doing : summary(results$t) to give me an idea of w

Re: [R] No predict method for hbrfit

2020-03-21 Thread David Winsemius
On 3/21/20 4:09 PM, varin sacha via R-help wrote: Dear R-helpers, Using the HBR (high breakdown rank-based) robust estimator and the hbrfit function, I get an error saying Error in UseMethod("predict") for hbrfit. How can I solve the problem ? Many thanks for your help. What makes you thi

Re: [R] Strange error message, many thanks

2020-03-21 Thread David Winsemius
List of 11 # $ t0   : num 0.0335 # $ t    : num [1:500, 1] 0.0424 0.0334 0.0289 0.0224 0.0369 ... Snipped rest of output. -- David Le samedi 21 mars 2020 à 20:26:37 UTC+1, David Winsemius a écrit : On 3/21/20 12:18 PM, varin sacha wrote:    mean((d[["y_obs

Re: [R] Strange error message, many thanks

2020-03-21 Thread David Winsemius
On 3/21/20 12:18 PM, varin sacha wrote: > mean((d[["y_obs "]] - ypred)^2) [[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 t

Re: [R] Strange error message, many thanks

2020-03-21 Thread David Winsemius
On 3/21/20 9:35 AM, varin sacha via R-help wrote: Dear R-experts, Here below my R code giving an error message that I don't understand. If somebody can help me to fix it, it would be highly appreciated. # # # # # # # # # # # # # # # # # # # # # # # # install.packages( "robustbase",dependenci

Re: [R] FW: problem with markov random field smooths in mgcv

2020-03-18 Thread David Winsemius
On 3/18/20 12:44 AM, Wilcox, Chris (O&A, Hobart) wrote: Hi all, I am trying to fit a model with a markov random field smooth in mgcv. I am having some trouble with getting it to run, and in particular I am getting the message Error in initial.sp(w * x, S, off) : S[[1]] ma

Re: [R] how do I add text lables on QQ plot

2020-03-11 Thread David Winsemius
On 3/10/20 9:51 PM, Ana Marija wrote: Hello, I am making QQ plot via: library(ggman) qq(fdr2_sorted$FDR.q.val2, main = "RG_All", pch = 17, col=fdr1_sorted$group, cex = 1, las = 1) I think you may be confusing the audience. There is no qq function in the ggman package. There is however a q

Re: [R] file.choose()

2020-03-03 Thread David Winsemius
On 3/3/20 7:29 AM, Dennis Weygand wrote: How do I change the default directory that file.choose() (Windows-10) uses? ?setwd -- David D.P. Weygand [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSC

Re: [R] RSA package adjust alpha for a1-a4 confidence intervals

2020-02-18 Thread David Winsemius
On 1/23/20 12:19 PM, Christopher Steinman wrote: Hi, I'm not experienced with R at all. I'm using some canned code to produce RSA models in the RSA package. I'd like to be able to adjust the alpha for the a1-a4 confidence intervals. This doesn't appear to be a native option for the RSA pac

Re: [R] Executing an R script and show the plots.

2020-01-26 Thread David Winsemius
You need to understand that the R interpreter does not have an interactive plot device when run as a script from an OS command line. You need to open an output device, `print` the output of the ggplot call, and then  _after_ closing the device appropriately, open the output in an appropriate vi

Re: [R] how to create a plot of permutation of 30 random values and show proportion of values

2020-01-24 Thread David Winsemius
It appears you are not trying to do this within individual SNPs. If I’m wrong then this would need to be done within a grouping procedure. And I’m not at all confident that you can estimate FDRs in this manner, but if your strategy is valid, then some variant of this untested code: replicate (

Re: [R] Reporting missing dates

2020-01-16 Thread David Winsemius
Looks reasonable and efficient. There is a seq.Date function that would be implicitly selected by the S3 class dispatch rules David Sent from my iPhone > On Jan 16, 2020, at 4:28 AM, Jeff Reichman wrote: > > R-help Forum > > I have a 20 year data set and I am looking for a way to find miss

Re: [R] Dataframe by Serial ID

2020-01-08 Thread David Winsemius
> On Jan 8, 2020, at 6:52 AM, Thomas Subia wrote: > > Colleagues, > > I have two data frames which look like this. > > Data frame 1 > > Serial Pre.HolePre.flowPre.Date > 1 30361 0.2419-Nov-19 > 2 30362

Re: [R] issue with Rcmdr

2020-01-06 Thread David Winsemius
On 1/6/20 5:16 AM, tzahaf wrote: Dear I have a problem when trying to use Rcmdr.  This is the msg I receive: package ‘Rcmdr’ successfully unpacked and MD5 sums checked The downloaded binary packages are in C:\Users\toufiz00\AppData\Local\Temp\RtmpgXuxDP\downloaded_packages local({pkg <- sel

Re: [R] Time intervals is converted into seconds after converting list of dfs into a single Df.

2019-12-24 Thread David Winsemius
Perhaps some modification of masterList <- list() for( dfnum in seq_along(ListOfDFs)){ masterList <- rbind(masterList, ListOfDFs[[dfnum]])    }  masterList #---    id         dates1          dates2            

Re: [R] all the MAE metric values are missing (Error message)

2019-12-22 Thread David Winsemius
You need to read the Posting Guide (and study the options of the gmail interface). This is a plain text mailing list and the server does not accept attachments that are anything other than .txt or .pdf files. -- David. On 12/22/19 9:15 AM, Neha gupta wrote: I am using the following code to

Re: [R] how to merge 5 data frames by one column

2019-12-03 Thread David Winsemius
On 12/3/19 12:16 PM, Ana Marija wrote: would this make sense for the previous: mt=na.omit(m, cols = c("V1.1","V1.2","V1.3","V1.4","V1.5")) On Tue, Dec 3, 2019 at 2:09 PM Ana Marija wrote: I can perhaps do this: m=Reduce(function(x, y) merge(x, y, all=TRUE), list(s11, s22, s33,s44,s55)) bu

Re: [R] Why does nlme::getVarCov not Work for nlme Models?

2019-11-19 Thread David Winsemius
On 11/19/19 8:59 AM, b...@denney.ws wrote: Hi Bert, If the statistical reason is off topic here, do you have a suggestion of a better forum? There are two forums of the top of my head. The first should have been obvious if you had reviewed the mailing lists under the r-project.org do

Re: [R] Adaptive resampling in r

2019-11-17 Thread David Winsemius
This doesn't appear to be a question about R coding. Please review the Posting Guide. -- David. On 11/15/19 2:59 PM, Neha gupta wrote: How the hyperparameter settings via adaptive resampling is different from the one obtained from grid search or random search? Both grid and random searches p

Re: [R] Glmnet survival cox predict

2019-11-15 Thread David Winsemius
On 11/15/19 10:49 AM, Amir Hadanny wrote: Hi all, i'm trying to get the prediction probabilities for a survival elastic net. When i use try to predict using the train model on the test set, it creates an object with the number rows of the train data (6400 rows) instead of the test data (2400 ro

Re: [R] problem in WRS2

2019-11-06 Thread David Winsemius
If a crosstabs on the two factors has any zero counts it might explain. — David Sent from my iPhone > On Nov 6, 2019, at 5:42 PM, Jim Lemon wrote: > > Hi Greg, > I tried this: > > cp<-read.table(text="Birey Grup Time y > 11 Cp1 0.7916386 > 11 Cp3 1.7463777 > 11 Cp7 1.2008390

Re: [R] (no subject)

2019-11-05 Thread David Winsemius
This question is off-topic for rhelp despite your use of an R package because it is a request for advice for statistical issues, rather than about R coding. You should read the Posting guide where you are advised of this concern. You are also asked to post in plain text and include an informati

Re: [R] coin::oneway_test and independence_test ...was Re: (no subject)

2019-11-04 Thread David Winsemius
You _should_ read the Posting Guide. Informative subjects are emphatically requested, and rhelp is a plain text mailing list On 11/4/19 9:30 AM, imran damkar wrote: Hi, I would like to know what is the difference between function oneway_test and independence_test of coin package. It's not so

Re: [R] transforming dates

2019-11-03 Thread David Winsemius
On 11/3/19 11:51 AM, Bert Gunter wrote: Rui is right -- lubridate functionality and robustness is better -- but just for fun, here is a simple function, poorly named reformat(), that splits up the date formats, cleans them up and standardizes them a bit, and spits them back out with a sep chara

Re: [R] error in train function

2019-11-03 Thread David Winsemius
On 11/1/19 11:27 AM, javed khan wrote: > Hi > > I receive the following error, where is the problem? > > Error in train(Effort ~ ., data = d, method = "lpSVM", trControl = > fitControl, : >unused arguments (data = d, method = "lpSVM", trControl = fitControl, > verbose = FALSE, metric = "ROC"

Re: [R] Vector memory exhausted (limit reached?)

2019-10-28 Thread David Winsemius
On 10/28/19 2:17 PM, varin sacha via R-help wrote: Dear R-experts, My reproducible example here below is not working because of an error message : Erreur : vecteurs de mémoire épuisés (limite atteinte ?) My code perfectly works when n=3000 or n=5000 but as soon as n=1 my code does not wo

Re: [R] Assistant

2019-10-27 Thread David Winsemius
I thought this text was pretty useful: https://www.amazon.com/Introduction-Scientific-Programming-Simulation-Chapman/dp/1420068725 -- David On 10/25/19 2:30 AM, basiru shehu wrote: I am Basiru Shehu by name, wishing to conduct my research base on the multivariate Behrems Fisher problems, ple

Re: [R] Conditions in R (Help Post)

2019-10-23 Thread David Winsemius
On 10/22/19 10:19 PM, Yeasmin Alea wrote: Thank you. Can you please have a look the below data sets, script and question? *Dataset-1: Pen* *YEAR DAY X Y Sig phase * * * *1 1981 9 -0.213 1.08 1.10 Phase-7* *2 198110 0.065 1.05 1.05 Phase-6* *Dataset-

Re: [R] Change colour ggiNEXT plot package iNEXT

2019-10-23 Thread David Winsemius
On 10/22/19 12:48 PM, Luigi Marongiu wrote: I thought it was a major package for ecological analysis. Yours is the first question in 20 years of Rhelp about the package iNEXT. -- David Anyway, thank you for the tips. I'll dip from there. On Tue, Oct 22, 2019 at 5:29 PM Jeff Newmiller

Re: [R] If Loop I Think

2019-10-22 Thread David Winsemius
On 10/22/19 1:54 PM, Phillip Heinrich wrote: Row Outs RunnerFirst RunnerSecond RunnerThird R1 R2 R3 1 0 2 1 3 1 4 1 arenn001 5 2 arenn001 6 0 7 0 perad001 8 0 polla001 perad001 9 0 goldp001 polla001 perad001 10 0 lamb

<    1   2   3   4   5   6   7   8   9   10   >