Re: [R] Extracting sentences with combinations of target words/terms from cancer patient text medical records

2017-07-12 Thread Paul Miller via R-help
Hi Bert, Thanks for your reply. It appears that I didn't replace the variable name "sampletxt" with the argument "x" in my function. I've corrected that and now my code seems to be working fine. Paul ________ From: Bert Gunter Cc: R-help

Re: [R] Problem for installing cbPlatte on R Version 3.4.1

2017-07-12 Thread John Kane via R-help
What is cbplatte? Where do we find it? On Wednesday, July 12, 2017, 6:20:38 AM EDT, Shanu Singh wrote: Please solve the problem. on which R Version works cbplatte? Regards Shanu     [[alternative HTML version deleted]] __ R-help@r-project.org

Re: [R] Extracting sentences with combinations of target words/terms from cancer patient text medical records

2017-07-13 Thread Paul Miller via R-help
[2] ": " [3] "1: This sentence contains the word

[R] select from data frame

2017-07-15 Thread Andras Farkas via R-help
rame the goal is to extract the value of 3 from the ID column based on the logic that the ID=3 in the data frame has NO row that would pair 3 with either "B", AND/OR "C" in the samples column... much appreciate your help... thanks, Andras ______

Re: [R] readLines without skipNul=TRUE causes crash

2017-07-15 Thread William Dunlap via R-help
la3/show_bug.cgi?id=17311 hopefully i >>> am >>> not doing something remarkably stupid. the text file itself is 4GB so >>> cannot upload it to bugzilla, and from the R_AllocStringBugger error in >>> the >>> previous message, i think most or all of it ne

[R] Arranging column data to create plots

2017-07-16 Thread Michael Reed via R-help
data becomes jumbled. Thoughts Thanks for your help Michael E. Reed ______ 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/posting-guide

Re: [R] select from data frame

2017-07-16 Thread Andras Farkas via R-help
> > > Bert Gunter > > "The trouble with having an open mind is that people keep coming along > and sticking things into it." > -- Opus (aka Berkeley Breathed in his "Bloom County" comic strip ) > > > On Sat, Jul 15, 2017 at 8:54 AM, David Winsemius &g

Re: [R] readLines without skipNul=TRUE causes crash

2017-07-17 Thread William Dunlap via R-help
>>> dat <- readLines( fn1 ) >>> length( dat ) >>> ## [1] 4148721 >>> >>> No segfault occurs. >>> >>> On Sat, 15 Jul 2017, Anthony Damico wrote: >>> >>> hi, i realized that the segfault happens on the text file in a new

Re: [R] A problem with order() function in R

2017-07-18 Thread William Dunlap via R-help
is order(order(x)).) Bill Dunlap TIBCO Software wdunlap tibco.com On Mon, Jul 17, 2017 at 7:58 PM, Jesadaporn Pupantragul < jp.beck...@gmail.com> wrote: > Hello r-help > I am learning R and use R-studio. > I create vector x <- c(19,17,23,11) and use function order(x). > The r

[R] axis() after image.plot() does not work except if points() is inserted between

2017-07-21 Thread Marc Girondot via R-help
is(1, at=seq(from=0, to=1, length=nrow(D)), labels=0:2, cex.axis=0.5) axis(2, at=seq(from=0, to=1, length=ncol(D)), labels=0:3, las=1, cex.axis=0.5) identical(p1, p2) __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.eth

Re: [R] axis() after image.plot() does not work except if points() is inserted between

2017-07-24 Thread Marc Girondot via R-help
h=nrow(D)), labels=0:2, cex.axis=0.5) axis(2, at=seq(from=0, to=1, length=ncol(D)), labels=0:3, las=1, cex.axis=0.5) identical(p1, p2) Le 24/07/2017 à 05:17, Jim Lemon a écrit : Hi marc, Try: par("usr") before and after the call to points and see if it changes. Jim On Sat, Jul

Re: [R] axis() after image.plot() does not work except if points() is inserted between

2017-07-26 Thread Marc Girondot via R-help
w(D)), labels=0:2, cex.axis=0.5) axis(2, at=seq(from=0, to=1, length=ncol(D)), labels=0:3, las=1, cex.axis=0.5) # check that par("plt") is correctly setup par()$plt ### [1] 0.08844944 0.86408989 0.14253275 0.88541485 I think that it will remain a mystery ! At least the trick with points

