Re: [R] Dengrogram Help (Custom Make)

2013-04-10 Thread mlell08
Hi, this is how far I have come without practicel knowledge of dendrograms. _ # This dendrogram is from the demo of 'dendrogram', obtained by dput()! d3 <- structure(list(structure(list(structure(8L, members = 1L, height =

Re: [R] Dengrogram Help (Custom Make)

2013-04-09 Thread mlell08
Hi, please give a *small* working example or everyone will have to guess what could be right. see text for drawing text and rect(x1,y1,x2,y2,col,...) for drawing colred rectangles. Regards, Moritz On 09.04.2013 23:34, gunturus wrote: > Hi > > I am tring to making a dengrogram. I know how to ma

[R] Where is JGR's Java source code?

2013-02-26 Thread mlell08
Hello List, I'm trying to get behind the secrets of rJava, especially how to run an R session within a java Programm **and especially how wo inspect objects of an R workspace from within a java program** But as I can't find any documentation on the Java side of rJava, I tried to learn somethin fr

Re: [R] Setting inline hook to a function identical to default in knitr turns of exponential formatting

2013-01-31 Thread mlell08
OK, i' look at this. Thank you :-) __ 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

Re: [R] Using loop for a random vector (Montecarlo method)

2013-01-29 Thread mlell08
> # This assumes you have a parameter list which looks like this: > # l: list(n = c(5, 10, 20), > # a = c(0.1, 0.2, 0.3), > # E = c(5,10), > # L = c(0.01, 0.025, 1)) etc... > # > # > # indVec:c(n= 1, a=1, E=2, L=1) > # The function selects the approproate sub-list by the n

Re: [R] Using loop for a random vector (Montecarlo method)

2013-01-29 Thread mlell08
On 29.01.2013 13:10, mary wrote: > > Hi, > I've understand how to do a permutation matrix but how I can utilize it? > I would like to have a sample of 5 unit with rotation parameters! The same > with 10 unit or 20 unit... You could rewrite your tab function that is accepts a list with named entr

Re: [R] Using loop for a random vector (Montecarlo method)

2013-01-28 Thread mlell08
On 28.01.2013 12:06, mary wrote: > Hi, > > I would like to replicate a sort of Montecarlo experiment: > > I have to generate a random variable N(0,1) with 100 observations but I have > to contaminate this values at certain point in order to obtain different > vectors with different samples: Hi,

[R] Setting inline hook to a function identical to default in knitr turns of exponential formatting

