[R] A question about for loop

2017-08-17 Thread Moohwan Kim
Dear R users, I have the following codes: zeta <- rep(1,8) n <- 7 for (i in 1:2){ beta <- zeta[1:n+(i-1)*(n+1)] print(beta) parm <- zeta[i*(n+1)] print(parm) } ### The output is as follows: [1] 1 1 1 1 1 1 1 [1] 1 [1] NA NA NA NA NA NA NA [1] NA ### The outcome

Re: [R] Install package "diagram"

2017-08-17 Thread Paul Johnson
On Wednesday, August 16, 2017, AbouEl-Makarim Aboueissa < abouelmakarim1...@gmail.com> wrote: > Dear All: > > I am trying to install the package "diagram". It is in the list. But when I > selected the package to install it, it says: > > Question: "would you like to use a personal library

[R] "How to convert .Rdata file into .csv or something else?" [SOLVED]

2017-08-17 Thread y tanaka
Dear mailing list members, Thank you for all members who gave me advice. This question is solved. I tried to create an object using the load function by analogy based on the read.csv function like this; > d <- load("~/docdis/input/ch2/WV6_Data_R_v_2016_01_01.rdata") but, load function cannot

Re: [R] Bias-corrected percentile confidence intervals

2017-08-17 Thread Joe Ceradini
It was very statsy...I shoulda known better :) stats.stackexchange answer, for posterity: https://stats.stackexchange.com/questions/298506/bias-corrected-percentile-confidence-intervals Joe On Wed, Aug 16, 2017 at 1:30 PM, Joe Ceradini wrote: > Hi folks, > > I'm trying

Re: [R] really dumb question with building/creating a new package.

2017-08-17 Thread Erin Hodgess
For what it's worth, here is the solution: install.packages(devtools) check("RcmdrPlugin.gstats") install("RcmdrPlugin.gstats") library(RcmdrPlugin.gstats) And POOF it ran perfectly! Thanks for all of your help. On Thu, Aug 17, 2017 at 5:18 PM, Erin Hodgess wrote:

Re: [R] really dumb question with building/creating a new package.

2017-08-17 Thread Erin Hodgess
Thank you! On Thu, Aug 17, 2017 at 4:55 PM, Bert Gunter wrote: > r-package-devel is probably a better place to post this, especially if > you do not get a satisfactory reply here. This list is about R > programming, as you presumably know; your query is not. > > Cheers,

Re: [R] really dumb question with building/creating a new package.

2017-08-17 Thread Ben Tupper
Hi, Below is the help from a terminal session. Note that you provide the directory name (where your package files are located). I think in your case that would be '/Users/emhodgess/RcmdrPlugin.gstats' ben@gale ~ $ R CMD build --help Usage: R CMD build [options] pkgdirs Build R packages from

Re: [R] really dumb question with building/creating a new package.

2017-08-17 Thread Bert Gunter
r-package-devel is probably a better place to post this, especially if you do not get a satisfactory reply here. This list is about R programming, as you presumably know; your query is not. Cheers, Bert Bert Gunter "The trouble with having an open mind is that people keep coming along and

[R] really dumb question with building/creating a new package.

2017-08-17 Thread Erin Hodgess
Hello. I am creating a new RcmdrPlugin package. However, I am getting some very odd messages. R CMD build RcmdrPlugin.gstats_1.0.0 ERROR cannot change to directory ‘RcmdrPlugin.gstats_1.0.0’ es-macbook-air:~ emhodgess$ R CMD check RcmdrPlugin.gstats_1.0.0 Warning:

Re: [R-es] Promedio elementos vector

2017-08-17 Thread Carlos Ortega
Ya... Es que si grabas un fichero en formato ".csv" se suele abrir con Excel o mejor con un editor que no introduzca ningún tipo de formato (si estás en Windows con Notepad)... si estás en Linux tienes otras opciones "vi", "gedit" El 17 de agosto de 2017, 23:11, Manuel Máquez

Re: [R] PAM Clustering

2017-08-17 Thread Germano Rossi
Sorry, I never use pam. In the help, you can see that pam require a dataframe OR a dissimilarity matrix. If diss=FALSE then "euclidean" was use.So, I interpret that a matrix of dissimilarity is generated automatically. Problems may be in your data. Indeed pam(ruspini, 4)$diss write a

[R-es] Promedio elementos vector

2017-08-17 Thread Manuel Máquez
Claro que sí. ko <- matrix(0, 39, 48, byrow = T)# Matriz p/contar 39 numeros y max de 48 c/u ks <- matrix(0, 39, 48, byrow = T)# Matriz p/sumar dt <- read.csv('TDist.csv', header = F) # Tabla de datos for(i in 1:length(dt$V1)) { for(j in 1:39) { da <- dt[i, j]

Re: [R] PAM Clustering

2017-08-17 Thread Sema Atasever
Dear Germano, Thank you for your fast reply, In the above code, *MYData *is the actual data set. Do not we need to convert *MYData to *the dissimilarity matrix using *pam(as.dist(**MYData**), k = 10, diss = TRUE*)* code line?* *Regards.* On Thu, Aug 17, 2017 at 2:58 PM, Germano Rossi

[R] nlme package, fixing variance.covariance matrix of residuals

2017-08-17 Thread Wölwer , Anna-Lena
Dear R team, I would like to do a multivariate meta-analysis in R using the nlme package. In meta-analysis I fix the residuals to known sampling errors. As I do a multivariate analysis, I have a variance-covariance matrix of sampling errors. Unfortunately, via varFixed I can only fix a vector