[R] fill out a PDF form in R

2017-07-26 Thread Elahe chalabi via R-help
Elahe ______ 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/posting-guide.html and provide commented, minimal, self-contained, reproducible code.

[R] problem in run cmsaf script

2017-07-30 Thread Nooshin Ahmadi via R-help
i, envir) : NAs introduced by coercion I dont know how to solve this problem.Can you help me? I attached this script. Best Regards Nooshin ______ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help

Re: [R] [FORGED] Re: axis() after image.plot() does not work except if points() is inserted between

2017-07-30 Thread Marc Girondot via R-help
or axis(). Thanks a lot. Marc ______ 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/posting-guide.html and provide commented, minimal

Re: [R] How (in general) take out data sets (available in the packages)?

2017-07-31 Thread Ted Beginner via R-help
tps://github.com/tidyverse/readxl >https://cran.r-project.org/web/packages/readxl/index.html [[alternative HTML version deleted]] ______ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-h

[R] data frame question

2017-08-06 Thread Andras Farkas via R-help
t that the number of rows and the number of time 0 shows up in a row in column 'b' may vary... much appreciate your thoughts.. Andras ______ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/lis

Re: [R] data frame question

2017-08-06 Thread Andras Farkas via R-help
2 2 2 2 2 2 2 2 > > > >Bert Gunter > >"The trouble with having an open mind is that people keep coming along >and sticking things into it." >-- Opus (aka Berkeley Breathed in his "Bloom County" comic strip ) > > >On Sun, Aug 6, 2017 at 4:10 AM, Andr

Re: [R] Bug?

2017-08-08 Thread William Dunlap via R-help
graphics grDevices utils datasets methods base > > > > Thank you, > Ramiro > > > > Ramiro Barrantes Ph.D. > Precision Bioassay, Inc. > 431 Pine St., Suite 110 > Burlington, VT 05401 > 802 865 0155 > 802 861 2365 FAX > www.precisionbioassay.co

Re: [R] generating cran package list matching R minor version

2017-08-09 Thread William Dunlap via R-help
ge.html > #(current packages by fork of R) > 3) https://cran.r-project.org/src/contrib/Archive # Package Archive > > > > In case addressing the R-help list is addressing wrong list, any pointer > is appreciated. > > > > Best regards, > > > > Chri

Re: [R] Fill in empty spaces modified

2017-08-09 Thread William Dunlap via R-help
; My modified data frame: > val <- c(1,2,3,4,5,6,7,8) > nam <- c("mandy","", "John","","","","Zara","") > df1 <- data.frame(nam,val) > > nam val > 1 mandy 1 > 2 2 >

[R] Revolutions blog: July 2017 roundup

