Re: [R] File conca.

2019-11-05 Thread PIKAL Petr
Hi in line > -Original Message- > From: Val > Sent: Wednesday, November 6, 2019 3:24 AM > To: PIKAL Petr > Cc: r-help@R-project.org (r-help@r-project.org) > Subject: Re: [R] File conca. > > Thank you Petr and Jeff fro your suggestions. > > I made some improvement but still need some

Re: [R] File conca.

2019-11-05 Thread Val
Thank you Petr and Jeff fro your suggestions. I made some improvement but still need some tweaking. I could not get correctly the folders names added to each row. Only the last forename was added. table(Alldata$oldername) resulted week2 25500 Please see the complete,

Re: [R] [FORGED] Re: Help needed for one question (Urgent)

2019-11-05 Thread Wang Jiefei
Agree, especially there is an "Urgent" on the title. He must be too "urgent" to think about your answer. I will wonder if your effort will be in vain. Best, Jiefei On Tue, Nov 5, 2019 at 4:52 PM Rolf Turner wrote: > > Richard: I know that you mean well, but *please* don't do people's >

Re: [R] how to place a rug on only the x-axis in a scatterplot with lattice

2019-11-05 Thread Bert Gunter
For the record, I left out a key word in my prior "explanation", which I have corrected below. I also needed to clarify something, as my original wording is confusing. Sorry about that. Bert On Tue, Nov 5, 2019 at 11:09 AM Bert Gunter wrote: > Lattice functions pass down their

Re: [R] [FORGED] Re: Help needed for one question (Urgent)

2019-11-05 Thread Rolf Turner
Richard: I know that you mean well, but *please* don't do people's homework for them!!! (They are *cheating* by asking R-help to do their homework.) cheers, Rolf Turner On 6/11/19 4:27 AM, Richard O'Keefe wrote: This looks vaguely like something from exercism. Let's approach it

Re: [R] Global curve fitting/shared parameters with nls() alternatives

2019-11-05 Thread Bert Gunter
A simplified example of what you wish to do might help to clarify here. Here's my guess. Feel free to dismiss if I'm off base. Suppose your model is: y = exp(a*x) + b and you wish the b to be constant but the a to vary across expts. Then can you not combine the data from both into single x, y

Re: [R] how to place a rug on only the x-axis in a scatterplot with lattice

2019-11-05 Thread Bert Gunter
Here's how you pass an argument down to the panel function. foo <- runif(30,0,5) y <- rnorm(30, mean = 10) xyplot(y~foo, panel = function(x,...) { panel.xyplot(x,..., col = "red") panel.rug(x, col="black") }) Cheers, Bert Bert Gunter "The trouble with having

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

Re: [R] Help needed for one question (Urgent)

2019-11-05 Thread Chandeep Kaur
Dear All, Thanks for all the support and help and I think I was able to solve my problem. Thanks a ton. Best Regards, Chandeep Kaur On Tue, 5 Nov 2019, 8:57 pm Richard O'Keefe, wrote: > This looks vaguely like something from exercism. > Let's approach it logically. > xa xb xc ya yb zc > We

Re: [R] how to get higher precision p value output

2019-11-05 Thread Eric Berger
> set.seed(1) > m <- matrix(rnorm(500),ncol=2) > cor(m) # [,1] [,2] # [1,] 1. 0.04060113 # [2,] 0.04060113 1. > options(digits=12) > cor(m) # [,1][,2] # [1,] 1.0 0.0406011304584 # [2,] 0.0406011304584 1.0

[R] [R-pkgs] New package 'funprog' : data manipulation with high-order functions

2019-11-05 Thread PY Berrard
DeaR users, A new package called 'funprog' is now on CRAN : https://CRAN.R-project.org/package=funprog 'funprog' contains high-order functions to manipulate data, given one or more auxiliary functions. Functions are inspired by other pure functional programming languages (Haskell mainly).

[R] Global curve fitting/shared parameters with nls() alternatives

2019-11-05 Thread James Wagstaff
Hello I am trying to determine least-squares estimates of the parameters of a nonlinear model, where I expect some parameters to remain constant across experiments, and for others to vary. I believe this is typically referred to as global curve fitting, or the presence of shared/nested parameters.

[R] how to get higher precision p value output

2019-11-05 Thread Ana Marija
Hi, I am running this function: library(psych) corr.test.col.1to3 <- corr.test(allF[1:3], method = "spearman", use = "complete.obs") names(corr.test.col.1to3) corr.test.col.1to3$p and my result looks like this: > corr.test.col.1to3$p B_NoDB_DwoC B_DwC B_NoD 0.000 0.000

Re: [R] How to merge 3 data frames by rownames?

