Re: [R] Transformations in Tidyverse (renaming and ordering columns)

2018-10-23 Thread Joel Maxuel
cleared all formatting and dismissed the formatting toolbar (been doing only the latter before) in the Gmail client, which I presume will finally strip HTML from the message. -- Cheers, Joel Maxuel On Mon, Oct 22, 2018 at 10:48 PM John Laing wrote: > I don't know much about the Tidyverse, b

Re: [R] Transformations in Tidyverse (renaming and ordering columns)

2018-10-22 Thread Joel Maxuel
100 3 Southern746570 4 Western163 119 147 > ## Intended: # A tibble: 4 x 4 For Reporting Quarter One Two Three 1 Western 163 147 119 2 Northern 105 10082 3 Eastern

Re: [R] Transformations in Tidyverse (renaming and ordering columns)

2018-10-22 Thread Joel Maxuel
on heading outside the table to me feels like a waste of space. With 13 proposed sections in the end (120 to 140 observations), having that all in only two pages may already be a challenge. -- Cheers, Joel Maxuel [[alternative HTML version deleted]] ___

[R] Transformations in Tidyverse (renaming and ordering columns)

2018-10-22 Thread Joel Maxuel
) %>% magrittr::extract2("Section") =" I presume my premise is very wrong. Also, I am curious how to sort columns (and rows) with extra columns (/rows) not meant for display. In this case, the columns One, Two, and Three (in real life won't

Re: [R] Paired sample t-test with mi.t.test

2017-04-08 Thread Joel Gagnon
or the code to run. Thank you very much again for taking the time. Best, Joel On Fri, Apr 7, 2017 at 3:26 PM, Prof. Dr. Matthias Kohl < matthias.k...@stamats.de> wrote: > Dear Joel, > > are you trying to apply function mi.t.test from my package MKmisc? > > Could you plea

[R] Paired sample t-test with mi.t.test

2017-04-07 Thread Joel Gagnon
t the Y variable is supposed to represent. Could someone help me figure out what I am doing wrong? You help would be very much appreciated. Best regards, Joel Gagnon, Ph.D(c), Department of Psychology, Université du Québec à Trois-Rivières Québec, Canada [[alternative HTML version deleted]]

[R] R freezing issue when checking to see if variable belongs to two different vectors

