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

2018-10-23 Thread Joel Maxuel
s I 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, but mo

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 be linguistic r

Re: [R-es] Workspace en Rstudio

2017-06-08 Thread joel ibañez flores
respuesta y comentarme que es posible en la versión estándar!!! Acabo de descargar la versión ASReml v3.0 standard, te comentare como me va!! Joel Ibanez El 8 de junio de 2017, 16:38, Javier Marcuzzi < javier.ruben.marcu...@gmail.com> escribió: > Estimado Joel Ibañez Flores > > > &

[R-es] Workspace en Rstudio

2017-06-08 Thread joel ibañez flores
2Mb), pero no lo logro aumentar. Alguien ha tenido un problema similar o sabe como aumentar el workspace en Rstudio? Saludos! Joel Ibanez [[alternative HTML version deleted]] ___ R-help-es mailing list R-help-es@r-project.org https://stat.ethz

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
e 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
be 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
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 welcome. I hope you find this helpful! Regards ---

[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

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

2013-09-12 Thread Allen, Joel
', '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='Taxa', .fun=transform, Class=find.class(Taxa)) Joel From: Beaulieu, Jake Sent: Thursday, September 12, 2013 12:06 PM To: r-help@r

[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 Prokopchuk

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 ruipbarra...@sapo.pt: Hello, Try corpus.df[, c(mph, mgl, eng)] Hope this helps, Rui Barradas Em 01-05-2013 21:04, Joel Prokopchuk

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

2013-01-14 Thread Joel Pulliam
runs, but I'm indexing it incorrectly and I can't figure out why. I'll sleep on it tonight and probably figure it out, but I can't help thinking that there's a much easier way to parse this data. Help! Please! joel [[alternative HTML version deleted

Re: [R] Repeated Aggregation with data.table

2012-09-21 Thread Elliot Joel Bernstein
)), 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, Elliot Joel Bernstein elliot.bernst

Re: [R] Repeated Aggregation with data.table

