[R] Creating a script in Rstudio

2024-12-05 Thread Carlos Alberto Baptista de Figueiredo
Hi there I want to create a script in Rstudio and load in the reagent dataset ensuring that the different data types in there (dates, text, etc) come through correctly. Best wishes Carlos __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and

[R] Outputting a difftime object in PASTE or AS.CHARACTER is missing the unit + expand the format options?

2024-10-25 Thread Reuver, B de (epi) via R-help
the format() options for the datediff object, so that it also accepts a strptime-like string, so like %H:%M:%S ? That way you have more output options without having to rely on third-party libraries regards, Bas de reuver (UMCG, The Netherlands) ____ De inhoud van di

Re: [R] regarding CCA plot

2023-12-09 Thread Gilson Correia de Carvalho
utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail> Não contém vírus.www.avg.com <http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail> <#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2> Em sáb., 9

Re: [R] [External] Re: Error in setwd(dir) when initializing R

2023-11-22 Thread Ana de las Heras Molina
he > Complutense is setting up it is surprising that all your collegues are > free of problems. Have you asked around? > > Michael > > On 21/11/2023 12:41, Ana de las Heras Molina wrote: > > Hello, > > > > I am sorry for my ignorance, but what is Rgui.exe? > >

Re: [R] [External] Re: Error in setwd(dir) when initializing R

2023-11-21 Thread Ana de las Heras Molina
Hello, I am sorry for my ignorance, but what is Rgui.exe? El mar, 21 nov 2023 a las 12:06, Ivan Krylov () escribió: > В Tue, 21 Nov 2023 10:51:59 +0100 > Ana de las Heras Molina пишет: > > > I uninstalled onedrive, I eliminated all the folders and then > > reinstalled R

Re: [R] [External] Re: Error in setwd(dir) when initializing R

2023-11-21 Thread Ana de las Heras Molina
Hi, I uninstalled onedrive, I eliminated all the folders and then reinstalled R and RStudio... but it is RStudio the one creating a folder called C:\Users\Ana\OneDrive - Universidad Complutense de Madrid (UCM)\Documentos. This is what I obtained with the debugging Error in setwd(dir) : no es

Re: [R] [External] Re: Error in setwd(dir) when initializing R

2023-11-20 Thread Ana de las Heras Molina
Hello, Thank you all for your responses. When I initialize R, the folder in which it starts is: getwd() [1] "C:/Users/Ana/OneDrive - Universidad Complutense de Madrid (UCM)/Documentos" So it seems a problem with OneDrive -Kevin: I do not really understand your question... You mean i

[R] Error in setwd(dir) when initializing R

2023-11-20 Thread Ana de las Heras Molina
Hello, I am Ana de las Heras, and I write to you because every time I open RStudio or R directly I have the following message, before I can do anything at all: Error in setwd(dir) : no es posible cambiar el directorio de trabajo At first I didn't pay much attention to it, but I am having

[R] Installing df2genind version clash?

2023-05-23 Thread Adriaan de Jong
Dear list members, I want to install the df2genind package to create a genind-class object for adegenet. Despite recent updates of R (now version R 4.3.0) and RStudio (now version 2023-03-1 Build 446), I get the following warning/error message: ---

[R] Plotting prediction curves and CIs from GAM models

2023-02-14 Thread Adriaan de Jong
oS and ToD? If not, how can I find/create one? 2. How can I produce a "topography"-plot of the predicted count numbers over ToD vs DoS, similar to the one for the tensor estimates produced by plot.gam? Thanks in advance for any references, comments and suggestions. Have a nice day, Adriaan

Re: [R] Help for funnel plot

2022-05-15 Thread De Simone
those functions can be found. > > > Hope this helps, > > Rui Barradas > > > Às 01:37 de 15/05/2022, De Simone escreveu: > > Hi, > > Excuse me for this silly question > > how do I get a colour gradient like the one attached. Colours are a bit > > limi

[R] There is a relationship of the Modify-in-place optimisation of a object and the local variable `*tmp*`?