2019-11-05 Thread Eric Berger
I think your code is a bit buggy. Try this for(i in 2:length(l)) { allF <- merge(allF, l[[i]], by= "row.names", all.x= F, all.y= F) rownames(allF) <- allF$Row.names allF <- allF[,-1] } HTH, Eric On Tue, Nov 5, 2019 at 6:16 PM Ana Marija wrote: > Hi, > > I have 3 data frames like this:

[R] how to place a rug on only the x-axis in a scatterplot with lattice

2019-11-05 Thread Christopher W Ryan
The following produces a scatterplot with rugs on both the vertical and horizontal axes. library(dplyr) library(stringr) library(lattice) library(latticeExtra) ## . xyplot(scheduleInterval ~ calledForApptDate, data = dd.2, xlab = "Date patient called for appointment", ylab = "Days in the

[R] How to merge 3 data frames by rownames?

2019-11-05 Thread Ana Marija
Hi, I have 3 data frames like this: > head(s11) B_NoD Ebfrl.7uOZfnjp_E7k 7.583709 ueQUrXd5FH554RlhZc 5.177791 0Uu3XrB6Bd14qoNeuc 4.680306 0t7nhVLii6tSAxtLhc 4.565023 fSUyR.vR7Xu0iR4nUU 2.885992 0Tm7hdRJxd9zoevPlA 2.866847 > head(s22) B_DwoC

[R] getting summary statistics easily with dplyr

2019-11-05 Thread Christopher W Ryan
I'm trying to modernize my way of thinking, and my coding, into the dplyr/tidyverse way of doing things. To get basic summary statistics on a variable in a dataframe, with the output also being a dataframe. I previously would do something like this, using other packages: library(doBy)

Re: [R] Help needed for one question (Urgent)

2019-11-05 Thread Richard O'Keefe
This looks vaguely like something from exercism. Let's approach it logically. xa xb xc ya yb zc We see two patterns here: A: x x x y y z B: a b c a b c If only we had these two character vectors, we could use paste(A, B, sep = "") to get the desired result. So now we have reduced the problem

Re: [R] Help needed for one question (Urgent)

2019-11-05 Thread Jeff Newmiller
In other words... read the Posting Guide. On November 5, 2019 2:52:34 AM PST, Jim Lemon wrote: >Homework Chandeep, homework. > >Jim > >On Tue, Nov 5, 2019 at 9:40 PM Chandeep Kaur >wrote: >> >> Dear Team, >> >> Could you please help me with the below question? How can I get the >desired >>

[R] (no subject)

2019-11-05 Thread imran damkar
Greetings, I have collected the data based on 5 point likert scale(very low, low, neutral, high,very high) on the factor considered by individual before making investment decision. There are five factors (D.Vs) Influencing investment decisions. I am interested in knowing whether there is

Re: [R] Help needed for one question (Urgent)

2019-11-05 Thread Jim Lemon
Homework Chandeep, homework. Jim On Tue, Nov 5, 2019 at 9:40 PM Chandeep Kaur wrote: > > Dear Team, > > Could you please help me with the below question? How can I get the desired > output? > > Produce the following sequence using only rep(), seq() and potentially > other functions/operators.

[R] Help needed for one question (Urgent)

2019-11-05 Thread Chandeep Kaur
Dear Team, Could you please help me with the below question? How can I get the desired output? Produce the following sequence using only rep(), seq() and potentially other functions/operators. You must not use c() nor explicit loops “xa” “xb” “xc” “ya” “yb” “zc” Thanks & Regards, Chandeep

Re: [R] Order axis by number of entries in lattice plot

2019-11-05 Thread Luigi Marongiu
Thank you. the factor approach worked all right. Thank you for Likert also: I already used it but here I wanted to run with lattice only. Best regards On Mon, Nov 4, 2019 at 6:57 PM Richard M. Heiberger wrote: > > ## The likert function would work well for this example. > ## Continuing from your

Re: [R-es] R en aws via SageMaker/Notebook

2019-11-05 Thread Carlos Ortega
OK. Mira esta otra ayuda.. https://stackoverflow.com/questions/51858379/how-to-link-s3-bucket-to-sagemaker-notebook Gracias, Carlos Ortega www.qualityexcellence.es El mar., 5 nov. 2019 a las 7:53, Mabel Garcia () escribió: > Muchas gracias por el enlace Carlos, me da error en el otro sentido,

Re: [R] File conca.

2019-11-05 Thread Jeff Newmiller
I recommend not using setwd unless you have to (e.g at the beginning of a script run by cron or another task scheduler). It is much simpler to build paths to directories and files using file.path. On November 5, 2019 12:13:19 AM PST, PIKAL Petr wrote: >Hi > >Help with such operations is rather

Re: [R] File conca.

2019-11-05 Thread PIKAL Petr
Hi Help with such operations is rather tricky as only you know exact structrure of your folders. see some hints in line > -Original Message- > From: R-help On Behalf Of Val > Sent: Tuesday, November 5, 2019 4:33 AM > To: r-help@R-project.org (r-help@r-project.org) > Subject: [R] File