Re: [R] subscript with comma

2012-01-04 Thread Uwe Ligges
general question: I read the help to plotmath, but I still didn't understand, how it works. Is there a good documentation, book,... which explains all this stuff? ?plotmath suggests to use a comma separated list as in: plot(1, main=expression(sm[list(w,grass)])) Uwe Ligges Thanks in advance

Re: [R] About source()

2012-01-03 Thread Uwe Ligges
-help mailing list. In invoking the function source(filename), it seems that the filename has to exist in the current working directory, otherwise it has to be specified in full path. No: relative (to the working directory) specifications are possible as well. Uwe Ligges So is there any

Re: [R] tm.plugin.sentiment

2012-01-03 Thread Uwe Ligges
the package in R studio. I use window 7. ... and this is a question for some R Studio mailing list. Uwe Ligges Thanks. [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help

Re: [R] Remove me from the mailing list

2012-01-02 Thread Uwe Ligges
yourself. Uwe Ligges __ 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.

Re: [R] large data set (matrix) using image()

2011-12-29 Thread Uwe Ligges
Works perfectly well with R-2.14.1 32-bit on a Windows device. Since you have not followed the posting guide and forgot to give details about your platform, there is not much we can do. Uwe Ligges On 22.12.2011 23:08, Karen Liu wrote: When I use the image() function for a relatively small

Re: [R] mtrace function

2011-12-29 Thread Uwe Ligges
LC_NUMERIC=C [5] LC_TIME=C attached base packages: [1] tcltk tools stats graphics grDevices utils datasets [8] methods base other attached packages: [1] parser_0.0-14Rcpp_0.9.9 debug_1.2.40 mvbutils_2.5.101 Best, Uwe Ligges On 22.12.2011 17:59, Enio Jelihovschi wrote

Re: [R] rJava and JRI

2011-12-29 Thread Uwe Ligges
See http://www.rforge.net/rJava/ and http://www.rforge.net/JRI/ Uwe Ligges On 29.12.2011 07:46, PermataRussiana wrote: Dear All, I am writing R code and I want to interface with JAVA using netbeans. I want to call R from JAVA. What i should pick?rJAVA or JRI? and can someone provide

Re: [R] regarding QRb() function

2011-12-28 Thread Uwe Ligges
-help message. Uwe Ligges here data is of 60 records and 10 attributes. V1,...V9 are input values and V10 is response variable. -- View this message in context: http://r.789695.n4.nabble.com/regarding-QRb-function-tp4234816p4234816.html Sent from the R help mailing list archive at Nabble.com

Re: [R] transparency using plot+points with sp classes

2011-12-28 Thread Uwe Ligges
This code is not reproducible, hence hard to know if there is a problem with R, a contributed package, or what you wrote or did. Best, Uwe Ligges On 28.12.2011 18:07, Ana wrote: Hi guys, Thansk for the help with the transparency. I've made some modifications to my code , added rgb in colour

Re: [R] extract factor scores post-varimax

2011-12-28 Thread Uwe Ligges
-varimax. Is there a command to do this? scores(x) does not do it. Yes, loadings(). Uwe Ligges Thanks and happy holidays -- View this message in context: http://r.789695.n4.nabble.com/extract-factor-scores-post-varimax-tp4232192p4232192.html Sent from the R help mailing list archive

Re: [R] Rhelp-gmm

2011-12-27 Thread Uwe Ligges
, minimal, self-contained, reproducible code. Uwe Ligges -- Ivy Zhang __ 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] Long jobs completing without output

2011-12-27 Thread Uwe Ligges
process -- is this true? Err, this depends on the platform and the way you are using R. If you change some parts of R while that is running, it may result into unexpected behaviour or a crash if R accesses the files after the upgrade, of course. Best wishes, Uwe Ligges I'd be grateful for any

Re: [R] Longitudinal data

2011-12-27 Thread Uwe Ligges
; See package SASmixed that includes some nice examples how to move from SAS to R. Uwe Ligges But, I want use R. What would be the equivalent in R? Thank you. -- Silvano Cesar da Costa Departamento de Estatística Universidade Estadual de Londrina Fone: 3371

Re: [R] if statement problem

2011-12-25 Thread Uwe Ligges
On 24.12.2011 12:03, reena wrote: It didn't work. :( What did not work??? Please do not misuse the R-help mailing list! Its posting guide clearly asks you to cite the thread and specify reproducible examples that make other able to help. Best, Uwe Ligges -- View this message