2021-10-07 Thread Ben Deivide de Oliveira Batista
this case? If so, what would the syntactic representation look like, similar to example 1? -- Ben Dêivide de Oliveira Batista Prof. Estatística (DEFIM/CAP/UFSJ) Página pessoal/profissional: bendeivide.github.io Página Institucional: www.ufsj.edu.br/bendeivide [[alternative HTML version deleted]

[R] Find the number of clusters using clusGAP function in R

2021-01-20 Thread Jovani T. de Souza
Could you help me find the ideal number of clusters using the `clusGap `function? There is a similar example in this link: https://www.rdocumentation.org/packages/factoextra/versions/1.0.7/topics/fviz_nbclust But I would like to do it for my case. My code is below: library(cluster) df <

[R] Error pvclust package: Error in hclust(distance, method = method.hclust)

2020-12-14 Thread Jovani T. de Souza
This question was also made in https://stackoverflow.com/questions/65290436/error-pvclust-package-error-in-hclustdistance-method-method-hclust-must Question: Could you help me resolve the following error: Error in hclust(distance, method = method.hclust) : must have n >= 2 objects to c

Re: [R] Find the ideal cluster

2020-12-14 Thread Jovani T. de Souza
&utm_medium=signature&utm_campaign=signaturevirality5&;> 14/12/20 19:11:49 Em sáb., 12 de dez. de 2020 às 14:06, Michael Dewey escreveu: > Dear Jovani > > If you cross-post on CrossValidated as well as here it is polite to give > a link so people do not answer here when som

[R] Find the ideal cluster

2020-12-12 Thread Jovani T. de Souza
So, I and some other colleagues developed a hierarchical clustering algorithm to basically find the main clusters involving agricultural industries according to a particular city (e.g. London city).. We structured this algorithm in R. It is working perfectly. So, according to our filters that we in

[R] Use clusters.stats function from a hierarchical clustering in R

2020-12-11 Thread Jovani T. de Souza
I would like a great help from you. I used the cluster.stats function that is part of the `fpc` package to compare the similarity of two custer solutions using a variety of validation criteria, as you can see in the code. However, I have two questions: 1 ° Is it possible to know which is the most

Re: [R] Inappropriate color name

2020-11-20 Thread Charles Novaes de Santana
e institute, with a board of > literary, sociology, psychology professors? > > Afaik is github owned by Microsoft, and Microsoft is known to be an > offender of peoples rights. Who the @#$@#$ cares what they do? > > > -- Um axé! :) -- Charles Novaes de Santana, PhD https://github.co

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

2020-11-20 Thread Charles Novaes de Santana
> PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > -- Um axé! :) -- Charles Novaes de Santana, PhD https://github.com/cndesantana [[alternative HTML version deleted]] _

Re: [R] [R-sig-Geo] raster::levels() not working in packaged function.

2020-10-31 Thread Marcelino de la Cruz Rot
r-sig-...@r-project.org https://stat.ethz.ch/mailman/listinfo/r-sig-geo . -- Marcelino de la Cruz Rot Depto. de Biología y Geología Física y Química Inorgánica Universidad Rey Juan Carlos Móstoles España __ R-help@r-project.org mailing list -- To UNSUBSC

Re: [R] Learning Shinny

2020-04-12 Thread Juan Telleria Ruiz de Aguirre
You could use the following rmarkdown book, with last chapter debited to shiny :) https://bookdown.org/yihui/rmarkdown/ El jueves, 9 de abril de 2020, Kumar t escribió: > Hello all , > > Very sorry to ask you question that might have been answered earlier . I > could not able t

[R] Cross validation tidyLPA

2020-03-06 Thread De Meo Ermelinda
Are there available some cross-validation method for LPA object?? Linda Rispetta l’ambiente: non stampare questa mail se non è necessario. Respect the environment: print this email only if necessary. __ R-help@r-project.org mailing list -- To UNSUBSCR

Re: [R] How to use Conda with R + RStudio Server

2019-10-07 Thread Juan Telleria Ruiz de Aguirre
Solution: https://github.com/grst/rstudio-server-conda It works. [[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

[R] How to use Conda with R + RStudio Server

2019-09-07 Thread Juan Telleria Ruiz de Aguirre
Dear R-help Mailing List: For reproducibility, I want to use Conda + R (IRkernel), which will allow me to have within the same machine different "environments", with different versions of R installed, and specific package versions: http://know.continuum.io/rs/387-XNW-688/images/conda-cheatsheet.p

[R] A goodness of fit test for two discrete distributions with unequal variance?

2019-08-23 Thread Serena De Stefani
I have a computer simulation in which a virtual agent end up in different areas of a layout based on several factors. There are 18 conditions in total. If I collapse the datapoint into bins, where each bin is one of the areas, the data would look like this: x0 <- c(3,3,5,5,2) # computer simula

[R] Flip heatmap color range in base R?

2019-05-12 Thread Serena De Stefani
I am building a simple heat map in base R. This is my matrix: stleft = matrix( c(0,5,5,2,6,8,4,6,9), nrow=3, ncol=3) colnames(stleft) <- c("Narrow","Wide", "Wider") rownames(stleft) <- c("Person", "Object","Bare") stleft The matrix looks like this:

