Re: [R] what is wrong with for and if cycle in R

2013-12-19 Thread Pascal Oettli
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Pascal Oettli Project Scientist JAMSTEC Yokohama, Japan __ R-help@r-project.org mailing list https

Re: [R] Multiple Lorenz curves in one diagram - populations with different n

2013-12-09 Thread Pascal Oettli
/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. -- Pascal Oettli Project Scientist JAMSTEC Yokohama, Japan __ R-help@r-project.org

Re: [R] To transform a vector

2013-12-08 Thread Pascal Oettli
__ R-help@r-project.org mailing list 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. -- Pascal Oettli Project Scientist

Re: [R] question about how to install package rjava in R 3.02

2013-12-04 Thread Pascal Oettli
-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Pascal Oettli Project Scientist JAMSTEC Yokohama, Japan __ R-help@r-project.org mailing list

Re: [R] R lmer debugging: Error in [[-.data.frame(*tmp*, i, value = integer(0)) : replacement has 0 rows, data has 117

2013-12-03 Thread Pascal Oettli
, minimal, self-contained, reproducible code. -- Pascal Oettli Project Scientist JAMSTEC Yokohama, Japan __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting

Re: [R] Days to solstice calculation

2013-12-01 Thread Pascal Oettli
-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Pascal Oettli Project Scientist JAMSTEC Yokohama, Japan __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do

Re: [R] Tukey, Bartlett

2013-11-26 Thread Pascal Oettli
deleted]] __ R-help@r-project.org mailing list 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. -- Pascal

Re: [R] Buse's GLS R2

2013-11-26 Thread Pascal Oettli
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. -- Pascal Oettli Project Scientist JAMSTEC Yokohama, Japan

Re: [R] To transform an adjacency matrix

2013-11-20 Thread Pascal Oettli
, self-contained, reproducible code. -- Pascal Oettli Project Scientist JAMSTEC Yokohama, Japan __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting

Re: [R] (no subject)

2013-11-19 Thread Pascal Oettli
deleted]] __ R-help@r-project.org mailing list 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. -- Pascal

Re: [R] sourcing from 2 different computers R code

2013-11-11 Thread Pascal Oettli
-contained, reproducible code. -- Pascal Oettli Project Scientist JAMSTEC Yokohama, Japan [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide

Re: [R] unable to install package xts

2013-11-11 Thread Pascal Oettli
__ R-help@r-project.org mailing list 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. -- Pascal Oettli Project Scientist

Re: [R] 'yum install R' failing with tcl/tk issue

2013-10-24 Thread Pascal Oettli
deleted]] __ R-help@r-project.org mailing list 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. -- Pascal

Re: [R] Why does sin(pi) not return 0?