Re: [R] Problem with RCOM package

2011-12-23 Thread Uwe Ligges
you have statconnDCOM installed. Uwe Ligges I am able to load the com object as seen in screenshot 2.png. however I am unable to invoke/get/set property to the object. Please guide me on the same, Regards; Kumar Anand 1.png 2.png

Re: [R] NEWTON ALGORITHM

2011-12-22 Thread Uwe Ligges
when log(x) is undefined ... Uwe Ligges Please forgive the French; it is my study language. Quite frankly I don't mind if I don't get the bonus marks, what is really important is that I understand why it doesn't work and what condition is missing. You're help would be kindly appreciated

Re: [R] constrOptim and further arguments

2011-12-22 Thread Uwe Ligges
, any help from the list would be gratefully received. Reason is that you need to specify fn and heq in a way that will accept these arguments! So the defitionions should start with fn - function(x,RR,Diff) and heq - function(x,RR,Diff) respectively. Uwe Ligges Regards Mike

Re: [R] black and white in qplot? layout 4 graphs in one screen

2011-12-22 Thread Uwe Ligges
also tell on the list where you took those functions from. qplot is not on base R graphics, hence see the help page of the package you took that function from (assuming ggplot2). Uwe Ligges Thank you! -- View this message in context: http://r.789695.n4.nabble.com/black-and-white-in-qplot

Re: [R] ff object in lapply function

2011-12-22 Thread Uwe Ligges
to the bugtraking system. Uwe Ligges Thanks for any advice! -- View this message in context: http://r.789695.n4.nabble.com/ff-object-in-lapply-function-tp4224441p4224441.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r

Re: [R] can't find 'predict.loess' in a loop

2011-12-22 Thread Uwe Ligges
See methods(predict) and find that methods are hidden in the Namespaces and are ought to be accessed by the generic. If you really want to access it explicitly (which i not intended by design), see help(:::) Your code is not reproducible, hence we cannot help in detail. Uwe Ligges

Re: [R] Search a string inside a data.frame

2011-12-21 Thread Uwe Ligges
more improved way to do that? Yes: you can also compare the whole column at once, but since there is no example in your message, you probably don't expect a detailed answer. Best, Uwe Ligges B.R Alex [[alternative HTML version deleted

Re: [R] Looping over files

2011-12-21 Thread Uwe Ligges
See FAQ How can I save the result of each iteration in a loop into a separate file? you will certainly find the the principle given therein can be applied the other way round or reading as well. Uwe Ligges On 21.12.2011 02:32, Debs Majumdar wrote: Hi, I have a list of files in one of my

Re: [R] R Source Code Request Office For National Statistics UK

2011-12-21 Thread Uwe Ligges
On 21.12.2011 14:25, David Winsemius wrote: There are no restrictions needed. Any of your staff can view the (open) source code just as any other member of the human race I do not think the GPL excludes other species ... with access to to an Interenet connection may do so. Oh, you may

Re: [R] unique combinations

2011-12-21 Thread Uwe Ligges
neat!) is: myVec- c(1,2,3) eg- expand.grid(myVec, myVec) eg[eg[,1]= eg[,2],] Var1 Var2 111 412 522 713 823 933 What am I missing? You are just using a different order - sort accoriding to Var1... Best, Uwe Ligges Best regards, KJ Jeff

Re: [R] boot.ci: [Error: cannot allocate vector of size 1.5 Gb]