Re: [R] Sorting vector based on pairs of comparisons

2019-03-15 Thread Pedro Conte de Barros
Thanks Bert. Excellent reference, I learned a lot from it! Just a note: I did use search engines for at least 2 days before posting. BUT as often happens, I did not use the right keywords. I tried several variants of "Convert ordered pairs to sorted", "Sort vector on paired comparisons" and abo

Re: [R] Sorting vector based on pairs of comparisons

2019-03-14 Thread Pedro Conte de Barros
Thanks for this. Yes, this is checked before trying to process this. Pedro On 14/03/2019 14.09, Bert Gunter wrote: This cannot be done unless transitivity is guaranteed. Is it? S L a b b c c a Bert On Thu, Mar 14, 2019, 4:30 AM Pedro Conte de Barros mailto:pbar...@ualg.pt>>

[R] Sorting vector based on pairs of comparisons

2019-03-14 Thread Pedro Conte de Barros
Dear All, This should be a quite established algorithm, but I have been searching for a couple days already without finding any satisfactory solution. I have a matrix defining pairs of Smaller-Larger arbitrary character values, like below Smaller <- c("ASD", "DFE", "ASD", "SDR", "EDF", "ASD")

Re: [R] ANOVA Permutation Test

2018-09-03 Thread Juan Telleria Ruiz de Aguirre
Thank you all for your **very good** answers: Using aovp(..., perm="Exact") seems to be the way to go for small datasets, and also I should definitely try ?kruskal.test. Juan [[alternative HTML version deleted]] __ R-help@r-project.org mailin

[R] ANOVA Permutation Test

2018-09-03 Thread Juan Telleria Ruiz de Aguirre
Dear R users, I have the following Question related to Package lmPerm: This package uses a modified version of aov() function, which uses Permutation Tests instead of Normal Theory Tests for fitting an Analysis of Variance (ANOVA) Model. However, when I run the following code for a simple linear

Re: [R] initiate elements in a dataframe with lists

2018-07-25 Thread Juan Telleria Ruiz de Aguirre
By the way, this also works: dfl <- data.frame(x = 1:3, y = I(list(1:2, 1:3, 1:4))) As indicated in "Advanced R" book: http://adv-r.had.co.nz/Data-structures.html#data-frames __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://

Re: [R] initiate elements in a dataframe with lists

2018-07-25 Thread Juan Telleria Ruiz de Aguirre
> Just for my understanding: > Is a data.frame with list columns still a data.frame? Isn't it then a list? * A data.frame (or tibble) is a list of columns. * In which each column must be from the same data type, in this case list(). __ R-help@r-project.

Re: [R] initiate elements in a dataframe with lists

2018-07-25 Thread Juan Telleria Ruiz de Aguirre
Check tidyverse's purrr package: https://github.com/rstudio/cheatsheets/raw/master/purrr.pdf In the second page of the cheatsheet there is info on how to create list columns within a data.frame :) [[alternative HTML version deleted]] __ R-help

[R] Automate running files in R

2018-07-22 Thread Serena De Stefani
I need to automate a process in R. Basically I have a an R script (I will call it R1) that needs three separate files to run. These three files are the results output of one trial in my study. So from each run in R I obtain the summary results for one trial, in a csv file, plus 32 graphs for each

[R] Trouble with tibbles