2017-08-11 Thread David Smith via R-help
Since 2008, Microsoft (formerly Revolution Analytics) staff and guests have written about R every weekday at the Revolutions blog (http://blog.revolutionanalytics.com) and every month I post a summary of articles from the previous month of particular interest to readers of r-help. In case you

Re: [R] EOF within quoted string

2017-08-11 Thread William Dunlap via R-help
and concatenated all the text and > finally got it. > > munged <- data[, unlist(lapply(data, function(x) !all(is.na(x] > munged <- munged[-1,] > munged$text <- apply( munged[ , c(3:ncol(munged)) ] , 1 , paste0 , > collapse = " ") > > munged <- munged[,c

Re: [R] recursive lapply and keeping track of data

2017-08-14 Thread William Dunlap via R-help
t.level <- function(data, depth) { > if (depth == 2) { > return(leaf.func(data)) > } else { > res <- lapply(data, visit.level, depth + 1) > names(res) <- names(data) > return(res) > } > } >

Re: [R] Shiny install failed

2017-08-15 Thread William Dunlap via R-help
1/R/R-34~1.1/bin/x64/R" CMD INSTALL -l > >> "C:\Users\Zack\Documents\R\win-library\3.4" > >> C:\Users\Zack\AppData\Local\Temp\RtmpYhM8h8/downloaded_packa > >> ges/shiny_1.0.4.tar.gz' > >> had status 65535 > >> Warning in install.packages : > >> installation of pa

Re: [R] How to convert .Rdata file into .csv or something else?

2017-08-17 Thread John Kane via R-help
books. I would appreciate it if someone would help me. Yohei Tanaka (Tohoku University)     [[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 re

Re: [R] How to install Tidyverse on Ubuntu 17.04? Getting gcc errors for -fstack-protector-strong and -Wdate-time

2017-08-17 Thread John Kane via R-help
No idea what the problem is but I am running Ubuntu 17.04 with R 3.4.1 and tidyverse seems to be working well. On Thursday, August 17, 2017, 7:10:42 AM EDT, Jocelyn Ireson-Paine via R-help wrote: I'm running Ubuntu 17.04 and R 3.4.1. I installed the latter yesterday, so I presume it&

[R] bquote question

2017-08-18 Thread Andras Farkas via R-help
e letter 'b'... In addition, the spacing ("\n ") at the end of the mtext line also does not seem to get recognized any thoughts on what I may be doing wrong? much appreciate your help... Andras __ R-help@r-project.org mailing li

Re: [R] Update data in text file with data in dataframe

2017-08-19 Thread John Kane via R-help
-reproducible-example or Reproducibility · Advanced R.for some susggestions on how to form a good question for R-help. Some of the details mentioned in those links can be of great help to R-help readers in trying to suggest approaches. | | | | Reproducibility · Advanced R. | | | We

[R] R & RStudio hardware Utilization

2017-08-20 Thread Vasilis Bardakos via R-help
vance,William [[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/posting-guide.htm

Re: [R] Help Required in looping visuals

2017-08-21 Thread John Kane via R-help
nced R. | | | On Monday, August 21, 2017, 4:00:13 AM EDT, Venkateswara Reddy Marella (Infosys Ltd) via R-help wrote: Hi Team , I have a requirement of building set of panels in which each panel has multiple visuals based on single set of dataset values and this thing is repeated

Re: [R] How to benchmark speed of load/readRDS correctly

2017-08-22 Thread William Dunlap via R-help
Pollution > > Federal Department of Economic Affairs, > Education and Research EAER > Agroscope > Research Division, Agroecology and Environment > > Reckenholzstrasse 191, CH-8046 Zürich > Phone +41 58 468 75 11 > Fax +41 58 468 72 01 > raphael.fel...@agroscope.admin.ch<

Re: [R] How to benchmark speed of load/readRDS correctly

2017-08-22 Thread William Dunlap via R-help
y help or comments. >> >> Kind regards >> >> Raphael >> >> ---- >> Raphael Felber, PhD >> Scientific Officer, Climate & Air Pollution >> >> Federal Department of Eco

Re: [R] Rounding of problem with sum command in R

2017-08-22 Thread John Kane via R-help
e since it effect my code further >> Can anyone suggest how can i avoid this. >> >> Thanks & Regards >> Niharika Singhal >> >>        [[alternative HTML version deleted]] >> >> __ >> R-help@r-project.org

[R] Data too big for a specific library package to handle

2017-08-23 Thread Kevin Parent via R-help
me University Vice Chairman of Education and Training, Korea Toastmasters http://grou.ps/koreatoastmasters Schoolmasters, http://grou.ps/schoolmasters/home [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE

[R] Pull data from Tally 9.1 to R studio

2017-08-23 Thread jagan krishnan via R-help
Regards,Jagannathan Krishnan Sent from Yahoo Mail on Android [[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

Re: [R] Rounding of problem with sum command in R

2017-08-23 Thread Marc Girondot via R-help
1.0026 I do not want to round of my value since it effect my code further Can anyone suggest how can i avoid this. Thanks & Regards Niharika Singhal [[alternative HTML version deleted]] ______ R-help@r-project.org mailing list -- To UNSUBSC

[R] cross validation in random forest rfcv functin

2017-08-23 Thread Elahe chalabi via R-help
er","Control","Control"..: So basically trainy should be data$Group but how about trainx? Could anyone help me in this? Thanks for any help! Elahe __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.eth

[R] cross validation in random forest using rfcv functin

2017-08-23 Thread Elahe chalabi via R-help
;Alzheimer","Control","Control"..: So basically trainy should be data$Group but how about trainx? Could anyone help me in this? Thanks for any help! Elahe __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see

Re: [R] Comparing 2 dale columns

2017-08-23 Thread William Dunlap via R-help
l Dunlap TIBCO Software wdunlap tibco.com On Wed, Aug 23, 2017 at 9:09 AM, Patrick Casimir wrote: > > Thanks. But when I apply your codes I get all NA instead of TRUE and FALSE > > ____ > From: PIKAL Petr > Sent: Wednesday, August 23, 2017 11:20:00

[R] cross validation in random forest using rfcv functin

2017-08-23 Thread Elahe chalabi via R-help
Any responds?! On Wednesday, August 23, 2017 5:50 AM, Elahe chalabi via R-help wrote: Hi all, I would like to do cross validation in random forest using rfcv function. As the documentation for this package says: rfcv(trainx, trainy, cv.fold=5, scale="log", step=0.5, mtry=

Re: [R] Flummoxed by gsub().

2017-08-23 Thread William Dunlap via R-help
acters enclosed between [ and ] >> which matches any single character in that list; "... (at the end of >> the above section) >> >> "For example, [[:alnum:]] means [0-9A-Za-z] "... >> >> Note the doubled brackets. So seems pretty explicit to me. >

Re: [R] Pull data from Tally 9.1 to R studio

2017-08-24 Thread John Kane via R-help
On Thursday, August 24, 2017, 1:50:13 AM EDT, David Winsemius wrote: > On Aug 22, 2017, at 11:31 PM, jagan krishnan via R-help > wrote: > > Hi all, > This is Jagan.i have been provided a task of analyzing sales data of a > company in R programming...Just wanted to k

Re: [R] Pull data from Tally 9.1 to R studio

2017-08-24 Thread John Kane via R-help
Kane wrote: On Thursday, August 24, 2017, 1:50:13 AM EDT, David Winsemius wrote: > On Aug 22, 2017, at 11:31 PM, jagan krishnan via R-help > wrote: > > Hi all, > This is Jagan.i have been provided a task of analyzing sales data of a > company in R programming...Just

Re: [R] functions from 'base' package are not accessible

2017-08-24 Thread William Dunlap via R-help
dimnames(x), useNames = useNames) > else wh > } > > > > base (that contains which function) package is installed. R version is > 3.4.1 and system is Win8 > > Where should I look to understand how to fix the problem? > > Thank you in advance! > Eug

Re: [R] functions from 'base' package are not accessible

2017-08-24 Thread William Dunlap via R-help
f (arr.ind && !is.null(d <- dim(x))) >> arrayInd(wh, d, dimnames(x), useNames = useNames) >> else wh >> } >> >> >> >> base (that contains which function) package is installed. R version is >> 3.4.1 and system is Win8 >

Re: [R] Scaling Matrix in qda() function in MASS package

2017-08-24 Thread William Dunlap via R-help
00 > 0.000-2.1879157 > > > > > > , , genuine > > > > > > 1 2 3 > 4 > > > 5 6 > > > Length 2.592911 -1.169164 0.6105339 -0.3614352 -0.2520496 -0.528

Re: [R] Pull data from Tally 9.1 to R studio

2017-08-25 Thread jagan krishnan via R-help
Hi, Inline below. On Aug 24, 2017, at 5:22 AM, John Kane via R-help wrote: IIt might help to read the material at one or both of these links http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example In this case, had Jagan spent about 30 seconds Googling for the a

[R] Connect to postgreSQL

2017-08-26 Thread Ira Sharenow via R-help
ostgresqlNewConnection(drv, ...) : RS-DBI driver: (could not connect Ira@localhost:5432 on dbname "pg_dump-sfpg-2017-08-18": FATAL:password authentication failed for user "Ira" ) Thanks. Ira [[alternative HTML version deleted]] ____

Re: [R] Connect to postgreSQL

2017-08-26 Thread Ira Sharenow via R-help
do know how to write SQL queries, having used SQL Server. On 8/26/2017 9:47 PM, John wrote: > On Sat, 26 Aug 2017 18:35:31 -0700 > Ira Sharenow via R-help wrote: > > Can you access the postgres database through psql or some other route? > Also, do you require a password to acce

[R] help with read.csv() for files with different number of columns

2017-08-27 Thread Fix Ace via R-help
How does this happen? How should I fix it to make one record into one two in R object? Thank you very much! Ace [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://sta

Re: [R] help with read.csv() for files with different number of columns

2017-08-27 Thread Fix Ace via R-help
ing "fill=TRUE" you can get a data frame with zero length strings where values are missing in the input file. Jim On Mon, Aug 28, 2017 at 6:25 AM, Fix Ace via R-help wrote: > Dear R community, > I have a text file (test.txt) with different number of columns: > 0610007

Re: [R] help with read.csv() for files with different number of columns

2017-08-29 Thread Fix Ace via R-help
seems to have spaces as separators, > > testdf<-read.table("test.txt",header=FALSE,fill=TRUE, > col.names=paste("V",1:14,sep=""),stringsAsFactors=FALSE) > > By specifying the number of columns with "col.names" and using > "fill=

Re: [R] Block comment?

2017-09-02 Thread William Dunlap via R-help
t; > >> It would make documentation more easily manageable and lucid. > >> Is there considerable need for this. > >> > >> Please, comment on this. > >> How about R core? > >> > >> Christian > > > > > > __

Re: [R] Strange lazy evaluation of default arguments

2017-09-02 Thread William Dunlap via R-help
ld 9200) >> >> Matrix products: default >> >> locale: >> [1] LC_COLLATE=German_Germany.1252 LC_CTYPE=German_Germany.1252 >> LC_MONETARY=German_Germany.1252 >> [4] LC_NUMERIC=CLC_TIME=German_Germany.1252 >> >> attached base packages

[R] Help

2017-09-06 Thread manoj oak via R-help
.  with best regardsManoj Oak   [[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/posting

Re: [R] withr::set_makevars

2017-09-06 Thread William Dunlap via R-help
osition of the U.S. > Government or NOAA." > ** > Roy Mendelssohn > Supervisory Operations Research Analyst > NOAA/NMFS > Environmental Research Division > Southwest Fisheries Science Center > ***Note new street address*** > 110 McAllister Way > Santa Cruz, CA 9

[R] Revolutions blog: August 2017 roundup

2017-09-07 Thread David Smith via R-help
Since 2008, Microsoft (formerly Revolution Analytics) staff and guests have written about R every weekday at the Revolutions blog (http://blog.revolutionanalytics.com) and every month I post a summary of articles from the previous month of particular interest to readers of r-help. In case you

Re: [R] Optimize code to read text-file with digits

2017-09-08 Thread William Dunlap via R-help
> lines[i] <- sub("[^ ]+ +","",lines[i]) > > # remove spaces > lines[i] <- gsub(" ","",lines[i]) > > # split the characters and convert them into numbers > numbers <- c(numbers,as.numeric(unlist(strsplit(lines[i

[R] error with subtree()

2017-09-09 Thread Fix Ace via R-help
e what happened here? And what should I do with it? Thank you very much! Ace [[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 p

[R] show 0 at y axis in xyplot lattice

2017-09-11 Thread Maria Lathouri via R-help
5.59799624, 22.0700594, 41.60901086, 45.60219163, 77.99892514, 26.94058693, 40.95851559, 22.96901479, 20.17470754, 40.60564483, 25.07031719, 30.42278408, 51.79389664, 23.94367855, 24.4693001, 55.5185782, 22.03829768, 33.23577364), lower.zn = c(13.91220671, 6.964933684, 11.73910885, 10.690

[R] Σχετ: show 0 at y axis in xyplot lattice

2017-09-11 Thread Maria Lathouri via R-help
017, ο/η Bert Gunter έγραψε: 1. Not reproducible since my.settings, dat_key, sdate not provided. 2. Why did you not try something like ylim = c(-5,80)  ? Cheers, Bert Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it.&quo

[R] Σχετ: show 0 at y axis in xyplot lattice

2017-09-12 Thread Maria Lathouri via R-help
d", "black", "red"), fill=c("red", "black", "red"), #      key=dat_key, #      scales = list(x = list(at = sdate, labels = format(sdate, "%b-%y"))), xlab="Date",       panel = function(x, y, ...) {         panel.grid(h =

Re: [R] please let me unsubscribe or remove me from mailing list.

2017-09-12 Thread Marc Girondot via R-help
Le 12/09/2017 à 16:57, Where's YK a écrit : Thank you. from cabi...@gmail.com Google R-help@r-project.org unsubscribe bring you to: https://www.r-project.org/mail.html Sincerely Marc ______ R-help@r-project.org mailing list -- To UNSUBSCRIB

Re: [R] Print All Warnings that Occurr in All Parallel Nodes

2017-09-14 Thread William Dunlap via R-help
n_max = Inf, > guess_max = min(1000, n_max), > progress = FALSE)) > } > > # C.2) parallel Package: Environment Settings > > no_cores <- detectCores() > > c1 <- makeCluster(no_cores) > > invisible(clusterEvalQ(c1, library(readr))) >

Re: [R] Shiny App inside R Package

2017-09-17 Thread Marc Girondot via R-help
tput$hist <- renderPlot( hist(x, breaks = input$n, col = "skyblue", border = "white") ) } ) } myApp(rnorm(100)) Regards, Axel. [[alternative HTML version deleted]] ______ R-help@r-project.or

Re: [R] help matching rows of a data frame

2017-09-18 Thread William Dunlap via R-help
ast: the data set will have < 100 > elements. Since this is inside the survival package, and that package is > on the 'recommended' list, I can't depend on any package outside the > recommended list. > > Terry T. > > _

[R] Network meta-analysis help

2017-09-19 Thread Sherief Ghozy via R-help
ssfully. Can you help me in this matter ? or even guide me where to find help ? I really need to finish this analysis. Sorry for any inconvenience. Thanks in advance. ______ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.e

Re: [R] pheatmap: incomplete figure

2017-09-20 Thread Fix Ace via R-help
Thank you so much for the reply! I thought the file would automatically adjust accordingly. But I just checked and found pheatmap does has width as parameter! Ace On Monday, September 18, 2017 3:00 PM, David Winsemius wrote: > On Sep 18, 2017, at 9:26 AM, Fix Ace via R-help wr

Re: [R] List of occuring values

2017-09-21 Thread William Dunlap via R-help
w about the occuring values? > How can I retrieve a list of occuring values? > How can I retrieve a table with both the list of occuring values and their > respective frequencies? > Thank you in advance, > Yours, Ferri > > __ > R-help@r-p

Re: [R] List of occuring values

2017-09-21 Thread William Dunlap via R-help
alues)) > factorValues Freq > 1Small1 > 2 Medium0 > 3Large3 > 4 XLarge0 > > > Bill Dunlap > TIBCO Software > wdunlap tibco.com > > On Thu, Sep 21, 2017 at 6:01 AM, Ferri Leberl wrote: > >> >> Dea

[R] gsDesign Pocock & OBF boundary

2017-09-22 Thread array chip via R-help
to use Lan-Demet’s error spendingfunction approximations? Thank you, [[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

Re: [R] gsDesign Pocock & OBF boundary

2017-09-23 Thread array chip via R-help
her the above analysis is still valid? Or for unequal spacing, I have to use Lan-Demet’s error spending function approximations? Thank you, From: Berend Hasselman To: array chip Cc: R-help Mailing List Sent: Friday, September 22, 2017 11:46 PM Subject: Re: [R] gsDesign Pocock & OBF b

Re: [R] gsDesign Pocock & OBF boundary

2017-09-24 Thread array chip via R-help
From: Jeff Newmiller oject.org>; Berend Hasselman Cc: R-help Mailing List Sent: Sunday, September 24, 2017 12:41 AM Subject: Re: [R] gsDesign Pocock & OBF boundary Still failed. The first secret is in your email program settings, to use Plain Text format (at least

[R] build a SpatialLines object from a list

2017-09-25 Thread Ashraf Afana via R-help
function(x){     for (i in 1:length(x)) {    tt[[i]] <- x[i]; tt[[i]]  = Line(tt[[i]]); tt[[i]]  = Lines(list(tt[[i]] ), 'i')    tt1 = SpatialLines(list(tt[[i]]))           }return(tt1)  } Ashraf, [[alternative HTML version deleted]] ____

[R] Fw: passing different sample sizes

2017-09-25 Thread Farnoosh Sheikhi via R-help
Best,Nooshi [[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/posting-guide.

Re: [R] build a SpatialLines object from a list

2017-09-26 Thread Ashraf Afana via R-help
0 PM, Ashraf Afana via R-help wrote: Hi all,I'm trying to build a SpatialLines object from a list that contains 124 river segments. Each segment in the list contains the x,y coordinates. I'm using the following code to create the SpatialLines object, but it just retrieves one se

[R] MSBVAR Package

2017-09-27 Thread ah a via R-help
know how to run Markov Switching Var Model in R. Thank you very much in advance for your help. Best Regards, Ahmad Arabian [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.

Re: [R] Converting SAS Code

2017-09-30 Thread John Kane via R-help
pearls of > wisdom. For the *really* new members, note that you may have to *install* the fortunes package first: > install.packages("fortunes",lib=) Note that the package is "fortunes" (with an "s") but the function is fortune() (no "s"). cheers, Rolf -

Re: [R] Adding non-data line to legend ggplot2 Maximum Contaminant Level

2017-10-01 Thread John Kane via R-help
type and size   geom_line(colour="black", linetype="dotted", size=0.5) +   ylab("Chloride (mg/L)") ## does the graph using the Location IDs as the different Locations. p + facet_grid(Location ~ .)     [[alternative HTML version deleted]] ___

[R] Revolutions blog: September 2017 roundup

2017-10-04 Thread David Smith via R-help
Since 2008, Microsoft (formerly Revolution Analytics) staff and guests have written about R every weekday at the Revolutions blog (http://blog.revolutionanalytics.com) and every month I post a summary of articles from the previous month of particular interest to readers of r-help. In case you

Re: [R] Adding non-data line to legend ggplot2 Maximum Contaminant Level

2017-10-05 Thread John Kane via R-help
e 10   scale_y_log10() +   ##adds line   geom_hline(aes(yintercept=250) ,linetype="dashed")+   #location of the legend   theme(legend.position=c(" right")) +   #sets the line color, type and size   geom_line(colour="black", linetype="dotted", size=0.5) +  

Re: [R] Regular expression help

2017-10-09 Thread William Dunlap via R-help
. > > I've tried a few different regexprs, but am unable to find a way to say > "transform words by deleting everything up to and including the 2nd slash" > when there might be zero, one or two slashes. Any suggestions? > > Duncan Murdoch > > __ > R-hel

Re: [R] Regular expression help

2017-10-09 Thread William Dunlap via R-help
al example is >> >> "f 147/1315/587 2820/1320/587 3624/1321/587 1852/1322/587" >> >> which I'd like to transform to >> >> " 587 587 587 587" >> >> Another real example is >> >> "f 1067 28680 24462" >&

[R] Iterate in a Spatial Polygon Dataframe in R?

2017-10-11 Thread Ashraf Afana via R-help
. The code seems to overwrite the polygons to end up with only onefeature.  Any suggestions?Ashraf, cheers [[alternative HTML version deleted]] ______ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/lis

Re: [R] Populate one data frame with values from another dataframe for rows that match

2017-10-14 Thread William Dunlap via R-help
e way you want. ifelse() may be useful for that. Bill Dunlap TIBCO Software wdunlap tibco.com On Fri, Oct 13, 2017 at 10:48 PM, Kevin Wamae wrote: > Dear @Bert Gunter<mailto:bgunter.4...@gmail.com>, I tried merge and I > faced many challenges. @Rui Barradas<mailto:ruipbarra...@sapo.pt

[R] ROC curve for each fold in one plot

2017-10-16 Thread Elahe chalabi via R-help
he same for Fold4 and Fold5,now how can I bring all the plots in one plot with labels for each fold? Thanks for any help! Elahe __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLE

[R] survival analysis - predict function

2017-10-16 Thread Meghna Govil via R-help
predict(loglogistic_na, train1_model, > type="quantile"p=pct,se=TRUE) > result <- cbind(data.frame(train1_model, l.pred), l.pred.q) > names(result) <- c("Actual", "Predicted", "Lower", "Upper") > head(result) > > > Thanks &

Re: [R] ggridges help

2017-10-17 Thread William Dunlap via R-help
contents of this message do not reflect any position of the U.S. > Government or NOAA." > > ** > > Roy Mendelssohn > > Supervisory Operations Research Analyst > > NOAA/NMFS > > Environmental Research Division > > Southwest Fisheri

Re: [R] ggridges help

2017-10-17 Thread William Dunlap via R-help
02924, > > > 0.146392303930216, 0.654494252844301, 0.470248736982212, > 0.239891529116349, > > > 0.200137949677769, 0.2858429346658, -0.121094155739595), .Dim = 72L)), > .Names = c("time", > > > "depth", "cycle"), row.names = c(NA,

[R] Permission denied with tk_choose.dir

2017-10-20 Thread Jouanin Celine via R-help
Dear R Help list, I'm facing a problem with "tk_choose.dir", I try to find an explanation and a solution. I use :rm(list=ls(all=TRUE)) datawd<-"/mnt/3-Biot/data_input/" setwd(datawd) files<-tk_choose.files(filters = matrix(c("/*.csv",".csv"),

Re: [R] Error messages using nonlinear regression function (nls)

2017-10-20 Thread William Dunlap via R-help
t; > == germination$species[i-1])) > > {tmpCount = tmpCount + germination$germinated[i]; > > germination$TotGerminated[i]=tmpCount} > > } > > germination$Prop = germination$TotGerminated/germination$TotSeeds > > germination = germination[germination$end != Inf,

[R] Fw: R STUDIO crashing

2016-05-19 Thread rezvan hatami via R-help
puter It doesn't mean that it never might crash. This is not help after keeping me waiting for long time. Such a waste of time corresponding with you. From: Shige Song To: rezvan hatami Cc: "r-help@r-project.org" Sent: Thursday, 19 May 2016, 14:55 Subject: Re: [R] R ST

Re: [R] stopifnot() doesnt work as I expect it to. Are my expectations correct?

2016-05-20 Thread William Dunlap via R-help
However, it doesn't really make sense to me to put in tests that could > themselves trigger errors unless you'd be interested in seeing those > errors, so I don't think I'd change it. > > Duncan Murdoch > > __ > R-help@r-project.org mailing list -- To UNSUBSCR

[R] Plots for lmrob function

2016-05-20 Thread varin sacha via R-help
I have an open device : dev.cur() null device 1 How can I solve my problem and finally get the different required plots ? Best S __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLE

Re: [R] Plots for lmrob function

2016-05-22 Thread varin sacha via R-help
Perfect, many thanks Best S De : David Winsemius À : varin sacha Cc : R-help Mailing List Envoyé le : Vendredi 20 mai 2016 21h13 Objet : Re: [R] Plots for lmrob function > On May 20, 2016, at 8:28 AM, varin sacha via R-help > wrote: > > Dear R-helpers, > &g

Re: [R] print all variables inside function

2016-05-23 Thread William Dunlap via R-help
e experiment died of. ~ Sir Ronald Aylmer Fisher > The plural of anecdote is not data. ~ Roger Brinner > The combination of some data and an aching desire for an answer does not > ensure that a reasonable answer can be extracted from a given body of data. > ~ John Tukey > > 2016-05-23

Re: [R] Computing means of multiple variables based on a condition

2016-05-25 Thread William Dunlap via R-help
_ > Ad>=4 _ > Bd>=4 _ > Ad>=6 _ > B d>=6 _ > > > > Ken > kmna...@gmail.com > 914-450-0816 (tel) > 347-730-4813 (fax) > > >

Re: [R] subset data right

2016-05-26 Thread William Dunlap via R-help
6 levels "a","b","c","d",..: 1 2 3 4 5 6 7 8 9 10 ... > str(subdf) 'data.frame': 1 obs. of 1 variable: $ quant: Factor w/ 1 level "a": 1 Bill Dunlap TIBCO Software wdunlap tibco.com On Thu, May 26, 2016 at 12:35 PM, ch

Re: [R] subset data right

2016-05-27 Thread William Dunlap via R-help
#x27; > (density for the F distribution) > It doesn't, because R is clever. But it's really not good practice to use > common function names as variable names. Too much potential for confusion. > > S Ellison > > > *

<    4   5   6   7   8   9   10   11   12   13   >