2013-09-26 Thread Pascal Oettli
-contained, reproducible code. -- Pascal Oettli Project Scientist JAMSTEC Yokohama, Japan [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http

Re: [R] How can I draw a 3D diagram (persp) with these Infos

2013-09-25 Thread Pascal Oettli
-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Pascal Oettli Project Scientist JAMSTEC Yokohama, Japan [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https

Re: [R] Less than equal to symbol in ggplot2 legend text

2013-09-25 Thread Pascal Oettli
/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. -- Pascal Oettli Project Scientist JAMSTEC Yokohama, Japan [[alternative HTML version deleted

Re: [R] how to add a box to map plotted by a levelplot?

2013-09-24 Thread Pascal Oettli
-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Pascal Oettli Project Scientist JAMSTEC Yokohama, Japan [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https

Re: [R] how to add a box to map plotted by a levelplot?

2013-09-24 Thread Pascal Oettli
and provide commented, minimal, self-contained, reproducible code. -- Pascal Oettli Project Scientist JAMSTEC Yokohama, Japan [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r

Re: [R] object not found in a cca analysis with vegan package

2013-09-24 Thread Pascal Oettli
-contained, reproducible code. -- Pascal Oettli Project Scientist JAMSTEC Yokohama, Japan [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide

Re: [R] Factored ARMA models

2013-09-20 Thread Pascal Oettli
://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. -- Pascal Oettli Project Scientist JAMSTEC Yokohama, Japan [[alternative HTML version deleted

Re: [R] cov2cor exp

2013-09-19 Thread Pascal Oettli
...@gmail.com [skalp.oet...@gmail.com] on behalf of Pascal Oettli [kri...@ymail.com] *Sent:* Wednesday, September 18, 2013 8:20 PM *To:* wacguy *Cc:* r-help *Subject:* Re: [R] cov2cor exp Hello, I am just wondering why to reinvent the wheel? Regards, Pascal 2013/9/19 wacguy g

Re: [R] can you explain the cov2cor function

2013-09-18 Thread Pascal Oettli
Hello, Please have a look at: http://cran.r-project.org/doc/manuals/R-lang.html#Constants Hope this helps, Pascal 2013/9/18 Pascal Oettli kri...@ymail.com Hello, Apologies. findFn('cov2cor') did not find it... Regards, Pascal 2013/9/18 Pascal Oettli kri...@ymail.com Hello

Re: [R] can you explain the cov2cor function

2013-09-18 Thread Pascal Oettli
') ? Regards, Kenn On Wed, Sep 18, 2013 at 8:19 AM, Pascal Oettli kri...@ymail.com wrote: Hello, Apologies. findFn('cov2cor') did not find it... Regards, Pascal 2013/9/18 Pascal Oettli kri...@ymail.com Hello, From where this function comes? Regards, Pascal 2013/9/18

Re: [R] cov2cor exp

2013-09-18 Thread Pascal Oettli
/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Pascal Oettli Project Scientist JAMSTEC Yokohama, Japan [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch

Re: [R] Radius of Curvature Fit

2013-09-18 Thread Pascal Oettli
__ R-help@r-project.org mailing list 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. -- Pascal Oettli Project Scientist JAMSTEC Yokohama, Japan

Re: [R] replace.df() function in R

2013-09-18 Thread Pascal Oettli
list 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. -- Pascal Oettli Project Scientist JAMSTEC Yokohama, Japan [[alternative HTML version

Re: [R] can you explain the cov2cor function

2013-09-17 Thread Pascal Oettli
, reproducible code. -- Pascal Oettli Project Scientist JAMSTEC Yokohama, Japan [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R

Re: [R] can you explain the cov2cor function

2013-09-17 Thread Pascal Oettli
Hello, Apologies. findFn('cov2cor') did not find it... Regards, Pascal 2013/9/18 Pascal Oettli kri...@ymail.com Hello, From where this function comes? Regards, Pascal 2013/9/18 Guy Wachsman guy.wachsm...@duke.edu Hi there, Can anyone explain this function, I have the function

Re: [R] Change the color of the line inside of the function lines

2013-09-16 Thread Pascal Oettli
join the points (xx, yy) with stair steps (as type = s) plot(xx, yy, type=n) lines(xx, yy, type =s) but I want to change the color according to the value of zz (exemple : col = 1 if zz =3 ; col =2 if zz= 4 ; col =3 if zz= 5 ; col =4 if zz= 6) Thank you for your help -- Pascal Oettli Project

Re: [R] Is R able to fit and forecast arima models using daily time series?

2013-09-16 Thread Pascal Oettli
. -- Pascal Oettli Project Scientist JAMSTEC Yokohama, Japan [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting

Re: [R] A factor times a matrix

2013-09-16 Thread Pascal Oettli
read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Pascal Oettli Project Scientist JAMSTEC Yokohama, Japan [[alternative HTML version deleted]] __ R-help@r

Re: [R] Need help

2013-09-09 Thread Pascal Oettli
Hello, Did you load it? require(Hmisc) Regards, Pascal 2013/9/9 Rhode Early CHARLES rhodeea...@yahoo.fr Hi, I was trying to install.packages(Hmisc). I followed all the steps but nothing appears to have changed on my R. my labels still don't appear. Rhode --A Dieu soit la

Re: [R] R Help

2013-09-05 Thread Pascal Oettli
Hello, Please stop to use R help for the subject of your mail. You already used it several times. You have been asked to stop to send e-mail in HTML. You also have been asked to use dput() when you want to submit data to this list. For the current problem, there is no reproducible code, as it

Re: [R] plot densities outside axis

2013-09-05 Thread Pascal Oettli
Hello, Using a web search engine, I found, for example: http://www.unt.edu/benchmarks/archives/2003/february03/rss.htm http://sas-and-r.blogspot.jp/2012_09_01_archive.html Hope this helps, Pascal 2013/9/5 Dustin Fife df...@ou.edu I've been working on a way to visualize a spearman

Re: [R] tm::stemDocument function not work

2013-09-04 Thread Pascal Oettli
On Wed, Sep 4, 2013 at 12:54 AM, Pascal Oettli kri...@ymail.com wrote: Hello, Your example worked for me. R sessionInfo() R version 3.0.1 Patched (2013-09-02 r63805) Platform: x86_64-unknown-linux-gnu (64-bit) locale: [1] LC_CTYPE=en_GB.UTF-8 LC_NUMERIC=C [3] LC_TIME

Re: [R] tm::stemDocument function not work

2013-09-03 Thread Pascal Oettli
Hello, Your example worked for me. R sessionInfo() R version 3.0.1 Patched (2013-09-02 r63805) Platform: x86_64-unknown-linux-gnu (64-bit) locale: [1] LC_CTYPE=en_GB.UTF-8 LC_NUMERIC=C [3] LC_TIME=en_GB.UTF-8LC_COLLATE=en_GB.UTF-8 [5] LC_MONETARY=en_GB.UTF-8

Re: [R] Issue with R libraries

2013-08-31 Thread Pascal Oettli
Hello, Could you at least provide error messages? I just broke my crystal ball. Regards, Pascal 2013/8/31 prakashdevkumar prakash.dev-ku...@hp.com I have an Ubuntu Quantal 12.10 Server 64-bit instance. Trying to install R libraries. Facing issue in installing library(qdap) library(openNLP)

Re: [R] Basic Error I'm sure

2013-08-30 Thread Pascal Oettli
Hello, Check the result of min(c(1,2,3,4,NA,6)) And read ?min Hope this helps, Pascal 2013/8/31 Casey Zhang casey1...@gmail.com Hi, I'm just starting to learn how to use R and I'm trying to create a histogram with 7 breaks. This is my code so far:

Re: [R] does rstudio-server support named configuration

2013-08-30 Thread Pascal Oettli
Hello, Here is the R-help mailing list. For Rstudio-sever support, please see http://support.rstudio.org/help/discussions Regards, Pascal 2013/8/31 qiulin qiulin.w...@gmail.com I appreciate your time, thank you in advance :) I'd like to start 2 rstudio-server in one Linux machine, one

Re: [R] Problem with Peaks package

2013-08-28 Thread Pascal Oettli
Hello, In the absence of a commented, minimal, self-contained, reproducible code (as kindly requested), it is hard to help you. Regards, Pascal 2013/8/29 Wildgruber, Christoph U. wildgrube...@ornl.gov Hi, I started evaluating the 'Peaks' package a couple of months ago and found it to be

Re: [R] Storing Big Matrix in R memory

2013-08-27 Thread Pascal Oettli
Hello, If you can, you probably should upgrade for R version 3.0.1. Regards, Pascal 2013/8/27 Peter Maclean pmaclean2...@yahoo.com I would like to store a big spatial weight matrix in R memory to do more calculation. I know there are memory issue for 32 bit computer and I have tried

Re: [R] labcurve - use of putKey function

2013-08-27 Thread Pascal Oettli
all your help, thank you. Igor. On Mon, Aug 26, 2013 at 9:44 PM, Pascal Oettli kri...@ymail.com wrote: Hello, That is why I changed 2 lines in the code. Because points are misplaced if you keep points with the lines. Regards, Pascal 2013/8/27 Igor Ribeiro igor...@gmail.com Because

Re: [R] error installing ggm package

2013-08-27 Thread Pascal Oettli
Hello, graph is a Bioconductor package. Regards, Pascal 2013/8/28 Lianne Schroeder lsch...@uic.edu I have tried to find pkg graph and R reports back that it doesn't exist for R 3.0.1, so how do I get ggm to work with out that? Or is there something that has replaced graph and ggm needs to

Re: [R] Daily Time series setting

2013-08-27 Thread Pascal Oettli
Hello, Use zoo instead. Regards, Pascal 2013/8/28 Sudheer Joseph sjo.in...@gmail.com Also, if that was the case, in below specification it should take the timeseries properly which so not takesplace. 1825/365 [1] 5 ts(ru, start = c(2003, 1, 1), end = c(2007, 12, 30), frequency = 365)

Re: [R] labcurve - use of putKey function

2013-08-26 Thread Pascal Oettli
, Pascal Oettli kri...@ymail.com wrote: Hello, In labcurve, use keys=c(19,5). It is said in examples provided in the help page. Regards, Pascal 2013/8/23 Igor Ribeiro igor...@gmail.com Dear all, I have a plot with two lines and I'm using labcurbe (package Hmisc) to show the legend

Re: [R] labcurve - use of putKey function

2013-08-26 Thread Pascal Oettli
... Just draw the legend the way I need. On Aug 26, 2013 8:35 PM, Pascal Oettli kri...@ymail.com wrote: Hello, Please keep the r-list included when you reply. Why do you want to add points to lines only in the legend? If so, the legend would be incorrect. Regards, Pascal 2013/8/26 Igor

Re: [R] labcurve - use of putKey function

2013-08-23 Thread Pascal Oettli
Hello, In labcurve, use keys=c(19,5). It is said in examples provided in the help page. You should also modify the following lines: lines(timeseries,dataseries1,col=red,type=l) lines(timeseries,dataseries2,col=blue,type=l) Regards, Pascal 2013/8/23 Igor Ribeiro igor...@gmail.com Dear all,

Re: [R] italic(mu)

2013-08-20 Thread Pascal Oettli
Hello, You may find hints in the following thread: https://stat.ethz.ch/pipermail/r-help/2011-June/281493.html Regards, Pascal 2013/8/21 Beaulieu, Jake beaulieu.j...@epa.gov Hi, I would like to include the greek letter mu, in italics, in an axis title. The following gets close, but the

Re: [R] Creating the Spatial Weights

2013-08-19 Thread Pascal Oettli
Hello, Before asking, did you search on Internet using a web search engine? Regards, Pascal 2013/8/20 Sebastian Kruk residuo.so...@gmail.com Dear R-users, I have a shape file (.shp, sbx, .sbn, .shx and .dbf). Can I create the Spatial Weights inside R? Thanks, Sebastián.

Re: [R] grImport/ghostscript problems

2013-08-14 Thread Pascal Oettli
packages: [1] grImport_0.8-4 XML_3.98-1.1 Andy On 14 August 2013 12:50, Pascal Oettli kri...@ymail.com wrote: Hello, What is the result of sessionInfo()? Regards, Pascal 2013/8/14 Andrew Halford andrew.half...@gmail.com Hi Listers I have been trying to import a .ps graphic

Re: [R] Rmpi installs before R-3.0.0 but not since

2013-08-13 Thread Pascal Oettli
Hello, Maybe this link might help: http://www.stats.uwo.ca/faculty/yu/Rmpi/install.htm Regards, Pascal 2013/8/13 Patrick Connolly p_conno...@slingshot.co.nz With R-3.0.1 Loading required package: Rmpi Failed with error: ‘package ‘Rmpi’ was built before R 3.0.0: please re-install it’

Re: [R] F-test question

2013-08-13 Thread Pascal Oettli
Hello, r1$df and r2$df don't exist. Regards, Pascal 2013/8/13 Ingo Wardinski i...@gfz-potsdam.de G'day I try do compute some F-statistics of a singular spectrum analysis of a timeseries sv I run: require(Rssa) s - ssa(sv) summary(sv) Min. 1st Qu. MedianMean 3rd Qu.Max.

Re: [R] grImport/ghostscript problems

2013-08-13 Thread Pascal Oettli
Hello, What is the result of sessionInfo()? Regards, Pascal 2013/8/14 Andrew Halford andrew.half...@gmail.com Hi Listers I have been trying to import a .ps graphic file into R using the grImport package but I keep getting the following error message Error in PostScriptTrace(fish.ps) :

Re: [R] EMMIX

2013-08-01 Thread Pascal Oettli
Hello, According to the list of available packages, there is no EMMIX package. You probably should use a web search engine to find where you can download a EMMIX version for R. Regards, Pascal 2013/8/1 Tjun Kiat Teo teotj...@gmail.com Is the R package EMMIX available ? I tried installing it

Re: [R] number of items to replace is not a multiple of replacement length

2013-07-26 Thread Pascal Oettli
Hello, Once again, the matrix EWMA has not the correct size. Did you carefully read the answer by Thomas Stewart? https://stat.ethz.ch/pipermail/r-help/attachments/20130724/c454b0f7/attachment.pl Extract of his reply: When you expand the example to 5 stocks, there will be 15 elements (5

Re: [R] Unable to install packages

2013-07-25 Thread Pascal Oettli
Hello, Is there any reason for you to install an almost 3-year-old version of R? Regards, Pascal 2013/7/25 Arnab Chakrabarti chakrabarti.ar...@gmail.com Hi all. I am new to R. I have just installed R2.10.1 for my Windows 7 computer. When I go to Packages Install Packages on the drop-down

Re: [R] Some days missing using xtabs

2013-07-23 Thread Pascal Oettli
Hello, Please use dput() to provide useful dataset and avoid the use of HTML when sending a e-mail to this list. Regards, Pascal 2013/7/23 Stefano Sofia stefano.so...@regione.marche.it Dear R-users, given the following data frame called hospital_2004 gender d_birth m_birth y_birth

Re: [R] .eps files and powerpoint

2013-07-23 Thread Pascal Oettli
Hello, I would avoid the use of vector files for presentation, as Powerpoint will display a rasterized version off the vectorized image (if I am not mistaken). I always directly use raster files, as png. For eps, I use the following command in R. postscript(file='file.eps', onefile=FALSE,

Re: [R] constructing a daily time series

2013-07-22 Thread Pascal Oettli
Hello, ?zoo Regards, Pascal 2013/7/23 shanxiao shanx...@umail.iu.edu Dear all, I have a vector of observations through day, and based on it, I try to construct a daily time series with the R function ts(), but it seems that it only enables to construct a weekly, monthly, quarterly and

Re: [R] EWMA error

2013-07-18 Thread Pascal Oettli
and covariance* *for* (i *in* 2:T){*# loop though the sample* S = lambda * S + (1-lambda) * *t*(y[i]) %*% y[i] EWMA[i,] = *c*(S)[*c*(1,4,2)] *# convert matrix to vector * } On Thu, Jul 18, 2013 at 5:54 AM, Pascal Oettli kri...@ymail.com wrote: Hello, 1

Re: [R] EWMA error

2013-07-17 Thread Pascal Oettli
Hello, 1) In the provided example, you have 2 stock returns and EWMA = matrix(nrow=T, ncol=3) See the number of columns (2+1) Please modify the number of columns according to the number of stock returns. 2) As you have 5 stock returns, the following cannot work EWMA[1,] = c(S)[c(1,4,2)]

Re: [R] robust smoothing - median smoothing.

2013-07-17 Thread Pascal Oettli
Hello, require(sos) findFn(median and smoothing) Regards, Pascal 2013/7/18 Rui Barradas ruipbarra...@sapo.pt Hello, Maybe ?stats::smooth Hope this helps, Rui Barradas Em 17-07-2013 22:47, Witold E Wolski escreveu: Looking for robust smoothing methods available in R... a robust

Re: [R] Reserve word in could not be used it as a dimname?

2013-07-10 Thread Pascal Oettli
Hello, in is a reserved word. ?Reserved Hope this clarifies, Pascal 2013/7/11 jpm miao miao...@gmail.com Hi, I have a matrix whose columns are named as in and out. Then I coerce it to be a data.frame. However the system seems to forbid me from using the name in, but I am not aware

Re: [R] Reserve word in could not be used it as a dimname?

2013-07-10 Thread Pascal Oettli
as syntactic names (see make.names). They are allowed as non-syntactic names, e.g. inside backtick quotes. You should prefer the use of [ rather than $. Regards, Pascal 2013/7/11 jpm miao miao...@gmail.com Just wonder why R does not remind me so when I use it as a dimname... 2013/7/11 Pascal Oettli

Re: [R] [SOLVED] Problem building R-2.15.3 from source

2013-07-10 Thread Pascal Oettli
Hello, Maybe the reason why: http://www.cran.r-project.org/doc/manuals/R-admin.html#Compilation-flags Regards, Pascal 2013/7/11 Mark Dalphin mark.dalp...@pacificedge.co.nz I have found a solution to the repeated seg-faults below. If I set environment variables: setenv CFLAGS -O2

Re: [R] Help in installing R

2013-07-09 Thread Pascal Oettli
Hello, You should read the following first: http://www.cran.r-project.org/doc/manuals/R-admin.html#Installing-R-under-Unix_002dalikes http://www.cran.r-project.org/doc/manuals/R-admin.html#Essential-and-useful-other-programs-under-a-Unix_002dalike

Re: [R] problem on reading many files

2013-07-05 Thread Pascal Oettli
Hello, I'm not sure whether it is dur to the HTML version or not, but there is a problem with quotation marks in your first line. Regards, Pascal 2013/7/5 RODRIGUEZ MORENO VICTOR MANUEL rodriguez.vic...@inifap.gob.mx Hi, I have to run almost 120 stations files of temperatura (mx and min),

Re: [R] Unique in discerning missing values NA

2013-07-05 Thread Pascal Oettli
Hi, testUnique - unique(testData[!is.na(testData)]) or testUnique - unique(na.omit(testData)) And probably some other solutions. Regards, Pascal 2013/7/5 Pancho Mulongeni p.mulong...@namibia.pharmaccess.org Hi, I am trying to remove duplicate Patient numbers in a clinical record, I used

Re: [R] Generalized Cholesky Inverse

2013-07-02 Thread Pascal Oettli
at 8:26 AM, Pascal Oettli kri...@ymail.com wrote: Hi, Did you load bdsmatrix? Regards, Pascal 2013/6/21 Tjun Kiat Teo teotj...@gmail.com What are the possible options I have for Generalized choleksy Inverse in R. I tried to use the package bdsmatrix and and was given the error message

Re: [R] what is the difference between the function expand.grid and data.frame?

2013-06-29 Thread Pascal Oettli
H ello, Did you read ?data.frame and ?expand.grid. data.frame(x=1:2, y=1:2) x y 1 1 1 2 2 2 expand.grid(x=1:2, y=1:2) x y 1 1 1 2 2 1 3 1 2 4 2 2 There is a small difference, isn't it? Regards, Pascal 2013/6/28 Zhaoran Zhou zhaoran1...@gmail.com Hello everyone, i found that both of

Re: [R] unable to install rPython

2013-06-26 Thread Pascal Oettli
Hello, You need to install python-devel. Regards, Pascal On 27/06/2013 12:24, Kaptue Tchuente, Armel wrote: Hello everyone, I try without success to install the package rPython I get the message --- * installing *source*

Re: [R] Difference between Lloyd and Forgy algorithms used in R built-in kmeans clustering function

2013-06-20 Thread Pascal Oettli
Hi, A 5-second search on Internet brought me here: http://en.wikibooks.org/wiki/Data_Mining_Algorithms_In_R/Clustering/K-Means Regards, Pascal On 20/06/13 15:57, Safiye Celik wrote: Hi, Does anybody know the difference between the Lloyd and Forgy algorithms specified for R's kmeans

Re: [R] Problems with R package building

2013-06-20 Thread Pascal Oettli
Hi, Did you run R CMD build test1pkg in a command prompt window? Regards, Pascal On 20/06/13 17:01, jpm miao wrote: Hi, Following your advice, I install R tools from http://cran.r-project.org/bin/windows/Rtools/ Rtools215.exe http://cran.r-project.org/bin/windows/Rtools/Rtools215.exe

Re: [R] showing error line

2013-06-20 Thread Pascal Oettli
Hi, What is the error message? You don't provide it. Regards, Pascal 2013/6/20 Jannis bt_jan...@yahoo.de Dear R users, i am trying to get the line number of the code where an error is produced. With the options: options(keep.source = TRUE, show.error.locations = TRUE, keep.source.pkgs

Re: [R] Generalized Cholesky Inverse

2013-06-20 Thread Pascal Oettli
Hi, Did you load bdsmatrix? Regards, Pascal 2013/6/21 Tjun Kiat Teo teotj...@gmail.com What are the possible options I have for Generalized choleksy Inverse in R. I tried to use the package bdsmatrix and and was given the error message function solve.gchol does not exist. Thanks Tjun

Re: [R] how to add any extra word to existing column heading in R

2013-06-19 Thread Pascal Oettli
Hello, What did you try to do by yourself before to ask? Regards, Pascal On 20/06/13 13:56, Suparna Mitra wrote: Hello R experts, I want to add some extra words to number to existing column header. Can anybody tell me how to do that. e.g. if I have a data.frame Height.1 Height.2

Re: [R] how to add any extra word to existing column heading in R

2013-06-19 Thread Pascal Oettli
in forum, but couldn't find the exact what I mean. May be my search terms are not perfect. Thanks, Mitra On 20 June 2013 13:04, Pascal Oettli kri...@ymail.com mailto:kri...@ymail.com wrote: Hello, What did you try to do by yourself before to ask? Regards, Pascal On 20/06/13 13

Re: [R] can't install rugarch and nloptr packages in R 3.01 opensuse linux

2013-06-17 Thread Pascal Oettli
Hello, I was able to install the nloptr package by editing the src/Makevars file. I added the line mv .libs lib; \ between make install; \ ls | grep -v ^include$$ | grep -v ^lib$$ | xargs rm -rf; \ for NLopt compilation. You probably should contact the package

Re: [R] Search for Matching word in a Dataframe

2013-06-13 Thread Pascal Oettli
Hello, ?grep grep('ARUN', MyDat$NAME) [1] 2 Regards, Pascal On 13/06/13 16:08, R_Antony wrote: Hi Here i have a dataframe called MyDat. MyDat- data.frame(NAME = c(ANTONY001, ARUN002, AKBAR003, JONATHAN004, PETER005, AVATAR006, YULIJIE007, RAM008, DESILVA009), COL_A = c(0, 0, 0, 1, 0, 1,

Re: [R] Cannot install RPostgreSQL

2013-06-12 Thread Pascal Oettli
Hello, If you carefully check the error message, it is clearly written: RS-PostgreSQL.h:23:26: fatal error: libpq-fe.h: No such file or directory Some header files are missing. Here is the result of a quick search on the web: libpq-dev for Ubuntu. If I may suggest, you should upgrade the

Re: [R] How can we access an element in a structure

2013-06-11 Thread Pascal Oettli
Hello, Already asked and answered here: http://stackoverflow.com/questions/4034436/extract-the-gradient-from-the-deriv-command Regards, Pascal 2013/6/11 jpm miao miao...@gmail.com Hi, I have a structure, which is the result of a function How can I access the elements in the gradient?

Re: [R] cannot load pbdMPI package after compilation

2013-06-09 Thread Pascal Oettli
Hello, I am not sure whether it helps you, but I was able to install it. OpenSUSE 12.3 R version 3.0.1 Patched (2013-06-09 r62918) pbdMPI version 0.1-6 gcc version 4.7.2 OpenMPI version 1.6.3 I didn't try with the most recent version of ompi (1.6.4). Regards, Pascal On 07/06/13 21:42,

Re: [R] arima time series in R

2013-06-09 Thread Pascal Oettli
Hi, library(forecast) ?Arima And if you don't know what ar and ma are, you probably should read some book before to go further. Regards, Pascal On 10/06/13 14:03, Aakanksha Dahiya01 wrote: It would be great help if someone just tell me what does ar1,ma1 and ma2 signify here.. how do I

Re: [R] Distance-based non-parametric ANOVA

2013-06-07 Thread Pascal Oettli
Hello, You also can use the package sos findFn('non-parametric multivariate ANOVA') Regards, Pascal 2013/6/7 Mikhail Umorin mike...@gmail.com Hello, I am comparing treatments by comparing within group to between group distances like described in MJ Anderson. 2001. A new method for

Re: [R] generate simple function with pre-defined constants

2013-06-06 Thread Pascal Oettli
Hi, I am not sure what you are looking for. Here are some examples: foo - function(a,b,x) a + b*x foo function(a,b,x) a + b*x a - 2 b - 3 x - 0:10 foo(a,b,x) [1] 2 5 8 11 14 17 20 23 26 29 32 Or library(polynom) p1 - polynomial(c(a,b)) p1 2 + 3*x f1 - as.function(p1) f1(x) [1]

Re: [R] Expression evaluation of Plotting labels containing spaces

2013-06-05 Thread Pascal Oettli
Hello, ?plotmath - See Also demo(plotmath) Regards, Pascal On 05/06/13 15:00, Santosh wrote: Thanks so much!! Would be it be better if in vignette of plotmath, x %~% y and x~~y; likewise, other operations (.e.g., x %*% y, x * y) may be grouped, so that are not missed by a layman like me! -

Re: [R] SPlus script

2013-06-05 Thread Pascal Oettli
Hello, 1) It is always nice to say something as Hello, 2) What do you want us to do with that script, without the required commented, minimal, self-contained, reproducible code? 3) The lastest version of R is 3.0.1. Regards, Pascal 2013/6/5 Scott Raynaud scott.rayn...@yahoo.com This

Re: [R] reshape2 issue

2013-06-05 Thread Pascal Oettli
Hello, cast is in reshape library. Is it loaded? Regards, Pascal 2013/6/5 Neotropical bat risk assessments neotropical.b...@gmail.com Hi all, I am revisiting using reshape2 to aggregate critter (bats) occurrences by time blocks and have the final output for each row sum a percentage such

Re: [R] Map Antarctica

2013-06-05 Thread Pascal Oettli
Hi, There is a problem with xlim and ylim. map(worldHires,Antarctica,xlim=c(-180,180),ylim=c(-90,-60),col=gray90,fill=TRUE) You also might have a look at ggplot2 library(ggplot2) world - map_data(world) worldmap - ggplot(world, aes(x=long, y=lat, group=group)) + geom_path() +

Re: [R] Expression evaluation of Plotting labels containing spaces

2013-06-04 Thread Pascal Oettli
Hello, Example not reproducible: exc - list(units=list( c(m^2)) ,vars= list(c('asb')), ,label= list(c('abs surf body'))) Error: object 'm' not found Regards, Pascal On 05/06/13 11:39, Santosh wrote: Dear Rxperts, How do I overcome the anomaly as in the second case of examples below?

Re: [R] Expression evaluation of Plotting labels containing spaces

2013-06-04 Thread Pascal Oettli
Hi, On possibility is: par(mfrow=c(2,1), mar=c(5.1,5.1,4.1,2.1)) plot(1,1, ylab=expression(a.s.b.~(m^2))) plot(1,1, ylab=expression(abs~surf~body~(m^2))) Regards, Pascal On 05/06/13 11:39, Santosh wrote: Dear Rxperts, How do I overcome the anomaly as in the second case of examples below?

Re: [R] 3.0.1 update and compiler package

2013-06-03 Thread Pascal Oettli
My mistake, Regards, Pascal On 06/03/2013 04:37 PM, Uwe Ligges wrote: On 03.06.2013 07:19, Pascal Oettli wrote: Hi, How did you upgraded your version of R? From source or from a Linux package? Actually the new R installation is just broken. It simply has to be reinstalled carefully

Re: [R] 3.0.1 update and compiler package

2013-06-02 Thread Pascal Oettli
Hi, How did you upgraded your version of R? From source or from a Linux package? Regards, Pascal On 05/31/2013 11:33 AM, Christoph Knapp wrote: Hi, I recently updated to R 3.0.1. I'm running linux ubuntu 12.04. I realized that I have to update all the installed packages so I run

Re: [R] write table without quotation marks in column names....

2013-05-30 Thread Pascal Oettli
Hi, Did you read the help page? ?write.table Arguments quote a logical value (TRUE or FALSE) or a numeric vector. If TRUE, any character or factor columns will be surrounded by double quotes. If a numeric vector, its elements are taken as the indices of columns to quote. In both cases,

Re: [R] question

2013-05-30 Thread Pascal Oettli
Check out the CRAN task view on Robust Statistical Methods: http://cran.r-project.org/web/views/Robust.html and on Multivariate Statistics: http://cran.r-project.org/web/views/Multivariate.html Regards, Pascal On 05/30/2013 05:07 PM, nafiseh hagiaghamohammadi wrote: Hi my data has four

Re: [R] Rank Amateur Question

2013-05-29 Thread Pascal Oettli
Hi, I do not use R for Windows. But I would say that you have to run 'Rscript.exe' in a CMD prompt, if I am not mistaken. Not in 'Rgui'. In 'Rgui', use 'source'. Hope this helps, Pascal On 05/29/2013 03:07 AM, Mark Russell wrote: Greetings, I have just downloaded R onto a 64bit PC

Re: [R] (no subject)

2013-05-29 Thread Pascal Oettli
Hello, I would say: 1. Which R version? 2. Which OS? 3. Where is the requested commented, minimal, self-contained, reproducible code? Regards, Pascal On 05/29/2013 10:05 AM, alex mutuku wrote: hallo,i have a problem with running some code in R2Winbugs am getting the following error.Error

Re: [R] Problems in running x12

2013-05-29 Thread Pascal Oettli
Hi, It is a Windows problem. CMD.exe does not support having a UNC path as the current directory. Regards, Pascal On 05/29/2013 07:39 PM, Jose Iparraguirre wrote: Dear all, I have been experiencing difficulties in running the x12 package. I'm encountering the following error message which

Re: [R] Download data

2013-05-29 Thread Pascal Oettli
Hi, The combination read.table (and its arguments) + stdin also can be used, directly in R. read.table(stdin(), ...) Regards, Pascal On 29/05/2013 21:35, Jim Lemon wrote: On 05/29/2013 02:02 AM, jcrosbie wrote: Hi, I'm trying to download data from: http://www.ngx.com/settlehistory.html

Re: [R] Execution of larger blocks of pasted code often fails?

2013-05-28 Thread Pascal Oettli
Hello, Yes, I do. I just copy and paste smallest blocks, easiest to debug. Regards, Pascal On 28/05/2013 15:54, Mark Breman wrote: Hello List, When i paste a large block of R code from an editor to the R command line the execution of the code will often fail at some point because it is not

<    1   2   3   4   5   >