2018-06-28 Thread Juan Telleria Ruiz de Aguirre
Factor Data Type, indeed, is of typeof() Numeric. Try converting that column to character with as.character() Class transformation then must work :) Juan [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCR

Re: [R] parallel computing in r....

2018-06-28 Thread Juan Telleria Ruiz de Aguirre
Maybe this R-bloggers post could also help you: https://www.google.es/amp/s/www.r-bloggers.com/implementing-parallel-processing-in-r/amp/ https://www.google.es/amp/s/www.r-bloggers.com/a-guide-to-parallelism-in-r/amp/ [[alternative HTML version deleted]]

Re: [R] Package parallel missing from CRAN_package_db

2018-05-09 Thread Luí­s Moreira de Sousa via R-help
[1] Package > > <0 rows> (or 0-length row.names) > > > pdb[pdb$Package=="tools",]["Package"] > > [1] Package > > <0 rows> (or 0-length row.names) > > --Ista > > On Wed, May 9, 2018 at 8:23 AM, Luí­s Moreira de Sousa via R-help &

[R] Package parallel missing from CRAN_package_db

2018-05-09 Thread Luí­s Moreira de Sousa via R-help
Dear all, I am using the CRAN_package_db function to determine whether the head versions of certain packages match those I need. The parallel package though, is missing from the database: > pdb <- tools:::CRAN_package_db() > pdb[pdb$Package=="parallel",]["Package"] [1] Package <0 rows> (or 0-le

Re: [R] Why aov() with Error() gives three strata?

2017-12-29 Thread Jorge Fernando Saraiva de Menezes
ise aov() is just the wrong tool.) > > -pd > > > On 28 Dec 2017, at 19:36 , Jorge Fernando Saraiva de Menezes < > jorgefernandosara...@gmail.com> wrote: > > > > Bert, thanks for the reply but I feel that my question is less about > > statistics and more about

Re: [R] Why aov() with Error() gives three strata?

2017-12-28 Thread Jorge Fernando Saraiva de Menezes
reducing their ability to explain to me the output of aov. Em 28 de dez de 2017 20:04, "Bert Gunter" escreveu: > Jorge: > > FYI, *generally speaking,* queries that are mostly statistical in > nature, such as yours, are off topic here -- this list is about R > programming h

[R] Why aov() with Error() gives three strata?

2017-12-28 Thread Jorge Fernando Saraiva de Menezes
Dear list users, I am trying to learn Repeated measures ANOVA using the aov() interface, but I'm struggling to understand its output. According to tutorials on the web, formula for a repeated measures design is: aov(Y ~ IV+ Error(SUBJECT/IV) ) This formula does work but it returns three strata

[R] Print All Warnings that Occurr in All Parallel Nodes

2017-09-14 Thread TELLERIA RUIZ DE AGUIRRE, JUAN
Dear R Users, I have developed the following code for importing a series of zipped CSV by parallel computing. My problems are that: A) Some ZIP Files (Which contain CSVs inside) are corrupted, and cannot be opened. B) After executing parRapply I can only see the last.warning variable error, f

[R] 3d graph with contours lines

2017-05-07 Thread Fernando de Souza Bastos
Can anyone help solve this issue? I thank you! http://stackoverflow.com/questions/43817083/3d-graph-with-contours-lines Best, Fernando de Souza Bastos Assistant professor Federal University of Viçosa (UFV) Campus UFV - Florestal PhD Student in Statistics Federal University of Minas Gerais

Re: [R] [FORGED] Re: Crete stats course

2017-03-20 Thread Helios de Rosario
s they were reasonably brief and not overly frequent. Or > something like that. DESCARGATE el ANUARIO del IBV 2015 desde http://www.ibv.org/anuario/Anuario2015/ INSTITUTO DE BIOMECÁNICA Universitat Politècnica de València - Edificio 9C Camino de Vera s/n - 46022 VALENCIA (ESPAÑA) Tel. +

[R] JRI: obtain error messages from the R engine

2017-02-20 Thread Luí­s Moreira de Sousa via R-help
Dear all, I am using JRI to execute a number of computations using the R engine. As pointed in various tutorials out there in the web I am using the eval method of the Rengine class, e.g.: engine.eval("meanVal=mean(rVector)"); At some point the eval method starts returning NULL, which accordin

[R] Return of the gradient function when using Optim functions and colSums