2011-12-20 Thread Uwe Ligges
On 20.12.2011 06:47, Vikram Bahure wrote: Dear R users, I am getting following error while using boot.ci. I have int.inc function with 2 values. I am generating CI for the sample estimate. *med- function(x,i) median(x[i])* *b1- boot(int.inc,med,2)* *ci.out- boot.ci(b1,conf =

Re: [R] RODBC Error: 'getCharCE' must be called on a CHARSXP

2011-12-20 Thread Uwe Ligges
(channel, cat(txt,\n),errors=TRUE,) sqlQuery(channel, txt, errors=TRUE) seems more plausible (since cat returns NULL). Uwe Ligges close(channel) However, I get the following error immediately after sqlQuery command: Error in odbcQuery(channel, query, rows_at_time) : 'getCharCE' must

Re: [R] RODBC Error: 'getCharCE' must be called on a CHARSXP

2011-12-20 Thread Uwe Ligges
. Uwe ligges -Original Message- From: Uwe Ligges [mailto:lig...@statistik.tu-dortmund.de] Sent: Tuesday, December 20, 2011 8:46 AM To: Mike Pfeiff Cc: 'r-help@r-project.org' Subject: Re: [R] RODBC Error: 'getCharCE' must be called on a CHARSXP On 20.12.2011 14:55, Mike Pfeiff wrote

Re: [R] Quotes inside char string

2011-12-20 Thread Uwe Ligges
is derived from. cat() shows the actual version (but does not return) it. Uwe Ligges [[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] write.xls dont find the object in function

2011-12-19 Thread Uwe Ligges
On 19.12.2011 13:30, Ronaldo Reis Júnior wrote: Em 18-12-2011 18:55, Rolf Turner escreveu: On 19/12/11 04:29, Uwe Ligges wrote: On 18.12.2011 12:58, Ronaldo Reis Júnior wrote: SNIP Why the write.xls dont find the object a inside a function? Because at least that part of the function

Re: [R] odfWeave Windows binary

2011-12-18 Thread Uwe Ligges
On 17.12.2011 20:51, John C Nash wrote: As I'm working with some folk who use Windows to prepare an article / documentation, I'd like to be able to know if we can use odfWeave. It seems there is no official binary at the moment for Windows. Right, reason is the package does not pass the

Re: [R] odfWeave error

2011-12-18 Thread Uwe Ligges
Please report (if you want to speed things up including a patch) to the package maintainer. This package currently does not pass the check under Windows (at least not in non UTF-8 locales). Best, Uwe Ligges On 17.12.2011 23:49, Frank Lawrence wrote: I am new to using odfWeave but I have

Re: [R] odfWeave

2011-12-18 Thread Uwe Ligges
not in non UTF-8 locales). Best, Uwe Ligges On 16.12.2011 17:11, Frank Lawrence wrote: I am new to using odfWeave but I have encountered a problem running both the example in the help file as well as another file. I am not sure how to correct the error. First example: library(odfWeave

Re: [R] write.xls dont find the object in function

2011-12-18 Thread Uwe Ligges
(A=c(1,2),B=c(10,11)) + write.xls(a,file=a.xls) + } test() Erro em get(s[i]) : objeto 'a' não encontrado Why the write.xls dont find the object a inside a function? Because at least that part of the function is poorly written. Uwe Ligges Thanks Ronaldo

Re: [R] Retrieving samples when ussing BRugs.

2011-12-17 Thread Uwe Ligges
, if there an alternative way to get the samples. Short answer: No. Long answer: Well, samplesHistory(..., plot=FALSE) may be more convenient for several parameters at once, but it uses samplesSample internally, that means: no. Best, Uwe Ligges openbugs() mentioned by you seems to be from R2WinBUGS

Re: [R] Hi

2011-12-17 Thread Uwe Ligges
$), function(x) read.csv(x)[1,2]) Uwe Ligges 2011/12/14 Trying To learn againtryingtolearnag...@gmail.com Hi all, I have 100 csv files always with this information (I Attach two example excels) KT80.csv contains: ,x 1,127.188271604938 KT80.csv contains ,x 1,1.06329287351545 I

Re: [R] R error