Re: [R] How to install Tidyverse on Ubuntu 17.04? Getting gcc errors for -fstack-protector-strong and -Wdate-time

2017-08-17 Thread John Kane via R-help
No idea what the problem is but I am running Ubuntu 17.04 with R 3.4.1 and tidyverse seems to be working well. On Thursday, August 17, 2017, 7:10:42 AM EDT, Jocelyn Ireson-Paine via R-help wrote: I'm running Ubuntu 17.04 and R 3.4.1. I installed the latter yesterday,

Re: [R] How to install Tidyverse on Ubuntu 17.04? Getting gcc errors for -fstack-protector-strong and -Wdate-time

2017-08-17 Thread Ista Zahn
Note also that this is not the best place to ask questions about installation on Ubuntu -- please post any future Ubuntu-specific questions to the r-sig-debian mailing list. Subscription info at https://stat.ethz.ch/mailman/listinfo/r-sig-debian The tidyverse suite of packages gennerally installs

Re: [R] Suggestion for installation of R

2017-08-17 Thread S Ellison
> >Is it possible to download and run R on Asus ZenFone, if yes, which > >version Try Googling 'R on Android' The top link is https://www.r-bloggers.com/install-r-in-android-via-gnuroot-no-root-required/ *** This email and any

Re: [R] Suggestion for installation of R

2017-08-17 Thread Jeff Newmiller
AFAIK the short answer is no. Longer answer is yes, but you would have to invest some likely significant effort into learning how to compile source code for Android operating system. It has been done before. -- Sent from my phone. Please excuse my brevity. On August 16, 2017 11:29:17 PM

Re: [R] PAM Clustering

2017-08-17 Thread Germano Rossi
try this MYdata <- read.csv2("data.txt",dec='.') library(cluster) cluster.pam = pam(MYdata,10) table(cluster.pam$clustering) filenameclu = paste("clusters", ".txt") write.table(cluster.pam$clustering, file=filenameclu,sep=",") 2017-08-17 10:28 GMT+02:00 Sema Atasever : >

Re: [R] How to convert .Rdata file into .csv or something else?

2017-08-17 Thread Duncan Murdoch
On 17/08/2017 5:15 AM, John Kane via R-help wrote: Welcome to the forum .Rdata may contain many different objects. ... and load() writes those directly into your workspace. (You can control where it writes, but that's the default.) Adding the "verbose = TRUE" argument to load() will tell

[R] How to install Tidyverse on Ubuntu 17.04? Getting gcc errors for -fstack-protector-strong and -Wdate-time

2017-08-17 Thread Jocelyn Ireson-Paine via R-help
I'm running Ubuntu 17.04 and R 3.4.1. I installed the latter yesterday, so I presume it's the latest version. I want to install Tidyverse, which I've spent many happy hours with under Windows. But when I do install.packages("tidyverse") , I get errors about unrecognized command line options to

Re: [R] How to convert .Rdata file into .csv or something else?

2017-08-17 Thread Jim Lemon
Hi Yohei, Were there any error messages that indicated that the file could not be found? As you are using a *NIX operating system, remember that ".rdata" is not the same as ".Rdata". What does: file.exists("~/docdis/input/ch2/WV6_Data_R_v_2016_01_01.rdata") return? Jim On Thu, Aug 17, 2017 at

Re: [R] How to convert .Rdata file into .csv or something else?

2017-08-17 Thread John Kane via R-help
Welcome to the forum .Rdata may contain many different objects. I would suggest doing a  "ls()" to see what objects you have. then have a look at ?write.table or ?write.csvThese commands will write many types of objects to a .csv file. For example if I have a data.frame called "dat1" I can write

[R] R-SIG-Debian keeps telling me I must be subscribed to post, but I am

2017-08-17 Thread Jocelyn Ireson-Paine via R-help
I'm not sure where to post this. I subscribed to R-Sig-Debian this morning, I hope the email excerpt below proves this: Welcome to the r-sig-deb...@r-project.org mailing list! To post to this list, send your message to: r-sig-deb...@r-project.org General information about the

[R] [R-pkgs] usmap v0.2.1 released

2017-08-17 Thread Paolo Di Lorenzo
Hello useRs, Package *usmap* has been updated to version 0.2.1 and is now available on CRAN . This update contains some minor fixes and improvements. The full change log is available on Github: https://github.com/pdil/usmap/releases/tag/v0.2.1 —

[R] How to convert .Rdata file into .csv or something else?

2017-08-17 Thread y tanaka
Dear mailing list members, I am a beginner of this community. I would like to analyze data in a .rdata file. I ran the following code, but the object "d" remained empty. d <- load("~/docdis/input/ch2/WV6_Data_R_v_2016_01_01.rdata") I would like to know how to convert this file format into .csv

[R] Suggestion for installation of R

2017-08-17 Thread Megha Kamble
Is it possible to download and run R on Asus ZenFone, if yes, which version -- Dr.Megha Kamble CSE, LNCT, Bhopal [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see

[R-es] Promedio elementos vector

2017-08-17 Thread Manuel Máquez
Carlos: Te adjunto las matrices ContaC.csv y Sali753.csv, la primera es la original y la segunda es la salida que obtengo, y, en ella se puede comprobar que se trata de textos. Me llama la atención que, RStudio indica datOut num [1:48, 1:39], sin embargo al examinar los valores son textos.