2017-01-02 Thread Fernando de Souza Bastos
ctions-and-colsums Thank you! best regards, Fernando de Souza Bastos Teacher of Mathematics and Statistics Universidade Federal de Viçosa (UFV) Campus UFV - Florestal PhD in progress in Statistics Universidade Federal de Minas Gerais (UFMG) [[alternative HTML versi

Re: [R] Function implemented in R returns the wrong value

2016-12-11 Thread Fernando de Souza Bastos
Thank you Duncan, it really was that! Fernando de Souza Bastos Professor Assistente Universidade Federal de Viçosa (UFV) Campus UFV - Florestal Doutorando em Estatística Universidade Federal de Minas Gerais (UFMG) Cel: (31) 99751-6586 2016-12-11 11:25 GMT-02:00 Duncan Murdoch : > On 10

[R] Function implemented in R returns the wrong value

2016-12-10 Thread Fernando de Souza Bastos
term0 <- (y-mu1)/sigma term1 <- ((rho*(term0))+mu2)/sqrt(1-rho^2) Phi_mu2 <- pnorm(mu2) phi_t0 <- dnorm(term0) phi_t1 <- dnorm(term1) Phi_t0 <- pnorm(term0) Phi_t1 <- pnorm(term1) f <- (phi_t0*Phi_t1)/(sigma*Phi_mu2) #Função l

Re: [R] [FORGED] Re: [FORGED] How to remove box in Venn plots (Vennerable package, uses grid) - similar to bty="n" in standard plots

2016-11-15 Thread DE LAS HERAS Jose
The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336. __ 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

Re: [R] [FORGED] How to remove box in Venn plots (Vennerable package, uses grid) - similar to bty="n" in standard plots

2016-11-14 Thread DE LAS HERAS Jose
at the moment. Thank you for your help again, grid.ls() etc is a very cool and flexible approach Jose From: Paul Murrell Sent: 13 November 2016 19:57 To: DE LAS HERAS Jose; R-help@r-project.org Subject: Re: [FORGED] [R] How to remove box in Venn plots (Vennerable package, uses

[R] How to remove box in Venn plots (Vennerable package, uses grid) - similar to bty="n" in standard plots

2016-11-11 Thread DE LAS HERAS Jose
ugh with Grid. I was looking at the documentation but I can't seem to find a way to achieve that. I'd even be happy drawing a white rectangle with wide lines to overplot the box, but there must be a way to not draw the box in the first place. Anybody knows how? Jose -- Dr. Jose I. d

[R] Number of used observations in stats::arima with NAs

2016-11-02 Thread Javier López-de-Lacalle via R-help
g" is not NULL, "dx" is required in other part of the code, so it is convenient to use it here as well; replacing "x" by "dx" and "xreg" by "dxreg": isna <- is.na(dx) | apply(dxreg, 1L, anyNA) n.used <- sum(!isna) Are there any reaso

Re: [R] Accelerating binRead

2016-09-18 Thread Philippe de Rochambeau
I would gladly examine your example, Mike. Cheers, Philippe > Le 18 sept. 2016 à 16:05, Michael Sumner a écrit : > > > >> On Sun, 18 Sep 2016, 19:04 Philippe de Rochambeau wrote: >> Please find below code that attempts to read ints, longs and floats from a &g

Re: [R] Accelerating binRead

2016-09-18 Thread Philippe de Rochambeau
dos.writeFloat(3.F); dos.writeInt(2); dos.writeLong(22L); dos.writeFloat(13.4644F); dos.writeInt(3); dos.writeLong(55L);

Re: [R] Accelerating binRead

2016-09-18 Thread Philippe de Rochambeau
based on its size. > Le 17 sept. 2016 à 20:45, Philippe de Rochambeau a écrit : > > Hi Jim, > this is exactly the answer I was look for. Many thanks. I didn’t R had a pack > function, as in PERL. > To answer your earlier question, I am trying to update legacy code to read a

Re: [R] Accelerating binRead

2016-09-18 Thread Philippe de Rochambeau
oltman <mailto:jholt...@gmail.com>> wrote: > Your example was not reproducible. Also how do you "break" out of the > "while" loop? > > > Jim Holtman > Data Munger Guru > > What is the problem that you are trying to solve? > Tell me what you wa

[R] Accelerating binRead

2016-09-17 Thread Philippe de Rochambeau
Hello, the following function, which stores numeric values extracted from a binary file, into an R matrix, is very slow, especially when the said file is several MB in size. Should I rewrite the function in inline C or in C/C++ using Rcpp? If the latter case is true, how do you « readBin » in R

Re: [R] Subset with missing argument within a function

2016-02-04 Thread Stefano de Pretis
for missingness > before > evaluating a subscript argument so it will not give that error.) > > > Bill Dunlap > TIBCO Software > wdunlap tibco.com > > On Thu, Feb 4, 2016 at 7:47 AM, Stefano de Pretis > wrote: > >> Hi Petr, >> >> Thank yo

Re: [R] Subset with missing argument within a function

2016-02-04 Thread Stefano de Pretis
w" "x" "y" "z" > > It is sometimes useful not "expect" the program behavior but "inspect" why > it behaves differently. > > If you want your function to throw error when some arguments are missing > you need to do the check y

[R] Subset with missing argument within a function

2016-02-04 Thread Stefano de Pretis
t;e" "f" "g" "h" "i" "j" "k" "l" "m" "n" "o" "p" "q" "r" "s" [20] "t" "u" "v" "w" "x" "y" &q

Re: [R] Plotting EEG signals as a "head" using R

2015-10-19 Thread Charles Novaes de Santana
les On 19 October 2015 at 15:10, Dénes Tóth wrote: > Hi, > > the eegkit package ( > https://cran.r-project.org/web/packages/eegkit/index.html) might help you > if you happen to work with a standard electrode cap. > > Best, > Denes > > > > On 10/19/2015

[R] Plotting EEG signals as a "head" using R

2015-10-19 Thread Charles Novaes de Santana
picture: http://d2avczb82rh8fa.cloudfront.net/content/jn/113/3/740/F3.large.jpg Thanks for any help, sorry for not having a reproducible example. Best, Charles -- Um axé! :) -- Charles Novaes de Santana, PhD http://www.imedea.uib-csic.es/~charles [[alternative HTML version deleted

[R] Pb with date time sequence with period<1sec

2015-09-09 Thread DE
Hi, I'd like to create a date-time seq with a period of 0.05 s, over several days. # try : start<-strptime(nom_fich,format="%y%m%d") time<-seq(from=start, by=0.05, length.out = 86400*20*3) print(as.POSIXlt(time[2])$sec) # result is 0.0495 and not 0.05 as expected But If I am looking at the

[R] Matching posterior probabilities from poLCA

2015-08-03 Thread Rob de Vries
use in another program. I know this is possible, but I just can't seem to get it right (blame my incompetence with R). Any help would be very warmly appreciated. Best wishes. Robert de Vries [[alternative HTML version deleted]] __ R-help@r-p

Re: [R] Polysomnographic data analysis with R?

2015-06-17 Thread Charles Novaes de Santana
complete file specification. If there is no existing R package, it > might be possible to write an import function from the specification, > something like the functions in the "foreign" package. > > Jim > > > On Wed, Jun 17, 2015 at 4:55 AM, Charles Novaes de Santan

[R] Polysomnographic data analysis with R?

2015-06-16 Thread Charles Novaes de Santana
looked for it in the web and I didn't find. But maybe I used the wrong key-words. Any help will be much appreciated! Best, Charles -- Um axé! :) -- Charles Novaes de Santana, PhD http://www.imedea.uib-csic.es/~charles [[alternative HTML version de

[R] nonlinear MVA in R/knitr

2015-06-10 Thread Jan de Leeuw
years but the technical improvements using R, RStudio, knitr are impressive, if I say so myself. The markdown file which contains all R and C code is at http://gifi.stat.ucla.edu/aspect.Rmd === Jan de Leeuw, Professor Emeritus, UCLA Statistics 8 N Stafford Street, Portland, OR 97217 — 971-254-9331

[R] order by which the eigenvalues are presented

2015-05-06 Thread Luis Borda de Agua
.,a33? Thank you ____ Luís Borda de Água REFER Biodiversity Chair CIBIO - Research Center in Biodiversity and Genetic Resources Campus Agrário de Vairão R. Padre Armando Quintas 4485-661 Vairão, Portugal IICT - Tropical Research In

[R] order by which the eigenvalues are presented

2015-05-05 Thread Luis Borda de Agua
value that provides the largest (or the smallest) real part. Is there an easy way to enforce this? (I could not find an option in "eigen".) Is there another function in R that calculates the eigenvalues and shows their values without sorting them? Thank you in advance,

Re: [R] Problems combining two plots using par(mfrow=)

2015-04-18 Thread Charles Novaes de Santana
Just open this issue: https://github.com/igraph/rigraph/issues/69 Thanks again for your suggestion! Best, Charles On Sat, Apr 18, 2015 at 5:28 PM, Charles Novaes de Santana < charles.sant...@gmail.com> wrote: > Dear Boris, > > Thank you for your message! I had experienced e

Re: [R] Problems combining two plots using par(mfrow=)

2015-04-18 Thread Charles Novaes de Santana
ort. > > Two quick workarounds: plot only the x-values contained in your xlim > range, or plot the graph last. > > Cheers, > B. > > > > On Apr 18, 2015, at 8:55 AM, Charles Novaes de Santana < > charles.sant...@gmail.com> wrote: > > > Dear all,

[R] Problems combining two plots using par(mfrow=)

2015-04-18 Thread Charles Novaes de Santana
s, so I am sending this message also to this broader mailing list. Does any of you have any clue about how to solve this? Thanks for your attention and for any help, Charles -- Um axé! :) -- Charles Novaes de Santana, PhD http://www.imedea.uib-csic.es/~charles [[alternative HTML

[R] %>%

2015-02-17 Thread André de Boer
Hello, Where can I find info about the operator %>%? Never used it but when I search for it I gives no result. Thanks, André __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do rea

[R] [R-pkgs] Release of phia 0.2-0

2015-02-17 Thread Helios de Rosario
s. In addition, I would like to refer the package users to the development repository in GitHub: <https://github.com/heliosdrm/phia>, where new contributions, issues/bug reports, and other comments are welcome. Best regards Helios De Rosario biomecanicamente.org Conoce la actualidad on-line d

[R] Hausman test for Conditional Logit

2015-02-10 Thread Yann le Polain de Waroux
Dear all, I am running a conditional logit model on migration choices using the "mclogit" package, and I would like to test the independence of irrelevant alternatives (IIA), as it is a restrictive assumption of those models. The mclogit package does not offer the Hausman test, which seems to

[R] A good way to debug a c++ library embedded to an R code

2015-02-02 Thread Charles Novaes de Santana
++ I would use GDB. I would much appreciate any help or suggestion! Best regards, Charles -- Um axé! :) -- Charles Novaes de Santana, PhD http://www.imedea.uib-csic.es/~charles [[alternative HTML version deleted]] __ R-help@r-project.org

[R] Network graph google maps‏

2014-12-16 Thread Tim de Wolf
Hello everybody. I am not sure if I am in the right forum for my question. If so, please let me know so I can go somewhere else! Thanks. Currently I am trying to familiarize myself with R. I am trying to plot some sort of Network graph (think of migration maps). Basically, I'd like to have an in

Re: [R] Profiling a C/C++ library from R

2014-12-05 Thread Charles Novaes de Santana
PM, Charles Novaes de Santana wrote: > > Dear all, > > > > I am running a c++ library (a .so file) from a R code. I am using the > > function dyn.load("lib.so") to load the library. Do you know a way to > > profile my C library from R? Or should I compile my C

[R] Profiling a C/C++ library from R

2014-12-02 Thread Charles Novaes de Santana
dvance for any help! Best, Charles -- Um axé! :) -- Charles Novaes de Santana, PhD http://www.imedea.uib-csic.es/~charles [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://st