2011-12-17 Thread Uwe Ligges
: (could not connect to dbname: unable to open database file Any ideas why? At least according to the documentation the first argument for that function should be a Directory in which all CuffDiff output files can be located. Uwe Ligges -- View this message in context: http://r.789695.n4

Re: [R] slight documentation error in stats package arima

2011-12-17 Thread Uwe Ligges
, B. D. (2002) Time series in R 1.5.0. R News, 2/2, 2–7. [2]http://www.r-project.org/doc/Rnews/Rnews_2002-2.pdf Anyone know who I should tell about this? Thanks for the report, has been fixed by Brian Ripley already. Uwe Ligges Thanks! - Jan References 1. http://www.r-project.org/doc

Re: [R] Odp: Problem with package compilation

2011-12-17 Thread Uwe Ligges
to a new R-x.y+1.z* release. update.packages(checkBuilt=TRUE) does that for CRAN and BioC (if a BioC repository / mirror is chosen) packages. Uwe Ligges Regards Petr Thanks Ronaldo -- 6Ş lei - Sua produtividade varia como (tempo produtivo gasto por dia)^1.000. 7Ş lei - Sua

Re: [R] Extraction of rules from Support Vector Machines

2011-12-17 Thread Uwe Ligges
with such a functionality? Those rules are implicitly stored in the object that is returned by svm() and they can be applied using predict(). A nice output and particularly an interpretation of the estimates is much harder and I don't know about such functionality. Uwe Ligges Thanks in advance, Paul

Re: [R] Monetary support to the R-project (Was: Re: Executable for Production Use)

2011-12-15 Thread Uwe Ligges
On 15.12.2011 04:09, Xu Wang wrote: I am still interested in this. Is there no way to pay directly online? via paypal or other? No. Uwe Ligges Thanks, Xu -- View this message in context: http://r.789695.n4.nabble.com/Re-Monetary-support-to-the-R-project-Was-Re-Executable-for-Production

Re: [R] JavaGD package

2011-12-14 Thread Uwe Ligges
be re-installed That means you have a JavaGD installation in one of your libraries that has been installed with R 2.14.0 but you are trying to use it with R = 2.14.0. Uwe Ligges I tried re-installing and got the same result. (rJava, by the way, seems to load OK.) I can't find any

Re: [R] Please delete my e-mail judit.barr...@montana.edu

2011-12-13 Thread Uwe Ligges
. Uwe Ligges Thank, Judit -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of Thomas Adams Sent: Monday, December 12, 2011 3:22 PM To: Bert Gunter Cc: r-help@r-project.org Subject: Re: [R] Boxplot of multiple vectors with different

Re: [R] calculating logit parameters (odd ratio is exactly one or zero)

2011-12-13 Thread Uwe Ligges
On Tue, Dec 13, 2011 at 4:08 AM, David Winsemiusdwinsem...@comcast.netwrote: On Dec 12, 2011, at 3:51 PM, Uwe Ligges wrote: 1. The formula you used is not for a logistic but an ordinal regression (since you are using the default gaussian family rather than family=binomial

Re: [R] NA/NaN/Inf in foreign function call question

2011-12-13 Thread Uwe Ligges
Probably some division by zero is done somewhere internally. We cannot say more since this is not reproducible for us. Uwe LIgges On 13.12.2011 18:29, niki wrote: Dear all, I have a datafile where I run haplo.GLM analyses using several variables (a matrix). However, when I include

Re: [R] Help with charting time in seconds as HH:MM:SS on charts

2011-12-12 Thread Uwe Ligges
Please post only once! Uwe Ligges On 12.12.2011 20:32, Tony Stocker wrote: Hello, I am dealing with data stored in a database as a 'time' object. I export the data from the database to a text file and utilize the 'time_to_sec()' function of the database to convert the human readable time

Re: [R] Creating appropriate time axis for data

2011-12-12 Thread Uwe Ligges
) Uwe Ligges Thanks, Tony __ 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

Re: [R] categorical variables

2011-12-12 Thread Uwe Ligges
/same question is what does it mean to set the first level as the base does this mean it turns each value into a unique binary result? What is a unique binary result? Actually, the base level is inlcuded in the intercept of your model and you see the differences for the other levels. Uwe Ligges

Re: [R] calculating logit parameters (odd ratio is exactly one or zero)

2011-12-12 Thread Uwe Ligges
defined in such a case as you found out already. R will give a warning in that case, that the Fisher Scoring does not converge. LDA will give perfect results in such a case (well, unless the within class covariance matrix is singular). Best, Uwe Ligges On 12.12.2011 11:46, wim nursal wrote

Re: [R] Titelpage pdf-manual, packaging

2011-12-10 Thread Uwe Ligges
of ‘...’ when runnign R CMD Rd2pdf on some Rd files with R-release. Best, Uwe Ligges Best regards, Johannes -- __ 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] scatterplot to boxplot translation?

2011-12-09 Thread Uwe Ligges
), by=100))) Uwe Ligges Thanks again, --Kelly V. From: David Winsemius [dwinsem...@comcast.net] Sent: Friday, December 09, 2011 11:14 AM To: Vining, Kelly Cc: r-help@r-project.org Subject: Re: [R] scatterplot to boxplot translation? On Dec 9, 2011, at 2:11

Re: [R] rjags in a Windows 7 64 bits machine