2016-09-23 Thread Joel Stewart
happening. Thanks in advance, Joel [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org

[R] [R-pkgs] New Package "radiomics": First and Second Order Matrix Statistics

2015-12-14 Thread joel carlson
fro> Lists of features, and an introduction to the package can be found in the package vignette. In-depth explanation of texture analysis matrices can be found here: http://joelcarlson.me/2015/07/10/radiomics-package/ Any comments, contributions, and feedback are always we

[R] Windows Installation Without Third-Party Packages

2015-04-09 Thread Elliot Joel Bernstein
I am trying to install R for Windows, but when I use the installer provided on CRAN, a number of third-party packages are installed by default (i.e. lattice, Matrix, codetools, etc.). If R is installed with administrator privileges, so it's available for all users, non-administrators can't update t

Re: [R] grep(pattern = each element of a vector) ?

2013-09-12 Thread Allen, Joel
#x27;, 'red', NA)) df2 <- data.frame(Taxa = c( 'blue', 'red', NA), Class = c('Z', 'HI', 'A')) #function to do the lookup find.class<-function(x)df2[grep(x, df2$Taxa),'Class'] ddply(.data=df1, .variables='Ta

Re: [R] Selecting several columns/rows of a dataframe?

2013-05-01 Thread Joel Prokopchuk
Thanks everyone. I had looked in the documentation (just in the wrong places,apparently) and googled, but I couldn't find this. 2013/5/1 Rui Barradas : > Hello, > > Try > > corpus.df[, c("mph", "mgl", "eng")] > > > Hope this helps

[R] Selecting several columns/rows of a dataframe?

2013-05-01 Thread Joel Prokopchuk
Sorry, the use of rows/columns I found so far was rather contradictive, both refering to what can be gotten via subset() instead of what I'm looking for. Is there a way to get multiple colums/rows? Something like corpus.df${mph,mgl,eng} Thanks in advance for any answers. -- Joel Proko

[R] I'm trying to parse 1 column of a dataframe into 3 seperate columns

2013-01-14 Thread Joel Pulliam
character", length = length(test2)) e <- vector(mode = "character", length = length(test2)) i <- 1 j <- 1 for (i in 1:length(test2)) { a[j] <- test2[i] s[j] <- test2[i+1] e[j] <- test2[i+2] i <- i + 3 j <- j + 1 } T

Re: [R] Repeated Aggregation with data.table

2012-09-21 Thread Elliot Joel Bernstein
ean(z)), by = eval(parse(text = sprintf("list(%s)", paste(x, collapse=","] I think that's a pretty ugly solution (although it does work), but I haven't come up with anything better. Any suggestions? Thanks. - Elliot On Tue, Sep 11, 2012 at 11:33 AM, El

Re: [R] Repeated Aggregation with data.table

2012-09-11 Thread Elliot Joel Bernstein
ssion( list(mean.z = mean(z), sd.z = sd(z)) ) > > dat[ , eval(flist), list(x)] >x mean.z sd.z > 1: 2 0.04436034 1.039615 > 2: 3 -0.06354504 1.077686 > 3: 1 -0.08879671 1.066916 > > -- > David. > > > A.K. >> >> >> >> - Original Mes

[R] Repeated Aggregation with data.table

2012-08-07 Thread Elliot Joel Bernstein
can reuse, similar to the function "f" above. Can someone please explain how to do that? Thanks. - Elliot -- Elliot Joel Bernstein, Ph.D. | Research Associate | FDO Partners, LLC 134 Mount Auburn Street | Cambridge, MA | 02138 Phone: (617) 503-4619 | Email: elliot.bernst...@fdopartner

Re: [R] Thinning Lattice Plot

2012-07-31 Thread Elliot Joel Bernstein
, Elliot Joel Bernstein > wrote: > > > Thanks everyone for your replies. I didn't know about the ecdfplot > function, > > so I'll start using that instead of Ecdf. Why is Ecdf not a lattice plot? > > The result certainly looks like other lattice plots, the argumen

Re: [R] Error Installing Package with Dependency on "Matrix"

2012-07-31 Thread Elliot Joel Bernstein
t On Tue, Jul 31, 2012 at 11:33 AM, Elliot Joel Bernstein < elliot.bernst...@fdopartners.com> wrote: > I'm attempting to update to R 2.15.1, and I'm having trouble with a > package that depends on the "Matrix" package. I've created a dummy package > consistin

[R] Error Installing Package with Dependency on "Matrix"

2012-07-31 Thread Elliot Joel Bernstein
failed for package ‘temp’ * removing ‘/home/ebernstein/Rlib_2.15.1/temp’ If I remove the dependency on "Matrix", it installs fine. I'm using R 2.15.1 on linux, and version 1.0-6 of the Matrix package. Can anyone explain what's going on here? Thanks. - Elliot -- Elliot Joel Bernste

Re: [R] Thinning Lattice Plot

2012-07-31 Thread Elliot Joel Bernstein
just call the "histogram" function with a different prepanel and panel function. Is it not considered a lattice plot only because it isn't part of the lattice package? Thanks. - Elliot On Tue, Jul 31, 2012 at 2:32 AM, Deepayan Sarkar wrote: > On Tue, Jul 31, 2012 at 2:43 AM, El

[R] Thinning Lattice Plot

2012-07-30 Thread Elliot Joel Bernstein
possible to see that much detail. For example: require(Hmisc) x <- rnorm(1e6) pdf("test.pdf") Ecdf(x) dev.off() The resulting pdf files is 31MB. Is there any easy way to get a smaller pdf file without having to manually prune the dataset? Thanks. - Elliot -- Elliot Joel Berns

[R] QUADRATIC PROGRAMMING

2012-07-24 Thread Joel Muli
hi, what code in R would I use to solve the problem below? An apartment complex has 250 apartments to rent.If they rent x apartments then their monthly profit is given by: p(x)= -8^x^2 + 3200x -8 Thanks. [[alternative HTML version deleted]] _

[R] QUADRATIC PROGRAMMING

2012-07-24 Thread Joel Muli
hi, what code in R would I use to solve the problem below? An apartment complex has 250 apartments to rent.If they rent x apartments then their monthly profit is given by: p(x)= -8^x^2 + 3200x -8 Thanks. [[alternative HTML version deleted]] _

[R] combineLimits and Dates

2012-06-25 Thread Elliot Joel Bernstein
d | g, groups = h, data = dat, type = 'l', scales = list(relation = "free"), auto.key = TRUE) plt1 <- useOuterStrips(plt1) plt1 <- combineLimits(plt1) The x-axis labels are right after the call to 'useOuterStrips' but they get converted to numeric after the call to '

[R] "Tight" Axes in Prepanel Function

2012-06-25 Thread Elliot Joel Bernstein
How do I specify a "tight" y-axis, where the plot completely fills the y-axis range, inside the prepanel function? For example, consider the following code: require(lattice) set.seed(12345) x <- 1:1000 y <- cumsum(rnorm(length(x))) prepanel.test <- function(x, y, groups = NULL, subscripts = NUL

Re: [R] How to change the order of columns in a data frame?

2012-02-17 Thread Joel Fürstenberg-Hägg
pos))) > fakedata A X1 X6 X7 X3 X4 X9 X2 X8 1 0 1 6 7 3 4 9 2 8 2 0 1 6 7 3 4 9 2 8 3 0 1 6 7 3 4 9 2 8 > fakedata[, order(pos)] A X1 X2 X3 X4 X6 X7 X8 X9 1 0 1 2 3 4 6 7 8 9 2 0 1 2 3 4 6 7 8 9 3 0 1 2 3 4 6 7 8 9 Sarah 2012/2/17 Joel