[R] Help with sample size calculation for inter-rater reliability study

2014-11-08 Thread Edison Iglesias de Oliveira
Dear R masters, I am attempting to calculate the sample size for an inter-rater reliability study using the N2.cohen.kappa function of the irr package. It is a study of 2 raters for a single item with three possible ordinal outcomes. The expected marginal probabilities for those outcomes are 0.2

[R] Function StructTS: covariance matrix of the initial state vector

2014-11-05 Thread Javier López-de-Lacalle
Hi everyone: My question is about the function "StructTS" of the core package "stats", which fits by maximum likelihood the basic structural time series model. According to theory and the references given in "?StructTS", the covariance matrix of the initial state vector is a diagonal matrix. Ho

Re: [R] Comparing matrices in R - matrixB %in% matrixA

2014-10-31 Thread Charles Novaes de Santana
---- > Sent from my phone. Please excuse my brevity. > > On October 31, 2014 6:20:38 AM PDT, Charles Novaes de Santana < > charles.sant...@gmail.com> wrote: > >My apologies, because I sent the message before finishin

Re: [R] Comparing matrices in R - matrixB %in% matrixA

2014-10-31 Thread Charles Novaes de Santana
John > > > John Fox, Professor > McMaster University > Hamilton, Ontario, Canada > http://socserv.mcmaster.ca/jfox/ > > > > > On Fri, 31 Oct 2014 14:20:38 +0100 > Charles Novaes de Santana wrote: > &g