2011-12-08 Thread Uwe Ligges
Works for me: Do you have the most recent Jags version? Is this 32-bit or 64-bit R? Uwe Ligges On 08.12.2011 11:42, Filipe Ferminiano Rodrigues wrote: Hi. I was trying to follow this rjags tutorial (example 1): http://www.johnmyleswhite.com/notebook/2010/08/20/using-jags-in-r-with-the-rjags

Re: [R] help about Hannan-Rissanen model selection

2011-12-08 Thread Uwe Ligges
Never ever cross post!!! On 08.12.2011 14:51, MATEMATIK ISTATISTIK wrote: Dear all, I am sorry , I have not enough English or I am fool to understand the helping system 1- if someone has written the code for Hannan-Rissanen model selection in ARMA models, how can I find this R module or the

Re: [R] arules package intsallation

2011-12-07 Thread Uwe Ligges
' was built under R version 2.14.0 Error: package/namespace load failed for 'arules' Install an arules binary that was built for your version of R (reather than a later one) or install from sources. Uwe Ligges The arules CRAN page says: Depends: R (≥ 2.11.0), stats, methods, Matrix (≥ 0.999375

Re: [R] any R-Revolution users here? How to make Revolution portable?

2011-12-07 Thread Uwe Ligges
: ask on the right mailing list or the support staff. Best, Uwe Ligges Thanks a lot! [[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] Object xxx not found

2011-12-07 Thread Uwe Ligges
-read.csv(c,header=T) hist(sector$exports,xlab=exports (MtCO2),main=CO2 Exports) Err, you either want SouthAfrica$sector or SouthAfrica$exports. Uwe Ligges Error in hist(sector$exports, xlab = exports (MtCO2), main = CO2 Exports) : object 'sector' not found Could somebody please assist

Re: [R] Hist and extra space

2011-12-07 Thread Uwe Ligges
. Uwe Ligges hist(X, freq = F, col = 'gray', axes = FALSE) abline(v = cyano_euk_min, col = 'red', lty = 3, lw = 2) abline(v = cyano_euk_max, col = 'red', lty = 3, lw = 2) axis(1, tck = -0.02) axis(2, tck = -0.02) box(bty = 'l') Regards, Phil -- View this message in context: http://r.789695.n4

Re: [R] Raster:matrix rows as x dimension

2011-12-07 Thread Uwe Ligges
-dimension and rows for y-dimension. Is there way to use rows as X and columns as Y? Are you looking for ?t Uwe Ligges -- View this message in context: http://r.789695.n4.nabble.com/Raster-matrix-rows-as-x-dimension-tp4169292p4169292.html Sent from the R help mailing list archive

Re: [R] axis line width in boxplots

2011-12-07 Thread Uwe Ligges
need the axis line)? Thank you for all the help you guys provide, it is extremely useful! par(lwd=0.5) boxplot(1:10, lwd=0.5) Uwe Ligges Regards Simon Gingins PhD student University of Neuchâtel Institute of Biology Department of Behavioural Ecology Rue Emile-Argand 11 2000 Neuchâtel

Re: [R] Convert a string to a variable name

2011-12-07 Thread Uwe Ligges
to be able to reference such as: meas- data$col meas - data[[col]] Uwe Ligges and use this meas in the function. However, I can't seem to get this to work because the input is read into a string, and I can't figure out how to convert this string to the vector name that I want. Any help

Re: [R] How to scale arrows to approximately fill a plot region?

2011-12-07 Thread Uwe Ligges
On 07.12.2011 18:52, Michael Friendly wrote: In a variety of graphic applications, I plot some data, together with arrows representing variables or linear transformations of variables as vectors in the same space, as in a biplot. In my applications, the scale of the arrows is arbitrary -- all

Re: [R] Argument validation within functions

2011-12-06 Thread Uwe Ligges
On 06.12.2011 13:46, Johannes Radinger wrote: Hi, thank you... I think I will go for the if-stop approach as the stop() stops the total function... So there is just one little other question: What is the opposite of is.numeric? Is ther isnot.numeric? Yes, see: ?! Uwe Ligges How can

Re: [R] Can't load package 'lars'

2011-12-06 Thread Uwe Ligges
### library(lars, lib.loc = ~/R/x86_64-redhat-linux-gnu-library/2.11) Are you sure it is installed at the location you specified? Uwe Ligges Error : .onLoad failed in loadNamespace() for 'lars', details: call: cat(Loaded lars, utils::installed.packages()[lars, Version], error: subscript out

Re: [R] Summary coefficients give NA values because of singularities