2012-09-11 Thread Elliot Joel Bernstein
(). In the example: flist - expression( 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 Message - From: Elliot Joel Bernstein

[R] Repeated Aggregation with data.table

2012-08-07 Thread Elliot Joel Bernstein
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...@fdopartners.com __ R-help@r-project.org mailing list

Re: [R] Thinning Lattice Plot

2012-07-31 Thread Elliot Joel Bernstein
Joel Bernstein elliot.bernst...@fdopartners.com wrote: Is there an easy way to thin a lattice plot? I often create plots from large data sets, and use the pdf command to save them to a file, but the resulting files can be huge, because every point in the underlying dataset is rendered

[R] Error Installing Package with Dependency on Matrix

2012-07-31 Thread Elliot Joel Bernstein
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 Bernstein, Ph.D. | Research Associate | FDO Partners, LLC 134 Mount Auburn Street | Cambridge, MA | 02138 Phone: (617

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

2012-07-31 Thread Elliot Joel Bernstein
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 consisting only of a DESCRIPTION file that specifies the dependence on Matrix, a NAMESPACE file

Re: [R] Thinning Lattice Plot

2012-07-31 Thread Elliot Joel Bernstein
, 2012 at 6:43 PM, Elliot Joel Bernstein elliot.bernst...@fdopartners.com 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

[R] Thinning Lattice Plot

2012-07-30 Thread Elliot Joel Bernstein
. 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 Bernstein, Ph.D. | Research Associate | FDO Partners, LLC

[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] 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 = NULL,

[R] combineLimits and Dates

2012-06-25 Thread Elliot Joel Bernstein
) 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 'combineLimits'. How do I keep them as date labels? Thanks. - Elliot -- Elliot Joel Bernstein, Ph.D. | Research Associate | FDO

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

2012-02-17 Thread Joel Fürstenberg-Hägg
- colnames(pos) Does any of you have an idea how to do this, or perhaps there is a smoother solution? Would it be easier to solve it if the contents of the first column were extracted and used as row names instead? Best regards, Joel [[alternative HTML version deleted

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 A X1 X6 X7

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

2012-02-17 Thread Joel Fürstenberg-Hägg
] Mass 110 11 12 13 14 15 16 17 18 19 220 34567 89 df - df[,colnames(df)] colnames(df) [1] Mass 110 11 12 13 14 15 16 17 18 19 220 34567 89 Best, Joel Alfredo Alessandrini caveneb

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 jholt...@gmail.com 17-02-2012 14:44 pos2 - pos1[, c(X, X1, X2, X3, X4, X5, X6, X7, X8, X9, X10, X11, X12, X13, X14, X15, X16, X17, X18, X19, X20

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

2012-02-17 Thread Joel Fürstenberg-Hägg
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 Fürstenberg-Hägg jo...@life.ku.dk: It does not work when using

[R] Change names on dataset

2011-11-21 Thread Joel
REPORT_RS141 As you can see I got the number 7 instead of the text and I dont know why. Can anyone spot the error? //joel -- View this message in context: http://r.789695.n4.nabble.com/Change-names-on-dataset-tp4091154p4091154.html Sent from the R help mailing list archive at Nabble.com

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 djmu...@gmail.com 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(ExpressionLevel)) # data.table

[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
one(s) should I choose? As far as I can see in the help files they only differ in the minimum number of samples required. Thanks in advance! Kind regards, Joel [[alternative HTML version deleted]] __ R-help@r-project.org mailing list

[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=center)) fileDir-paste(/home/joel/tmpR/rikssvikt/,USER

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

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

[R] Auto size of plots.

2011-09-27 Thread Joel
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.org mailing list

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

2011-08-30 Thread Pitt, Joel
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 best regards, Joel Pitt

[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

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

[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. -

[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

[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 happen? //Joel -- View

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

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

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 elliot.bernst...@fdopartners.com wrote: I'm trying to create an xyplot with a groups argument where the y-variable is the cumsum

[R] Cumsum in Lattice Panel Function

2011-05-06 Thread Elliot Joel Bernstein
, 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 Bernstein, Ph.D. | Research Associate | FDO Partners, LLC 134 Mount Auburn Street | Cambridge, MA

[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] 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 then save

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 know the value on all the

[R] Read last line of a file

2011-05-04 Thread Joel
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 list archive at Nabble.com

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 -

[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,0.00522899627686 Thanks, Joel

[R] importing and filtering time series data

2011-04-29 Thread Joel Reymont
, Joel -- - for hire: mac osx device driver ninja, kernel extensions and usb drivers -++--- http://wagerlabs.com | @wagerlabs | http://www.linkedin.com

Re: [R] Scaling Lattice Graphics for tikzDevice

2011-02-19 Thread Elliot Joel Bernstein
On Feb 18, 2011 11:02 PM, Deepayan Sarkar deepayan.sar...@gmail.com wrote: On Fri, Feb 18, 2011 at 11:04 PM, Elliot Joel Bernstein elliot.bernst...@fdopartners.com wrote: I'm trying to use lattice graphics to produce some small plots for inclusion in a LaTeX file. I want the LaTeX fonts

[R] Scaling Lattice Graphics for tikzDevice

2011-02-18 Thread Elliot Joel Bernstein
()) dev.off() ## -- ## ## END R CODE ## ## -- ## Thanks. - Elliot - Elliot Joel Bernstein, Ph.D. | Research Associate | FDO Partners, LLC 134 Mount

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

[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 get the correct

[R] RMySQL, cant find MySQL

2011-02-02 Thread Joel
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-help@r

[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

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] Hidden variables

2011-02-01 Thread Joel
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 archive at Nabble.com. __ R-help@r-project.org mailing list https

[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] 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
. 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- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org

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.org; eric Subject: Re: [R

Re: [R] package survey

2010-12-18 Thread Joel Schwartz
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: r-help@r-project.org Subject: [R] package survey Hi R users, could someone

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 wrote: and does anyone know

[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:

[R] Help with capture.output

2010-12-06 Thread Joel
=captiondataframe/caption ... Anyone know a way I can accomplish this? /Joel -- View this message in context: http://r.789695.n4.nabble.com/Help-with-capture-output-tp3074192p3074192.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r

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 the R help

[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

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 I said I

[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] 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

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] 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

[R] the first. from SAS in R

2010-11-23 Thread Joel
in a 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.789695.n4

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] 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 message in context

[R] Prob with merge

2010-11-22 Thread Joel
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.html Sent from the R help mailing

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

[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

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] Multiple Line Plots with xyplot

2010-11-17 Thread Elliot Joel Bernstein
') 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 | Cambridge, MA | 02138 Phone: (617

[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.789695

[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$age18 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 maja401

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] 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] 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.

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] 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 the R help

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
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

[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

  1   2   >