Re: [R] Comparing matrices in R - matrixB %in% matrixA

2014-10-31 Thread Charles Novaes de Santana
} return(unique(sort(res))); } Best, Charles On Fri, Oct 31, 2014 at 2:12 PM, Charles Novaes de Santana < charles.sant...@gmail.com> wrote: > A = matrix(1:10,nrow=5) > B = A[-c(1,2,3),]; > > So > > A > [,1] [,2] > [1,]16 > [2,]27 &g

[R] Comparing matrices in R - matrixB %in% matrixA

2014-10-31 Thread Charles Novaes de Santana
j in 1:colsB){ for (k in 1:rowsA){ for (l in 1:colsA){ if(A[k,l]==B[i,j]){res<-c(res,k);} } } } } return(unique(sort(res))); } Best, Charles -- Um axé! :) -- Charles Novaes de Santana, PhD http://www.imedea.uib-c

[R] tkProgressBar without progress in foreach %dopar%

2014-10-02 Thread Alexsandro Cândido de Oliveira Silva
ot;, label = NULL) temp.data[[i]]<-mask(temp.data[[i]],target,maskvalue=as.numeric(class.outsid e)) writeRaster(temp.data[[i]],filename=files.list[i],format='GTiff',overwrite=T ) } stopCluster(cl) close(mypb) Thanks Alexsandro ___

Re: [R] VennDiagram

2014-08-26 Thread Jurgens de Bruin
Hi,, Thanks for the link, I have tried that but it seems my data is in the wrong format for that to work. On 26 August 2014 10:35, João Azevedo Patrício wrote: > Em 26-08-2014 09:30, Jurgens de Bruin escreveu: > > Hi, >> >> I am new to R and dont use it very often so I

[R] VennDiagram