2011-12-06 Thread Uwe Ligges
or is constant. Uwe Ligges My code and output is as follows: sad-matrix(1,ncol=11,nrow=486) sad[,c(1:10)]-d[,2][-357] sad[,1]-d[,29][-357] sad[,2][sad[,2]!=1]-0 sad[,3][sad[,3]!=2]-0 sad[,4][sad[,4]!=3]-0 sad[,5][sad[,5]!=4]-0 sad[,6][sad[,6]!=5]-0 sad[,7][sad[,7]!=6]-0 sad[,8][sad[,8]!=7]-0 sad[,9

Re: [R] Plot numeric and categorical variable

2011-12-06 Thread Uwe Ligges
). How could I possibly go about this, let me know. Any help will be greatly appreciated. Thanks in advance for your help,JN Sounds like homework?! Anyway, see ?par and ?axis to answer your question directly or ?boxplot more implicitly... Best, Uwe Ligges

Re: [R] help! browser() does not get stopped...

2011-12-06 Thread Uwe Ligges
are using some package and call the subroutine within the NAMESPACE of the package rather than the one in .GlobalEnv. Uwe Ligges Please help me! Thanks! __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read

Re: [R] Can't load package 'lars'

2011-12-06 Thread Uwe Ligges
library using .libPaths() before loading the package. Uwe Ligges Error: package/namespace load failed for ‘lars’ It is the first time I get such an error message when trying to load a package. It would seem that the problem is with ### cat(Loaded lars, utils::installed.packages()[lars

Re: [R] help! browser() does not get stopped...

2011-12-06 Thread Uwe Ligges
that are involved. best, uwe Ligges 2011/12/6 Uwe Liggeslig...@statistik.tu-dortmund.de On 06.12.2011 18:29, Michael wrote: how do I check and make sure? thx E.g. insert cat(Hello World!\n) in the first line of your function you called subroutine. Best, Uwe Ligges On 12/6/11, Uwe

Re: [R] iterative variable names

2011-12-05 Thread Uwe Ligges
want to create a list of objects that you return in the end. Uwe Ligges I need it to return ten variables: x_1, x_2, ..., x_10 How can I do it? Thank you very much! Beatriz -- View this message in context: http://r.789695.n4.nabble.com/iterative-variable-names-tp4159888p4159888.html Sent from

Re: [R] Vectorization instead of loops problem

2011-12-04 Thread Uwe Ligges
is in a data.frame called dat): wx - which(dat$x==1) result - lapply(wx[wx 3], function(x) dat$y[x - (1:3)]) (where lapply is a loop, implicitly). Uwe Ligges __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE

Re: [R] Extract last 3 characters from numeric vector

2011-12-04 Thread Uwe Ligges
On 04.12.2011 14:38, Kang Min wrote: Hi all, I have a numeric vector with 1 decimal place, and I'd like to extract the last 3 characters, including the decimal point. The vector ranges from 0 to 20. x- round(runif(100)*20, digits=1) formatC(round(x%%10, 1), format=f, digits=1) Uwe Ligges

Re: [R] R + memory of objects

2011-12-02 Thread Uwe Ligges
to get the memory consumption of objects. Uwe Ligges On 02.12.2011 16:17, Marc Jekel wrote: Dear R community, I am still struggling a bit on how R does memory allocation and how to optimize my code to minimize working memory load. Simon (thanks!) and others gave me a hint to use the command

Re: [R] Graphics - Axis Labels overlap window edges

2011-12-02 Thread Uwe Ligges
/142642881436450816/photo/1 - (if you click on the picture it opens a larger version so it is easier to see the problem) is there anyway I can get R to not cut the top off the letters? Increase the margins. See ?par and its mar argument. Uwe Ligges Thanks, Rob -- View this message in context: http

Re: [R] Error adding Bigmemory package

2011-12-01 Thread Uwe Ligges
the Solaris based CRAN checks. Hence please report to the package maintainer directly, since reports from CRAN maintainers and the CRAN results are obviously ignored. Best, Uwe Ligges roger -- View this message in context: http://r.789695.n4.nabble.com/Error-adding-Bigmemory-package

Re: [R] References for book R In Action by Kabacoff

2011-12-01 Thread Uwe Ligges
of references in the book! Does anybody know if there are errata for the book available some place? I'd ask the author! Uwe Ligges Thanks, Ravi -- View this message in context: http://r.789695.n4.nabble.com/References-for-book-R-In-Action-by-Kabacoff-tp4127625p4127625.html Sent from the R