Re: [R] How to change the order of columns in a data frame?

2012-02-17 Thread Joel Fürstenberg-Hägg
@ Jim That would work for just a few columns, but I will have around 1000 of them so I need something more generic. best, Joel >>> jim holtman 17-02-2012 14:44 >>> pos2 <- pos1[, c("X", "X1", "X2", "X3", "X4", &quo

Re: [R] How to change the order of columns in a data frame?

2012-02-17 Thread Joel Fürstenberg-Hägg
s(df)) > colnames(df) [1] "Mass" "1""10" "11" "12" "13" "14" "15" "16" "17" "18" "19" "2""20" "3""4"

Re: [R] How to change the order of columns in a data frame?

2012-02-17 Thread Joel Fürstenberg-Hägg
It does not work when using more variables, and my data frames usually contains about thousand columns... Best, Joel > fakedata <- data.frame(A=c(0,0,0), X1=c(1,1,1), X6=c(6,6,6), X7=c(7,7,7), X3=c(3,3,3), X4=c(4,4,4), X9=c(9,9,9), X2=c(2,2,2), X8=c(8,8,8), X5=c(5,5,5)) > fakedata

[R] How to change the order of columns in a data frame?

2012-02-17 Thread Joel Fürstenberg-Hägg
ng to first change the first column name to something without an X and save as a vector. I would then remove the X from each position use the vector for renaming the columns. Then the column 2-n could be ordered, I hope... colnames(pos)[1] <- "Mass" columnNames <- colname

[R] Change names on dataset

2011-11-21 Thread Joel
lot) [1] "REPORT_20" "REPORT_21" "REPORT_22" "REPORT_23" [5] "REPORT_24" "REPORT_25" "REPORT_QREP001" "REPORT_RS010" [9] "REPORT_RS011" "REPORT_RS030" "REPORT_RS090&quo

Re: [R] Normality tests on groups of rows in a data frame, grouped based on content in other columns

2011-10-31 Thread Joel Fürstenberg-Hägg
Hi Dennis, Thanks for your prompt response. Best, Joel >>> Dennis Murphy 30-10-2011 21:11 >>> Hi: Here are a few ways (untested, so caveat emptor): # plyr package library('plyr') ddply(df, .(Plant, Tissue, Gene), summarise, ntest = shapiro.test(ExpressionL

[R] Normality tests on groups of rows in a data frame, grouped based on content in other columns

2011-10-30 Thread Joel Fürstenberg-Hägg
e(A = rnorm(100), B = rlnorm(100)) obj2 <- lapply(DF, shapiro.test) tab2 <- lapply(obj, function(x) c(W = unname(x$statistic), p.value = x$p.value)) tab2 <- data.frame(do.call(rbind, tab2)) printCoefmat(tab2, has.Pvalue = TRUE) Finally, I have found several different

Re: [R] Not saving plot

2011-09-28 Thread Joel
You sir are a hero! It works now thanks to your fast and accurate answer. Thanks for the help. //joel -- View this message in context: http://r.789695.n4.nabble.com/Not-saving-plot-tp3850981p3851331.html Sent from the R help mailing list archive at Nabble.com