2014-08-26 Thread Jurgens de Bruin
overlap and Analysis B and C also have a single overlap but C and A have no overlap. -- Regards/Groete/Mit freundlichen Grüßen/recuerdos/meilleures salutations/ distinti saluti/siong/duì yú/привет Jurgens de Bruin [[alternative HTML version deleted

Re: [R] unable to use functions require DLL from package

2014-08-17 Thread Lotte de Vries
y = double(length(x)), z$n, z$x, z$y, z$b, z$c, z$d, PACKAGE = "stats")$y } } And finally: > sessionInfo() R version 3.1.0 (2014-04-10) Platform: x86_64-w64-mingw32/x64 (64-bit) locale: [1] LC_COLLATE=English_United Kingdom.1252 LC_CTYPE= English_United

Re: [R] unable to use functions require DLL from package

2014-08-15 Thread Charlotte de Vries
David Winsemius comcast.net> writes: > > > On Aug 15, 2014, at 8:06 AM, Charlotte de Vries wrote: > > > Hey there! > > > > I'm having problems with the same code, but I get a different error: > > This is apparently yet another example demonstrat

Re: [R] unable to use functions require DLL from package

2014-08-15 Thread Charlotte de Vries
Hey there! I'm having problems with the same code, but I get a different error: Error in .C("spline_coef", method = as.integer(method), n = n, x = as.double(x), : "spline_coef" not available for .C() for package "stats" I'm using R3.1.0 on windows 8 and I've never used R before, so I migh

Re: [R] Problems installing Packages

2014-08-08 Thread Luís de Sousa
Dear Sven, I am running into this exact some problem in Ubuntu 14.04. I have R 3.1.1 freshly installed and OpenJDK 7 (I do not need BLAS, as far as I know). Trying to install rj and rj.dg I get the exact same error messages as you were getting "Error: cannot determine complete Java config". Were

Re: [R] keep information on the number of warnings

2014-08-06 Thread Luis Borda de Agua
Thank you very much, David, Luís On 04 Aug 2014, at 17:24, Luis Borda de Agua wrote: > Dear David > > Thank you very much for your reply. I’ve only seen it now. > I tried length(warnings) and I got a strange result. > > When I used > > lw <- length(warnings) >

[R] keep information on the number of warnings

2014-08-05 Thread Luis Borda de Agua
- runif(1)*x[1] + runif(1)*x[2] + runif(1)*x[3]^2 -12 F2 <- runif(1)*x[1]^2 - runif(1)*x[2] + runif(1)*x[3] -2 F3 <- runif(1)*2*x[1] - runif(1)*x[2]^2 + runif(1)*x[3] -1 c(F1 = F1, F2 = F2, F3 = F3) } _______ Luís Borda de Água Centro de Biologia Ambie

[R] keep information on the number of warnings

2014-08-04 Thread Luis Borda de Agua
tate not reached _______ Luís Borda de Água Centro de Biologia Ambiental Faculdade de Ciências Universidade de Lisboa Edifício C2, 6º Piso, Sala 2.6.04/07 Campo Grande 1749-016 Lisboa, Portugal Tel: +351 21 750 00 00 (ext: 22607) Fax: +351 21 750 00 28 [[alternat

Re: [R] How to overlay contourplot of a dataset A and a levelplot of a dataset B?

2014-08-03 Thread Charles Novaes de Santana
//latticeextra.r-forge.r-project.org/ Thank you for your attention, Best, Charles On Sat, Aug 2, 2014 at 4:01 PM, Charles Novaes de Santana < charles.sant...@gmail.com> wrote: > Dear all, > > Does anyone know a way to overlay a contourplot and a levelplot of > different datas

[R] How to overlay contourplot of a dataset A and a levelplot of a dataset B?

2014-08-02 Thread Charles Novaes de Santana
rid2) and levelplot(z ~ x*y,grid1,region=FALSE,contour=TRUE) par(new=T) levelplot(z ~ x*y,grid2,region=TRUE,contour=FALSE) Any clue? Thank you very much for your time and any help! Charles -- Um axé! :) -- Charles Novaes de Santana, PhD http://www.imedea.uib-csic.es/~charles [[alt

[R] keep information on the number of warnings

2014-07-31 Thread Luis Borda de Agua
quot; How can I store the number 36 in a variable in function Y? In other words, how can I extract the information on the number of warnings generated? Thank you in advance, Luís Borda de Água __ R-help@r-project.org mailing list https://stat.ethz.

[R] Merge rows

2014-07-11 Thread Ryan de Vera
Hello all, I have a data frame filled with senders and recipients. Some of the senders have multiple rows with different recipients and I want to merge those rows. For example I have a...@email.com b...@email.com a...@email.com c...@email.com d...@email.com r...@email.com f...@em

  1   2   3   4   5   6   >