Re: [R] how big (in RAM and/or disk storage) is each of these objects in a list?

2011-12-01 Thread Uwe Ligges
saved objects smaller, I'm open for suggestions. Look carefully for environments attached to one or more of the objects. Best, Uwe Ligges As an initial step, what is the result of running ls() with your RData file loaded? You should get a list of what is in memory. Using RData files can

Re: [R] Negative exponential fit

2011-11-30 Thread Uwe Ligges
On 29.11.2011 07:06, Indrajit Sengupta wrote: What have you tried so far - can you explain? fitdistrplus package is the default package for fitting distributions. It is a contributed packages, and perhaps it is a good one (I do not know), but calling it the *default* ... who defined that? Best, Uwe

Re: [R] Replacing a value in a dataframe

2011-11-30 Thread Uwe Ligges
- as.integer(Cheque) Uwe Ligges -- View this message in context: http://r.789695.n4.nabble.com/Replacing-a-value-in-a-dataframe-tp4122188p4122188.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list https

Re: [R] Replacing a value in a dataframe

2011-11-30 Thread Uwe Ligges
- within(d, a - as.integer(a))}) Uwe Ligges -- Bert 2011/11/30 Uwe Liggeslig...@statistik.tu-dortmund.de: On 30.11.2011 09:16, arunkumar wrote: hi I have data like this in a dataframe Var Value Cheque X140FALSE X220FALSE X328TRUE I want to replace it FLASE

Re: [R] append to PDF file

2011-11-29 Thread Uwe Ligges
On 29.11.2011 13:15, R. Michael Weylandt wrote: I think you are looking for the system() command. ... and you certainly do not want to use savePlot but rather use the pdf() device directly. Uwe Ligges Michael On Tue, Nov 29, 2011 at 7:11 AM, Christof Klußckl...@email.uni-kiel.de

Re: [R] Negative exponential fit

2011-11-29 Thread Uwe Ligges
that? Best, Uwe Ligges Regards, Indrajit From: rch4r...@geneseo.edu To: r-help@r-project.org Sent: Tuesday, November 29, 2011 8:39 AM Subject: [R] Negative exponential fit We need help We are doing a project for a statistical class in and we are looking

Re: [R] heatmap.2 (blurred output heatmap)

2011-11-29 Thread Uwe Ligges
example(heatmap.2) works for me, hence it is either your data, your version of some package or your version of R that causes the problems, we do not have information of any of these although the posting guide asks you to provide this for each posting. So we cannot help. Uwe Ligges

Re: [R] regarding installation of bayesQR package

2011-11-29 Thread Uwe Ligges
from above link.I am new to R. Well, the R Installation and Administration manual says it. Easiest: Either install.packages(bayesQR) downloads and installs automatically, or for Windows, simply use the GUI to install the downloaded zip file. Uwe Ligges So please tell me what is the next

Re: [R] Matrix for correlation

2011-11-29 Thread Uwe Ligges
in a textbook and find why you cannot calculate it for this kind of data. If you do not find, please ask a local statistician for help. Uwe Ligges Sorry but I don't have a clue and I hope there is an easy way to solve my problem. Thanks a lot for all answers. Greetz Geo -- View this message

Re: [R] Legend

2011-11-25 Thread Uwe Ligges
)), horiz = FALSE, pt.bg = c('gray', 'black'), cex = 0.75, bg = 'white') Best, Uwe Ligges Regards, Phil -- View this message in context: http://r.789695.n4.nabble.com/Legend-tp4103799p4104386.html Sent from the R help mailing list archive at Nabble.com

Re: [R] Objects disappearing in my R work space

2011-11-25 Thread Uwe Ligges
can share more if you think it will help Actually, the posting guide asks you to provide commented, *minimal*, self-contained, reproducible code. Uwe Ligges -- View this message in context: http://r.789695.n4.nabble.com/Objects-disappearing-in-my-R-work-space-tp4104389p4106379.html Sent

Re: [R] Objects disappearing in my R work space

2011-11-25 Thread Uwe Ligges
of memory limit I do not know if any OS / window manager has the capability to open that many numbers of windows. But as I said, we need some difintions and examples. Uwe Ligges -- View this message in context: http://r.789695.n4.nabble.com/Objects-disappearing-in-my-R-work-space