Re: [R] Not saving plot

2011-09-28 Thread Joel
Seems to have something todo with barchart. Cuz if I just change it to plot it works. But I want to use barchart due to the graphical advantages so do anyone have an ide. -- View this message in context: http://r.789695.n4.nabble.com/Not-saving-plot-tp3850981p3851255.html Sent from the R help ma

[R] Not saving plot

2011-09-28 Thread Joel
Hi I got a strange problem. I got this code: poc<-function(USER="nana",REGISTRY="nana",...){ require(RMySQL) require(R2HTML) require(lattice) ... (removed the dataprocessing) toReturn=capture.output(HTML(as.title("En liten rapport!"),file="",align

[R] Auto size of plots.

2011-09-27 Thread Joel
argin automatic as long as something is outside its borders? //Joel -- View this message in context: http://r.789695.n4.nabble.com/Auto-size-of-plots-tp3846560p3846560.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.o

[R] R cmd build error -- "running 'zip' failed"

2011-08-30 Thread Pitt, Joel
step.The same build command on the same package completes successfully on my older Vista computer. Since I would prefer to do the builds on the Windows 7 computer I would appreciate any thoughts on why this maybe happening and what I can do to fix the problem. Thanks and bes

Re: [R] Read file line by line

2011-06-16 Thread Joel
Found what was wrong with my code changed: inFile <- file('gwas_data_chr10.gen') to: inFile <- file('gwas_data_chr10.gen','r') Dunno why its important but it is :P -- View this message in context: http://r.789695.n4.nabble.com/Read-file-line-by-line-tp3602349p3602399.html Sent from the R help m

[R] Read file line by line

2011-06-16 Thread Joel
Hi I got a file that looks like this: (i have shorten it alot the real file is over 200k rows long) chr10 rs7909677 101955 A G 0 1 0 1 0 0... chr10 rs2436025 238506 C G 1 0 0 1 0 0... chr10 rs11253562 148946 C T 0 1 0 0 1 ... chr10 rs1105116 230788 G T 0 0 1 0 0 1... chr10 rs4881551 149076 A G 0

[R] splom Tick Location

2011-05-31 Thread Elliot Joel Bernstein
When using the 'splom' function of the 'lattice' packge, is it possible to get all the tick marks in the outer margins of the plot? X <- as.data.frame(matrix(rnorm(1000), 100, 10)) plot(X) ## Tick marks are in the outer margin splom(X) ## Tick marks are inside the on-diagonal panels Thanks. - El

[R] Errors and line numbers in scripts?

2011-05-12 Thread Elliot Joel Bernstein
Is it possible to get R to report the line number of an error when a script is called with source()? I found the following post from 2009, but it's not clear to me if this ever made it into the release version: ws wrote: >* Is there a way to have R return the line number in a script when it errors

Re: [R] Cumsum in Lattice Panel Function

2011-05-11 Thread Elliot Joel Bernstein
That worked perfectly. Thanks! - Elliot On Mon, May 09, 2011 at 12:20:36AM +0530, Deepayan Sarkar wrote: > On Fri, May 6, 2011 at 9:24 PM, Elliot Joel Bernstein > wrote: > > I'm trying to create an xyplot with a "groups" argument where the y-variable > > is t

Re: [R] Loop over a split string

2011-05-11 Thread Joel
Thx Paul My string aint that simple its just that if it works for this simple example it will work for my string therefor I just used the "a b c d e f" syntax. -- View this message in context: http://r.789695.n4.nabble.com/Loop-over-a-split-string-tp3514204p3514252.html Sent from the R help mai

Re: [R] Loop over a split string

2011-05-11 Thread Joel
This is no homework, Im just trying to learn R but sorry for wasting your time you all mighty God of R Uwe Ligges. And if this is not a forum to ask simple questions can you please redirect me to where I might get help? //Joel -- View this message in context: http://r.789695.n4.nabble.com

[R] Loop over a split string

2011-05-11 Thread Joel
Hi I got a string that looks like this: string<-"a b c d e f" And what I wanna do is loop trough all the letters. like for(i in string){ print(i) } would render the result: a b c d e f Ive tried using strsplit but without result, dose anyone know how I could make this ha

[R] Cumsum in Lattice Panel Function

2011-05-06 Thread Elliot Joel Bernstein
nt the result to look the same as if I had done dat$cumvalue <- with(dat, unsplit(lapply(split(value, group), cumsum), group)) xyplot(cumvalue ~ date, data = dat, group = group, type = 'l', grid = TRUE) Thanks for your help. - Elliot Elliot Joel

Re: [R] Alter a line in a file.

2011-05-05 Thread Joel
jholtman wrote: > > a <- readLines(textConnection('setting1="value1" > setting2="value2" > setting3="value3" > setting4="value4"')) > closeAllConnections() > # change values > ac <- sub('setting4="value4"', 'setting4="value5"', a) > writeLines(ac, con='myFile.txt') > Problem is that I dont kno

[R] Alter a line in a file.

2011-05-05 Thread Joel
Hi all R users Ive got a file that contains diffrent settings in the manor of: setting1="value1" setting2="value2" setting3="value3" setting4="value4" . . . What I want to do is open the file and change the value of a specific setting like wanna change setting4="value4" -> setting4="value5" and

[R] Remove all whitespaces

2011-05-05 Thread Joel
Hi I got a string that looks something like this 1 2 3 4 5 6 7 8 9 ... and I want it to be 123456789... So I want to remove all spaces (or whitespaces) from my string. Anyone know a good way of doing this? //Joel -- View this message in context: http://r.789695.n4.nabble.com/Remove-all

[R] Read last line of a file

2011-05-04 Thread Joel
better way of reading the last line of a file and extracting the third column (or word) of that line. Best regards //Joel Damberg -- View this message in context: http://r.789695.n4.nabble.com/Read-last-line-of-a-file-tp3494963p3494963.html Sent from the R help mailing

Re: [R] importing and filtering time series data

2011-05-02 Thread Joel Reymont
My current code looks like this. Anything that can be improved? #! /usr/bin/rscript # install.packages(c('zoo','xts')) library(zoo) library(xts) req_stats <- function(data, type = NA) { if (is.na(type)) csv <- data else # subset of data matching our request type csv <- subset(da

[R] microsecond timestamp support

2011-05-01 Thread Joel Reymont
Does R have support for microseconds in timestamps, e.g. when reading this in "Time","Include","Kind","Duration" 2011-04-01 14:20:36.368324,Y,U,1.03238296509 2011-04-01 14:20:35.342732,Y,C,0.0252721309662 2011-04-01 14:20:34.337209,Y,

[R] importing and filtering time series data

2011-04-29 Thread Joel Reymont
same format as the first column, except it's request duration (latency). I would like to calculate average number of requests per second, mean latency, variance, 5 and 95 percentiles. What is the best way to accomplish this, starting with importing of time series? Th

Re: [R] Scaling Lattice Graphics for tikzDevice

2011-02-19 Thread Elliot Joel Bernstein
On Feb 18, 2011 11:02 PM, "Deepayan Sarkar" wrote: > > On Fri, Feb 18, 2011 at 11:04 PM, Elliot Joel Bernstein > wrote: > > I'm trying to use lattice graphics to produce some small plots for inclusion in a LaTeX file. I want the LaTeX fonts to be used in the plots,

[R] Scaling Lattice Graphics for tikzDevice

2011-02-18 Thread Elliot Joel Bernstein
par.settings = rescale.pars()) dev.off()

Re: [R] saving plots

2011-02-13 Thread Joel
look at ?savePlot It will save the current plot you are viewing. -- View this message in context: http://r.789695.n4.nabble.com/saving-plots-tp3304540p3304548.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mail

[R] Confused

2011-02-07 Thread Joel
Hi Im confused by one thing, and if someone can explain it I would be a happy > rev(strsplit("hej",NULL)) [[1]] [1] "h" "e" "j" > lapply(strsplit("hej",NULL),rev) [[1]] [1] "j" "e" "h" Why dossent the first one work? What is it in R that "fails" so to say that you need to use lapply for it to

[R] RMySQL, cant find MySQL

2011-02-02 Thread Joel
know where it put the different files I would love to know :). Thx for the help Joel -- View this message in context: http://r.789695.n4.nabble.com/RMySQL-cant-find-MySQL-tp3253689p3253689.html Sent from the R help mailing list archive at Nabble.com. _

[R] Hidden environment

2011-02-01 Thread Joel
Hi I wondering if its possible to make a hidden environment for a package, so the user cant see whats in it but the diffrent functions inside the package can use the variables in the environment. Hope you can understand what Im after. Joel -- View this message in context: http://r.789695.n4

[R] Hidden variables

2011-02-01 Thread Joel
just typing TestEnv, but I want this one hidden so that you only can get the "Ans" from the "Key" via the TestFunc. Thx for the help Joel -- View this message in context: http://r.789695.n4.nabble.com/Hidden-variables-tp3251588p3251588.html Sent from the R help mailing list

Re: [R] Rserve

2011-02-01 Thread Joel
Can add that if it dossent split up the processes by default is there anyway I can do it by myself? //Joel -- View this message in context: http://r.789695.n4.nabble.com/Rserve-tp3251032p3251138.html Sent from the R help mailing list archive at Nabble.com

[R] Rserve

2011-02-01 Thread Joel
Hi Im just wondering if anyone knows if Rserve is parallel programed? and if so how, do it send every new connection to a new node or? Thx for the help Joel -- View this message in context: http://r.789695.n4.nabble.com/Rserve-tp3251032p3251032.html Sent from the R help mailing list archive

[R] Generic Functions and Dates

2011-01-31 Thread Elliot Joel Bernstein
I'm trying to write a generic function that calls different methods depending on the structure of the argument, but not the exact type of its contents. For example, the function 'nan2last' below works for a numeric vector but not for a vector of Date objects. Is there any way to make it work on

Re: [R] Accessing MySQL Database in R

2011-01-18 Thread Joel
You could try useing '127.0.0.1' instead of 'localhost' and see if that works. -- View this message in context: http://r.789695.n4.nabble.com/Accessing-MySQL-Database-in-R-tp3221264p3221291.html Sent from the R help mailing list archive at Nabble.com. __

Re: [R] Waaaayy off topic...Statistical methods, pub bias, scientific validity

2011-01-07 Thread Joel Schwartz
quot; or "hope" to find, even if they feel no conscious bias. This is likely one of the reasons observational studies are so frequently overturned by randomized controlled trials. RCT's provide less room for confirmation bias to rear its ugly head. Joel -Original Message-

Re: [R] package survey

2010-12-18 Thread Joel Schwartz
> -Original Message- > From: David Winsemius [mailto:dwinsem...@comcast.net] > Sent: Saturday, December 18, 2010 5:54 PM > To: Joel Schwartz > Cc: r-help@r-project.org > Subject: Re: [R] package survey > > > On Dec 18, 2010, at 8:11 PM, Joel Schwartz wro

Re: [R] package survey

2010-12-18 Thread Joel Schwartz
sier or quicker way to do it from within R but ,if there is, I haven't learned it yet. Joel > -Original Message- > From: r-help-boun...@r-project.org > [mailto:r-help-boun...@r-project.org] On Behalf Of andrija djurovic > Sent: Saturday, December 18, 2010 4:23 PM > To:

Re: [R] pdf package help files

2010-12-18 Thread Joel Schwartz
I think that should have been help.start() Joel > -Original Message- > From: r-help-boun...@r-project.org > [mailto:r-help-boun...@r-project.org] On Behalf Of Spencer Graves > Sent: Saturday, December 18, 2010 1:35 PM > To: Duncan Murdoch > Cc: r-help@r-project.o

[R] Dont print plot on screen

2010-12-08 Thread Joel
Hi is there any command or setting that allows you to do the plot command but it dose not print the plot on screen? So when you are saveing an plot in a function you dont want it to display the plot just save it. -- View this message in context: http://r.789695.n4.nabble.com/Dont-print-plot-on-

[R] Error with Rserv

2010-12-06 Thread Joel
Hi I get this error with Rserve: eval failedeval failed, request status: R parser: syntax erroreval failed, request status: R parser: input incompleteorg.rosuda.REngine.Rserve.RserveException: eval failed at org.rosuda.REngine.Rserve.RConnection.eval(RConnection.java:233) at se.

Re: [R] Help with capture.output

2010-12-06 Thread Joel
Why to you always find the answer as soon as you have posted the Q here :P paste(toReturn, collapse="") But if anyone have a better solution plz share. //Joel -- View this message in context: http://r.789695.n4.nabble.com/Help-with-capture-output-tp3074192p3074199.html Sent from

[R] Help with capture.output

2010-12-06 Thread Joel
\t\tb " [13] "\t\tc " [14] "\t " . . . But what I want is a continues string of the code on just one row: [1] " ..." Anyone know a way I can accomplish this?

Re: [R] Save R2HTML as an object instead of file

2010-12-01 Thread Joel
Or is there any kind of File buffer that dossent save a file on the harddrive? coz this gives me the thing I want but it still saves the file on the HD > .HTML.file=(temp<-file("era.html","w+")) > HTML("NANALALA") > HTML(diag(3)) Then I can just use readLines(temp) to get the result but as

[R] Save R2HTML as an object instead of file

2010-11-30 Thread Joel
Hi Is it possible to instead of getting the HTML code written to a file, get it saved as a string in an object instead? Or is there any kind of package that can do this? //Joel -- View this message in context: http://r.789695.n4.nabble.com/Save-R2HTML-as-an-object-instead-of-file

[R] Aligning Grid Lines with Date Ticks in Trellis Plot

2010-11-24 Thread Elliot Joel Bernstein
I know this issue has been discussed before, but I hoped the advent of pretty.Date would resolve it. In the following code, the first plot produces misaligned vertical grid lines, while in the second plot they are properly aligned. Is there any way to get something along the lines of the first c

Re: [R] Print to the cmd line in a function

2010-11-24 Thread Joel
I do mean function not script, edit it in the forum but for the mailinglist here you have it. -- View this message in context: http://r.789695.n4.nabble.com/Print-to-the-cmd-line-in-a-function-tp3057009p3057025.html Sent from the R help mailing list archive at Nabble.com. __

[R] Print to the cmd line in a script

2010-11-24 Thread Joel
Hi Ive written a script that loopes throu some data, but what I want to do is to print to the cmd line how many times it has looped to the cmd line. And as it is just a counter from 1 this should be quite easy :P but ive tried things like print(counter) and so on but it dossent print anything to

[R] Slow update(insert) on Data.frame

2010-11-23 Thread Joel
Hi When I try to update an number in a large data.frame by its pos It's really slow it take almost a sec to do this and I wonder why and if where is any faster way to update a number in a data.frame ive tried DF$col[POS]<-number DF[xPOS,yPOS]<-number Thx //Joel -- View this

Re: [R] Three-way ANOVA shows me two-way results

2010-11-23 Thread Joel
Marius think you wanted to do a new post and not reply to mine :P -- View this message in context: http://r.789695.n4.nabble.com/the-first-from-SAS-in-R-tp3055417p3055459.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-projec

[R] the first. from SAS in R

2010-11-23 Thread Joel
and so on. so something similar to: if first.a { a$d<-1 }else{ a$d<-0 } This would give me a b c b 1 1 5 1 1 0 2 0 2 0 2 1 2 0 NA 0 2 9 2 0 3 1 3 1 Is there such a function in R or anything similar? thx //Joel -- View this message in context: http://r.789

Re: [R] Prob with merge

2010-11-22 Thread Joel
Thx alot mate. -- View this message in context: http://r.789695.n4.nabble.com/Prob-with-merge-tp3053652p3053675.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-

[R] Prob with merge

2010-11-22 Thread Joel
11 2 2 12 11 3 3 12 NA 4 4 12 11 5 5 12 11 6 8 32 NA So I keep all of the rows from t1 and get an NA in dose slots at the t2 part of the merge. Anyone know how to accomplice this? Thx //Joel -- View this message in context: http://r.789695.n4.nabble.com/Prob-with-merge-tp3053652p3053652.

[R] Multiple Line Plots with xyplot

2010-11-17 Thread Elliot Joel Bernstein
;l') will work, but if Y is large, this notation can get very awkward. Is there a way to do something simpler, along the lines of xyplot(Y ~ x, type='l') Thanks. - Elliot -- Elliot Joel Bernstein, Ph.D. | Research Associate | FDO Partners, LLC 134 Mount Auburn Street | Cambridg

Re: [R] Extract elements that starts with...

2010-11-17 Thread Joel
Thx alot works perfect! //Joel -- View this message in context: http://r.789695.n4.nabble.com/Extract-elements-that-starts-with-tp3046332p3046420.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list

[R] Extract elements that starts with...

2010-11-17 Thread Joel
for your help //Joel -- View this message in context: http://r.789695.n4.nabble.com/Extract-elements-that-starts-with-tp3046332p3046332.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list https://stat.ethz.ch

[R] Number above the bar?

2010-11-11 Thread Joel
Hi I got an barplot, and I would like to have the exact number of the bars just above the bars anyone know how to do this? Sorry for bad English, and I do hope that you understand what im after. //Joel -- View this message in context: http://r.789695.n4.nabble.com/Number-above-the-bar

Re: [R] check RAM usage

2010-11-01 Thread Joel
Maybe should have said that Im working on a Linux unit :) and that command is for Windows only. But thx anyway If you got any other ideas please share. /Joel -- View this message in context: http://r.789695.n4.nabble.com/check-RAM-usage-tp3018753p3021938.html Sent from the R help mailing