2013-01-28 Thread mlell08
Hello List, while dealing with a questin of 'xiaodao' ( http://r.789695.n4.nabble.com/Problem-with-large-small-numbers-in-knitr-tp4653986.html) I noticed that copying the default inline hook function obtained by knit_hooks$get("inline") into a knit_hook$set(inline = <...>) call turns off exponent

Re: [R] Problem with large/small numbers in knitr

2013-01-28 Thread mlell08
On 26.12.2012 23:28, xiaodao wrote: > I have problems with very large numbers using knitr. In the following, my a > and b are extremely small and ssrr and ssru are extremely large. > > \documentclass{article} > \begin{document} > > <>= > ## numbers >= 10^5 will be denoted in scientific notation

Re: [R] R for commercial use

2012-09-25 Thread mlell08
Hi, On 24.09.2012 16:21, Zastko,Samuel ALB co-mw wrote: > Hi everyone, > want to use R in our company but have to complete an intern questionnaire > first. Can anyone help? Thanks in advance! > Here the questions I’m not sure about: > 1. Is R a Clientsoftware / Serversoftware / Systemsoftwar

Re: [R] $ operator is invalid for atomic vectors

2012-09-15 Thread mlell08
On 14.09.2012 22:16, Steve Lianoglou wrote: > Hi, > > On Fri, Sep 14, 2012 at 2:33 PM, agrins wrote: >> HI all- >> >> I have used this .fun in S+ without a problem however, in R when I run this >> code to generate multiple graphs: >> >> trendplot<-function(datafr,dataf2, abbrev="", titlestr="", >

Re: [R] Simple x,y Plot

2012-07-29 Thread mlell08
On 29.07.2012 17:18, sappy wrote: > Dear Community, > > i have read in a table with two column from a *txt-File. What i get is a > data-frame wit two column. > After that i allocate this 2 column to x and y. Plotting this, i obtain a > picture that looks like a bar plot (something like a grid). >

Re: [R] how to add a variable to a graph title

2012-07-13 Thread mlell08
To use variables in mathematical expressions, bquote can be used: #Term in in .( ) is evaluated plot(1:10,main=bquote(frac(alpha,.(2+2 -- GnuPG Key: 0x7340821E __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEA

Re: [R] Need HELP: how find and use a csv file?

2012-07-10 Thread mlell08
On 10.07.2012 20:11, Faradj Koliev wrote: > However, when i enter:skatter.csv<-read.csv("skatter.csv", header=TRUE) i > get this message: > Error in file(file, "rt") : cannot open the connection > In addition: Warning message: > In file(file, "rt") : > I have tried with: skatter.csv<-fil

Re: [R] Error in plot.new() : figure margins too large

2012-07-06 Thread mlell08
On 06.07.2012 20:02, John Kane wrote: > Your code works okay in a plan R terminal. It may be an Rstudio problem or > perhaps you already have a graphics device open and are trying to draw into > it? > > John Kane > Kingston ON Canada > > >> -Original Message- >> From: khar...@lbl.gov

[R] [SOLVED] Accessing named members of a list in an array

2012-07-01 Thread mlell08
2,b=3) >> a[[1,1]]$a > Error in a[[1, 1]]$a : $ operator is invalid for atomic vectors >> a[[1,1]] > a b 2 3 >> a[[1,1]] <- list(a=2,b=3) a[[1,1]]$a > [1] 2 >> a[[1,1]] > $a [1] 2 > > $b [1] 3 > > > From the description of the problem, perhaps it

[R] Accessing named members of a list in an array

2012-06-30 Thread mlell08
Dear List, I've created a two-dimensional array which shall contain a value and its error, respectively. These two values are concatenated in al list and bear the names "sl" and "sl_err" But I can't adress them using the $-notation. a<- array(list(NULL),dim=c(2,2)) a[[1,1]]<- c(a=2,b=3) a[[1,1]]

Re: [R] compiling an R script

2012-05-01 Thread mlell08
On 01.05.2012 00:12, strycker wrote: > I'm interested in this question, too, not so I can hide code, but so I can > run R code faster. It's been my experience that compiled code always runs > faster than interpreted code. Can you explain further how to compile a > front-end? > > -- > View this me

Re: [R] Writing a Permutation Function

2012-04-28 Thread mlell08
On 28.04.2012 14:47, Sarah Goslee wrote: > We really can't help you with your assignment. You might consider > ??unique > though, since you've already resolved to look for functions related to > identifying unique entries. > > Sarah > > On Apr 28, 2012, at 8:11 AM, petermec wrote: > >> Hi everyon

Re: [R] R shell script

2012-04-25 Thread mlell08
On 25.04.2012 17:12, Steve Lianoglou wrote: > Check out the vignette for the optparse library: > > http://cran.r-project.org/web/packages/optparse/vignettes/optparse.pdf > > Super helpful library if you plan on making any semi-interesting > command line scripts w/ R. > > -steve > > On Wed, Apr 25,

Re: [R] Remove superscripts from HTML objects

2012-04-12 Thread mlell08
Hi, h <- "CataDog" sub("","",h) see http://en.wikibooks.org/wiki/R_Programming/Text_Processing for more information. Regards! __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www

Re: [R] R error message

2012-04-12 Thread mlell08
Hi, > The code I have used is > >> summary(prefdata) >> prefdata[prefdata>5]=NA >> summary(prefdata) >> prefdata2=as.matrix(prefdata[3:22]) >> stats=paf(prefdata2) > [1] "One of your variables is a constant. Constants are disallowed as > part of could you provide some data / sample data you used fo

Re: [R] How do Sweave users collaborate with Word users?

2012-04-07 Thread mlell08
would it be possible to separate the parts generated by R from the actually written paths? As creating small doc's by sweave which contain the generated reports and embedding them via OLE into the static written text. However, this could require sending around multiple documents around each time...

Re: [R] how to control exact positions of axis

2012-04-06 Thread mlell08
Hello, the graphical parameters xaxs and yaxs are for you. par(xaxs="i") Regards! __ 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

Re: [R] Legend based on levels of a variable

2012-04-06 Thread mlell08
He provided data, yet in an inconvenient way at the bottom of his post. Kumar, please use dput() to provide data to the list, because its much easier to import: dput(data)## name data is made up by me structure(list(Region = structure(c(2L, 2L, 2L, 2L, 2L, 3L, 3L, 3L, 3L, 3L, 1L, 1L, 1L, 1L,

Re: [R] help in paste command

2012-04-05 Thread mlell08
Hello Arun, > paste("select * from ", tablename , " where colors in (",paste(var1,collapse=","),")") [1] "select * from DressMaterials where colors in ( red,blue,green,white )" Regards! __ R-help@r-project.org mailing list https://stat.ethz.ch/mailma

Re: [R] How to put latex mdframed side by side (separated by space) ?

2012-04-02 Thread mlell08
Hi, as long as you don't want to stetch the frames across a page break, would minipges do? \documentclass[12pt]{article} \usepackage{lipsum} \begin{document} \begin{minipage}[t]{0.45\textwidth} \lipsum[1] \end{minipage} \hfill \begin{minipage}[t]{0.45\textwidth} \lipsum[2] \end{minipag

Re: [R] pause code in R code?

2012-04-01 Thread mlell08
type '?readline' in your R command prompt to receive help about how to use the function readline() since this is what you're looking for. Regards! __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posti

Re: [R] Supperscript, subscript and double lines in the main/subtitle and using greekletters

2012-03-27 Thread mlell08
The title() function also has parameter 'line' where you can specify the margin line in which the text should be displayed. How many lines of margin should be around the figure region of the plot can be specified before plotting by par(mar=c(bottom,left,top,right)), in text lines. margin lines are

Re: [R] show and produce PDF file with pdf() and dev.off( ) in function

2012-03-24 Thread mlell08
you could either define a plotting function which passes your arguments to plot() two times, with different devices active. this function plots the given arguments two times: pl<- function(...){ X11() #or pdf() plot(...) # dev.off() if pdf() is used X11()

Re: [R] plot a BARPLOT with sd deviation bar up and down

2012-03-23 Thread mlell08
Hello, I think there's no function in R to print error bars. I once found one in a blog which I'm using. errorbar <- function(x, y, upper, lower=upper, length=0.02, vert=TRUE, ...){ if(!doPlot) return() if(length(x) != length(y) | length(y) !=length(lower) | length(lower) != length(upper))

Re: [R] How to draw table in Latex without using xtable?

2012-03-23 Thread mlell08
I don't know xtable but you could try escaping the backslashes in your strings. cat("\\begin{table}[ht]") etc. Regards! __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-proje

Re: [R] i dont know what function do i have to make for ("The number of lines in the body of the email")

2012-03-21 Thread mlell08
Perhaps R's function readLines is the right thing for you. AFAIK it returns a vector of strings containing the lines of th email. Or you could try to count the occurence of the newline character '\r' (Unicode 0xA) Regards! __ R-help@r-project.org mailin