Re: [R] Objects disappearing in my R work space

2011-11-25 Thread Uwe Ligges
definition of window. so... it may be reaching some sort of memory limit I do not know if any OS / window manager has the capability to open that many numbers of windows. But as I said, we need some difintions and examples. Uwe Ligges -- View this message in context: http://r.789695.n4

Re: [R] On-demand importing of a package

2011-11-25 Thread Uwe Ligges
you want to make it available without having any need to use it? Uwe Ligges line in the DESCRIPTION file to tell it to install Matrix at install time but not load it automatically at package load time -- the package would have to require it itself. (sqldf has this problem since most

Re: [R] pairs(), expression in label and color in text.panel

2011-11-25 Thread Uwe Ligges
)[1], par(usr)[3], par(usr)[2], par(usr)[4], col=grey80) ) Best, Uwe Ligges Maybe someone knows how to do that and can give some hints... /Johannes -- __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help

Re: [R] glmulti fails because of rJava

2011-11-24 Thread Uwe Ligges
. It does not ask you to reinstall *r*Java but to reinstall Java. Have you done that? So which architecture is your running R version and which architecture is your Java version? Best, Uwe Ligges Any advice would be much appreciated: I can now not use glmulti at all and I can't see how

Re: [R] On-demand importing of a package

2011-11-24 Thread Uwe Ligges
and calling directly Matrix::rowSums explicitly and so on should work. And exactly this is what Namespaces are made for: deal appropriately with name clashes by importing into the own namespace. Best, Uwe Ligges Gabor On Tue, Nov 22, 2011 at 8:09 PM, Gábor Csárdicsa...@rmki.kfki.hu wrote: Dear

Re: [R] post the message

2011-11-24 Thread Uwe Ligges
the latter and repost appropriately afterwards. Uwe Ligges __ 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

Re: [R] object 'gs' not found

2011-11-24 Thread Uwe Ligges
=~arma(0,0),formula.var=~igarch(1,1),series=gs,include.var=F) What is garchoxfit_R.txt? WHat is garchOxFit()? What is F? What is gs? You mean a character vector containg the path of your working directory as you got from getwd()? I cannot believe that. Uwe Ligges Error in garchOxFit

Re: [R] Legend

2011-11-24 Thread Uwe Ligges
)), horiz = FALSE, pt.bg = c('gray', 'black'), cex = 0.75, bg = 'white') Uwe Ligges But its not working. Any help would be appreciated. Regards, Phil -- View this message in context: http://r.789695.n4.nabble.com/Legend-tp4103799p4103799.html Sent from the R help mailing list archive

Re: [R] On-demand importing of a package

2011-11-23 Thread Uwe Ligges
will use anyway. Best, Uwe Ligges __ 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

Re: [R] Colorbar too wide in eps

2011-11-23 Thread Uwe Ligges
,family='Times',horizontal=FALSE) ... dev.off() around the line above in order to create an eps file, the bar is much too wide. Which bar? We cannot see it since your code is not reproducible. Best, Uwe Ligges I tried to play around the witdh parameter of the postscript command and tried

Re: [R] Aggregating two or more vaiables

2011-11-23 Thread Uwe Ligges
(cbind(Retail, QSlod) ~ BrandName, data=dat, sum) Uwe Ligges -- View this message in context: http://r.789695.n4.nabble.com/Aggregating-two-or-more-vaiables-tp4098855p4098855.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r

Re: [R] logarithmically scaled y-axis in vioplot

2011-11-22 Thread Uwe Ligges
=Sender, ylab=V/m) Now I want to scale the y-axis logarithmically, i.e. 0.01; 0.1; 1; 10. How can I do this? I think you will have to tweak the underlying code. A feature request to the authors may help, a patch that adds the requested feature may help even more. Best, Uwe Ligges Thank

Re: [R] logarithmically scaled y-axis in vioplot

2011-11-22 Thread Uwe Ligges
the requested feature may help even more. Best, Uwe Ligges Thank you very much Alex -- __ 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

Re: [R] singular matrix in composition package

2011-11-22 Thread Uwe Ligges
of singular matrix in composition package I guess the matrix is not provided by the package but caused by the data *you* provided. So try to find out why the matrix is singular and the it is much easier to tackle it. Uwe Ligges thanks in advance ros [[alternative HTML version deleted

<    6   7   8   9   10   11   12   13   14   15   >