[R] check RAM usage

2010-10-29 Thread Joel
Hi Is there any way to check an certain command or procedure's RAM usage? Im after something similar to system.time(bla) that gives me the time the command took to preform but for RAM usage. Hope you understand what i mean. Best regards Joel -- View this message in context: http://r.7

Re: [R] Set value if else...

2010-10-15 Thread Joel
Indeed I was close :) Thx for the fast respond! Have a good day //Joel -- View this message in context: http://r.789695.n4.nabble.com/Set-value-if-else-tp2996667p2996682.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r

[R] Set value if else...

2010-10-15 Thread Joel
: table: Name Age Joel 24 agust 17 maja40 and so on... And what I want to do is a command that gives me VoteRight<-1 if table$age>18 else set VoteRight to 0 Then use cbind or something to add it to the table. so i get Name Age VoteRight Joel 241 agust 170 maja4

Re: [R] Plot table as table

2010-10-13 Thread Joel
Thx for the ideas will try them out. Have a wonderful day //Joel -- View this message in context: http://r.789695.n4.nabble.com/Plot-table-as-table-tp2993270p2993344.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r

Re: [R] Plot table as table

2010-10-13 Thread Joel
It should look something like this (not at all relevant except the look) http://r.789695.n4.nabble.com/file/n2993297/tableR19.jpg -- View this message in context: http://r.789695.n4.nabble.com/Plot-table-as-table-tp2993270p2993297.html Sent from the R help mailing list archive at Nabble.com.

[R] Plot table as table

2010-10-13 Thread Joel
The subject says it all :). So I have a table and I want it do be ploted like a table so to say and cant find any function/package that dose it for me. Anyone know of one? //Joel -- View this message in context: http://r.789695.n4.nabble.com/Plot-table-as-table-tp2993270p2993270.html Sent

Re: [R] Rpart query

2010-10-12 Thread Joel
Or now Im pretty sure of it as when I took your dataset and used the magic way of ctrl-c ctrl-v to make some more observations I get a decision tree. -- View this message in context: http://r.789695.n4.nabble.com/Rpart-query-tp2991198p2991469.html Sent from the R help mailing list archive at Nab

Re: [R] Rpart query

2010-10-12 Thread Joel
My guess is that you have two few observations is your dataset for rpart to determin a "safe" dissision. -- View this message in context: http://r.789695.n4.nabble.com/Rpart-query-tp2991198p2991461.html Sent from the R help mailing list archive at Nabble.com. ___

Re: [R] Rpart query

2010-10-12 Thread Joel
Dont know if it will work but you can try ctree from the party package require(party) bla <- ctree(Class ~ Outlook + Temp + Humidity + Windy, data=dataframe) plot(bla) //Joel -- View this message in context: http://r.789695.n4.nabble.com/Rpart-query-tp2991198p2991417.html Sent from th

[R] Rserve config

2010-10-07 Thread Joel
Dont know if this is the right forum for this but here we go. Trying to figure out where I should put the Rserv.conf file in windows, anyone have any idea? //Joel -- View this message in context: http://r.789695.n4.nabble.com/Rserve-config-tp2966394p2966394.html Sent from the R help mailing

Re: [R] Adding two data.frames.

2010-09-29 Thread Joel
Thx for the help works very well for me. -- View this message in context: http://r.789695.n4.nabble.com/Adding-two-data-frames-tp2718771p2718901.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list https:/

[R] Adding two data.frames.

2010-09-29 Thread Joel
8 9 9 8 7 6 5 4 3 2 1 Thx for your help //Joel -- View this message in context: http://r.789695.n4.nabble.com/Adding-two-data-frames-tp2718771p2718771.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list

  1   2   >