[R] knitr and tinytex

2023-04-26 Thread Steven T. Yen
Dear tinytex users I install knitr and tinytex with the following line commands in RStudio and it seems to work: install.packages("knitr") install.packages('tinytex') In the long past I was told to also run the following lines but now they do not seem to be needed. #update.packages(ask = FA

Re: [R] R does not run under latest RStudio

2023-04-06 Thread Steven T. Yen
p.s. But now I click some (but not all)  .R file and cannot see the source code. On 4/6/2023 5:28 PM, Steven T. Yen wrote: I updated to latest RStudio (RStudio-2023.03.0-386.exe) but R would not run. Error message: Error Starting R The R session failed to start. RSTUDIO VERSION RStudio

[R] R does not run under latest RStudio

2023-04-06 Thread Steven T. Yen
I updated to latest RStudio (RStudio-2023.03.0-386.exe) but R would not run. Error message: Error Starting R The R session failed to start. RSTUDIO VERSION RStudio 2023.03.0+386 "Cherry Blossom " (3c53477a, 2023-03-09) for Windows [No error available] I also tried RStudio 2022.12.0+353 --- same

Re: [R] Removing variables from data frame with a wile card

2023-02-12 Thread Steven T. Yen
>> >> You could alternatively use >> >> x["V2"] >> >> which should be identical to x[, "V2", drop = FALSE], but some people don't >> like that because it doesn't look like matrix indexing anymore. >> >> >

Re: [R] Removing variables from data frame with a wile card

2023-02-12 Thread Steven T. Yen
te something like this to remove the columns >> starting with yr: >> >> mydata <- mydata[, !grepl("^yr", colnames(mydata)), drop = FALSE] >> >> On Sat, Jan 14, 2023 at 1:56 AM Steven T. Yen wrote: >>> >>> I have a data frame containi

[R] Removing variables from data frame with a wile card

2023-01-13 Thread Steven T. Yen
I have a data frame containing variables "yr3",...,"yr28". How do I remove them with a wild cardsomething similar to "del yr*" in Windows/doc? Thank you. > colnames(mydata)   [1] "year"   "weight" "confeduc"   "confothr" "college"   [6] ...  [41] "yr3"    "yr4"    "yr5"

[R] Background for word

2023-01-11 Thread Steven T. Yen
Dear, I am having a lucky day. I am programming in RStudio and when I type "black" (quotation signs included, the word turn into a word with black ground. Couldn't get rid of the backgroundcopying to Word, Excel, text editor and paste back to Rstudio, the word is still in black background

Re: [R] Format printing with R

2022-11-22 Thread Steven T. Yen
nodiscfem   0.51    0.50 discfem 0.49    0.50 notradgrol  0.70    0.46 tradgrol    0.30    0.46 nofemnopol  0.80    0.40 femnopol    0.20    0.40 nopreshurt  0.66    0.47 On 11/22/2022 3:08 PM, Ivan Krylov wrote: On Tue, 22 Nov 2022 08:15:57 +0800 "Steven T. Yen" wrote: Thanks to

Re: [R] Format printing with R

2022-11-21 Thread Steven T. Yen
00.32 [86,] 1.3000.74 R will still print 3 decimal places for the third column since it wants them to be of the same format, but each number is 2 sigfigs. On Mon, Nov 21, 2022 at 3:41 PM Steven T. Yen via R-help wrote: Hi, I have two variables with 86 observations each. Below I print

[R] Format printing with R

2022-11-21 Thread Steven T. Yen via R-help
Hi, I have two variables with 86 observations each. Below I print with the print command with digit=2. But, I am getting three decimal places for my first variable and two for the second. Please help. Thanks. > cbind(Mean,Std.dev)     Mean   Std.dev  [1,]  0.3107966  0.462820  [2,]  0.1

Re: [R] cannot print a list with cat

2022-10-24 Thread Steven T. Yen
ycontrol$gradtol) #works msg<-with(mycontrol,sprintf(fmt_string,tol,reltol,steptol,gradtol))   cat(msg) tol = 0.0e+00 reltol  = 0.0e+00 steptol = 1.0e-08 gradtol = 1.0e-10 Thids has worked great! Thanks again to all. Steven Yen On 10/25/2022 3:23 AM, Rui Barradas wrote: Às 16:21 de 24/10

Re: [R] cannot print a list with cat

2022-10-24 Thread Steven T. Yen
age. msg <- sprintf("(tol,reltol,steptol,gradtol): %E %E %E %E", mycontrol$tol,mycontrol$reltol,mycontrol$steptol,mycontrol$gradtol) message(msg) Hope this helps, Rui Barradas Às 14:25 de 24/10/2022, Steven T. Yen escreveu: Thank, Boris and Ivan. The simple command suggested b

Re: [R] cannot print a list with cat

2022-10-24 Thread Steven T. Yen
Thank, Boris and Ivan. The simple command suggested by Ivan ( print(t(mycontrol)) ) worked. I went along with Boris' suggestion and do/get the following: cat(sprintf("(tol,reltol,steptol,gradtol): %E %E %E %E",mycontrol$tol, mycontrol$reltol,mycontrol$steptol,mycontrol$gradtol

[R] cannot print a list with cat

2022-10-24 Thread Steven T. Yen
I have a "list" containing four elements, as shown below: > t(mycontrol) tol reltol steptol gradtol [1,] 0   0  1e-08   1e-12 Printing this in a main program causes no problem (as shown above). But, using the command t(mycontrol) the line gets ignored. Any idea? Thank

Re: [R] cat in a subroutine

2022-10-13 Thread Steven T. Yen
rew for help! On 10/13/2022 10:30 PM, Bill Dunlap wrote: > Do you have another function called "cat" in scope? (with an argument > called "j")?  Before calling cat("...") call print(cat) and > print(find("cat")). > > -Bill > > > On

Re: [R] cat in a subroutine

2022-10-13 Thread Steven T. Yen
define fortytwo before calling cat, it doesn't. So we know what the answer is. Jim On Thu, Oct 13, 2022 at 7:36 PM Steven Yen wrote: t<-abs(me)/se; p<-2*(1-pt(t,nrow(x))) sig<-my.sig.levels(p) out<-data.frame(round(cbind(me,se,t,p),digits)); out<-cbind(out,sig) rownames(out)<

Re: [R] cat in a subroutine

2022-10-13 Thread Steven T. Yen
te Effects of Gen Ordered Logit / Probit Probabilities") :   argument "j" is missing, with no default > On 10/13/2022 3:37 PM, Erin Hodgess wrote: > Hi Steven: > > Do you have a variable called logistic, please?  I think that might be > the culprit. > > Tha

[R] cat in a subroutine

2022-10-13 Thread Steven T. Yen
I have had an issue with printing (with cat) in a subroutine for which I do not have a applicable example, but I am still hoping to get some help. In the following, the first block of code works fine. ... t<-abs(me)/se; p<-2*(1-pt(t,nrow(x))) sig<-my.sig.levels(p) out<-data.frame

Re: [R] Help with a simple subroutine

2022-09-09 Thread Steven T. Yen
0.0138778  0.0793592 > mydelta <- function(obj,j){ + # *** + # Delta method for exponential transformation + # *** +   b<-obj$estimate[j] +   v<-obj$stat$vb[j,j]; v +   gamma<-exp(b) +   db<-gamma +  

Re: [R] Probably off topic but I hope amusing

2021-10-29 Thread T. A. Milne via R-help
you think most readers reaction to this was?!Best to > all,Bert __> > 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 >

[R] Problem with reference Class that may be a bug in R

2021-07-23 Thread Jakub T. Jankiewicz
packageA because I have: Depends: packageA in DESCRIPTION. I have someone can check this, and confirm that this is a bug, but basically when I've send this to request permission to add a bug to ask for help first, even that I have experienced R developers in my Team that confirmed that t

[R] MAC version 10

2021-07-08 Thread Farrah T
Hello, I have Mac Version 10 Catalina and I would like to download R on this device for my summer class. I have difficulty to find a right option when I go to the website. May you please kindly share the step by step guidance with me. The screenshot with be great. I downloaded few zip files an

Re: [R] Image processing in R for BMI calculation

2021-03-01 Thread T. A. Milne via R-help
to measure the degree of obesity of the general population to assist the government in allocating resources. In other words, it is a 200-year-old hack." As an index of obesity in individuals, BMI has some glaring flaws. - T. Arthur Milne __ R-help@r-pro

Re: [R] Col names in a data frame

2021-01-21 Thread Jan T. Kim via R-help
it looks to me that the names are cranked through make.names for data frames case while that doesn't happen for matrices. Peeking into the `colnames<-` code supports this idea, but that in turn uses `names<-` which is a primitive and so defies further easy peeking. The data.frame function provides

[R] Find the number of clusters using clusGAP function in R

2021-01-20 Thread Jovani T. de Souza
Could you help me find the ideal number of clusters using the `clusGap `function? There is a similar example in this link: https://www.rdocumentation.org/packages/factoextra/versions/1.0.7/topics/fviz_nbclust But I would like to do it for my case. My code is below: library(cluster) df <

Re: [R] Fwd: Error in setting the parameter values of k

2020-12-29 Thread T. A. Milne via R-help
e number of nearest neighbors to be considered (in some computation).  In that case, k must be at least 1, which is what the cited error message seems to be claiming.  Are you certain that k = 0 is a legitimate setting? - T. Arthur Milne __ R-help

[R] Error pvclust package: Error in hclust(distance, method = method.hclust)

2020-12-14 Thread Jovani T. de Souza
81307,-24.761081), Longitude = c(-49.934816, -49.922324, -49.911616, -49.906262, -49.890796,-49.8875254,-49.8875254), Waste = c(526, 350, 526, 469, 285, 433, 456)),class = "data.frame", row.names = c(NA, -7L)) mat <- as.data.frame.matrix(df) mat <- t(mat) f

Re: [R] Find the ideal cluster

2020-12-14 Thread Jovani T. de Souza
eone has already answered > there, or vice versa. > > Michael > > On 12/12/2020 15:27, Jovani T. de Souza wrote: > > So, I and some other colleagues developed a hierarchical clustering > > algorithm to basically find the main clusters involving agricultural > > indu

Re: [R] Hello! Problem - function ''matord'' in R

2020-12-14 Thread T. A. Milne via R-help
Might the desired function "matord" be part of a Bioconductor package? This link https://rdrr.io/bioc/clusterSeq/src/R/associatePosteriors.R suggests that could be the case. - T. Arthur Milne __ R-help@r-project.org mailing list -- To UNSUB

[R] Find the ideal cluster

2020-12-12 Thread Jovani T. de Souza
So, I and some other colleagues developed a hierarchical clustering algorithm to basically find the main clusters involving agricultural industries according to a particular city (e.g. London city).. We structured this algorithm in R. It is working perfectly. So, according to our filters that we in

[R] Use clusters.stats function from a hierarchical clustering in R

2020-12-11 Thread Jovani T. de Souza
I would like a great help from you. I used the cluster.stats function that is part of the `fpc` package to compare the similarity of two custer solutions using a variety of validation criteria, as you can see in the code. However, I have two questions: 1 ° Is it possible to know which is the most

Re: [R] Inappropriate color name

2020-11-17 Thread T. A. Milne via R-help
ious that any particular group should be offended by the name. --  T. Arthur Milne > On Nov 16, 2020, at 5:46 PM, Rolf Turner wrote: > > On Tue, 17 Nov 2020 07:54:01 +1100 > Jim Lemon wrote: > > >> Hi Elaine, >> There seems to be a popular contest to discover offe

Re: [R] Inappropriate color name

2020-11-17 Thread T. A. Milne via R-help
cklandPhone: +64-9-373-7599 ext. 88276 To Rolf's excellent example, I would add Mandy Rice-Davies' immortal words from the witness box. - T. Arthur Milne [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNS

[R] Rtools required

2020-04-28 Thread Steven T. Yen
Dear All I updated to R-4.0.0. and also installed the latest Rtools 4.0 (to now the new default folder c:\rtools40). While compiling a package (binary) I received the follow marning message saying Rtools is required. Any clues? Thanks. Steven Yen WARNING: Rtools is required to build R package

[R] Learning Shinny

2020-04-09 Thread Kumar t
Hello all , Very sorry to ask you question that might have been answered earlier . I could not able to find right answer . My requirement is get decent level of proficiency in the R-Shiny . Is there path ( I mean do I need to have knowledge of Dplyr to get data in right format ) that I need to

[R] hist{graphics}

2019-07-12 Thread Steven T. Yen
# Can someone help with this simple frequency histogram problem (n = 15)? # I use four class limits: [90,95], [95,100], [100,105], [105,110]. # These coincide with the limits obtain by pretty {base}. # Proper frequencies would be: (1,5,6,3). # But hist{graphics} gives me a histogram showing freque

Re: [R] Function in default parameter value closing over variables defined later in the enclosing function

2019-01-23 Thread Jan T Kim via R-help
Hi Duncan, On Wed, Jan 23, 2019 at 10:02:00AM -0500, Duncan Murdoch wrote: > On 23/01/2019 5:27 a.m., Jan T Kim wrote: > >Hi Ivan & All, > > > >R's scoping system basically goes to all environments along the call > >stack when trying to resolve an unbound vari

Re: [R] Function in default parameter value closing over variables defined later in the enclosing function

2019-01-23 Thread Jan T Kim
Hi Ivan & All, R's scoping system basically goes to all environments along the call stack when trying to resolve an unbound variable, see the language definition [1], section 4.3.4, and perhaps also 2.1.5. Generally, unbound variables should be used with care. It's a bit difficult to decide wheth

Re: [R] reading data problem

2018-09-24 Thread Jan T Kim via R-help
read > data: a<-read.csv("for_R_graphs.csv", header=T, sep=",") > > On Mon, Sep 24, 2018 at 2:07 PM Jan T Kim via R-help > wrote: > >> Yet one more: have you tried adding quote="" to your read.table >> parameters? Quote characters have a 50% chance

Re: [R] reading data problem

2018-09-24 Thread Jan T Kim via R-help
; > >> Hi Dear all; > >> > >> I have a dataset with 151*291 dimension. After making data read into R I > >> am > >> getting a data with 96*291 dimension. Even though I have no error message > >> from R I could not understand the reason why I

Re: [R] R shared library (/usr/lib64/R/lib/libR.so) not found.

2018-08-23 Thread Jan T Kim via R-help
ers me that /usr/lib/R/lib/libR.so was not "refreshed" from my > most recent install of R. > > I plead for enlightenment. > > cheers, > > Rolf Turner > > P.S. I'm running Ubuntu 18.04. And the previous install of R was done under > Ubuntu 18.04. >

[R] climate data-set; aggregate date (day)

2017-08-03 Thread T Wan
Hi there, I am trying to get the sum of rain per day. That is what the data-set looks like: TimestampRain_mm_Tot 2017-05-29 23:40:00 4.780 2017-05-29 23:50:00 1.200 2017-05-30 00:10:00 2.580 2017-05-30 00:20:00 1.2009600 2017-0

[R] rugarch package: VaRTest()

2017-07-29 Thread T . Riedle
Dear all, I want to backtest my Value at Risk output using the VaRTest() function in the rugarch package. I do not understand if the numeric vector of VaR which needs to be calculated is in negative or positive terms. Usually VaR is expressed in positive terms. Do I have to use positive valu

[R] Using mfx to create marginal effects

2017-06-17 Thread T . Riedle
Dear all, I am trying to estimate the marginal effects of a logit regression using the mfx package. It is crucial that the standard errors are clustered at the year level. Hence, the code looks as follows: marginal.t24.2<-logitmfx(stock.market.crash~crash.t24+bubble.t24+RV.t24,data=Data_logit

[R] Augmented Dickey Fuller test

2017-04-28 Thread T . Riedle
Dear all, I am trying to run an ADF test using the adf.test() function in the tseries package and the ur.df() function in the urca package. The results I get contrast sharply. Whilst the adf.test() indicates stationarity which is in line with the corresponding graph, the ur.df() indicates non-s

[R] mood.test/mood.medtest

2017-03-15 Thread Leemann, Lucas T
Hello, I was trying to test whether two medians are identical or not and used the function “mood.test” from the “stats" package. My co-author, a medical doctor, was trying to do the same in SPSS and had different results. I wanted to see whether there was a problem on my end and also used the

[R] Windows server 2012

2017-03-01 Thread Yates, James W T
Hello I'm investigating installing R in a virtual machine environment. Does anyone have experience running R on windows server 2012? Regards James AstraZeneca UK Limited is a company incorporated in Engl...{{dropped:16}} ___

[R] A strange arithmetic error in R (maybe a bug)

2017-02-18 Thread T. Zhang
Hello, Today I happened to notice a strange error in R. If you type (2.01-0.06)==1.95, output from R is “FALSE”, which is wrong. But if you type (1.01-0.06)==0.95, output is “TRUE”, which is correct. I tested this in two systems: R 3.3.2 in my iMac and R 3.2.0 on my school’s Linux server. Both

[R] nlme & VarIdent

2016-11-11 Thread Louisell, Paul T PW
Hello, All the help I've read (including Pinheiro and Bates book, 'Mixed Effects Models in S and S-PLUS') regarding how to fit a linear mixed-effects model where variances change with a factor's levels indicates this is done through the 'weights' argument to 'lme', using something like 'weight

[R] Query to find minimum value in a matrix in R

2016-09-16 Thread susmita T
Hi, Good Morning! I am new to R and finding difficulty in understanding the code. Since few days I am stuck at single line of code which I am unable to understand. Though there may be number of logics to find min value. As a new beginner I am following a book and as it has the following code mi

Re: [R] Help batch saving elements of a list into unique files

2016-03-23 Thread Christian T Stackhouse (Campus)
g I wanted to tackle manually. Sincerely, Christian T. Stackhouse | Graduate Student GBS Neuroscience Theme Department of Neurosurgery Department of Radiation Oncology UAB | The University of Alabama at Birmingham Hazelrig-Salter Radiation Oncology Center | 1700 6th Ave S | Birmingham, AL 35233 M: 9

Re: [R] Help batch saving elements of a list into unique files

2016-03-23 Thread Christian T Stackhouse (Campus)
Very close! The header now looks like this: c("10", "11", "1_", "HuEx", "1_0", "st", "v2", "", "CEL") For some reason, it's not concatenating. Best, Christian T. Stackhouse | Graduate Stude

Re: [R] Help batch saving elements of a list into unique files

2016-03-23 Thread Christian T Stackhouse (Campus)
te("affymetrix",affdf,".txt",sep="")) + } Error in names(out[[affdf]]) <- lapply(unlist(strsplit(names(out[[affdf]]), : 'names' attribute [1148] must be the same length as the vector [118] > This is what the header was before: X0.Classical.10.11.1_.HuEx.

Re: [R] Help batch saving elements of a list into unique files

2016-03-23 Thread Christian T Stackhouse (Campus)
Thank you, Jim. I got this error returned: Error in strsplit(names(out[[affdf]])) : argument "split" is missing, with no default Christian T. Stackhouse | Graduate Student GBS Neuroscience Theme Department of Neurosurgery Department of Radiation Oncology UAB | The University of

Re: [R] Help batch saving elements of a list into unique files

2016-03-23 Thread Christian T Stackhouse (Campus)
df,".txt",sep="")) } I got the files out with headers: 10.11.1_.HuEx.1_0.st.v2..CEL Minus the first two tokens (X0. and Classical.) I really appreciate you helping me with this. I'd never have figured this out in a timely manner. Christian T. Stackhouse | Graduate

Re: [R] Help batch saving elements of a list into unique files

2016-03-23 Thread Christian T Stackhouse (Campus)
uot;X0." prefix or in the case of file 189 the "X188." prefix leaving: Classical.10.11.1_.HuEx.1_0.st.v2..CEL Thank you so much for your help! I'll try playing with it myself, but if you have any further insights they would be greatly appreciated! Best, Christian T

Re: [R] Help batch saving elements of a list into unique files

2016-03-23 Thread Christian T Stackhouse (Campus)
I re ran it and this is what I got: 11.1_.HuEx.1_0.st.v2..CEL Should be: 10.11.1_.HuEx.1_0.st.v2..CEL Christian T. Stackhouse | Graduate Student GBS Neuroscience Theme Department of Neurosurgery Department of Radiation Oncology UAB | The University of Alabama at Birmingham Hazelrig-Salter

[R] Help batch saving elements of a list into unique files

2016-03-22 Thread Christian T Stackhouse (Campus)
th how to perform batch editing of the headers and batch saving of the files would be greatly appreciated! Best, Christian T. Stackhouse | Graduate Student GBS Neuroscience Theme Department of Neurosurgery Department of Radiation Oncology UAB | The University of Alabama at Birmingham Hazelrig-Salter Ra

Re: [R] How to reach the column names in a huge .RData file without loading it

2016-03-19 Thread Jan T Kim
file contains exactly one data frame and you want > >> to column names of it. > >> > >> So let's create one of those: > >> > >> > >> mydataframe = data.frame(mylongnamehere=runif(3), > >> anotherlongname=runif(3), z=runif(3), y=runif(3)

[R] Lexical scoping for step and add1 functions

2016-03-07 Thread Louisell, Paul T PW
Hi, I've run into a problem calling the step function from within a function; I sent this to the R development list first, but the moderator said it was better suited to R help. My OS is Windows 7 and I'm using R version 3.2.3. Here's a simple function to help reproduce the error: > test.

[R] Right censored data, abundant in zeros for regression analysis.

2015-12-24 Thread REES T. (706713)
Hi there, Firstly forgive me if this seem obvious, if there is existing literature on this i can't find it. I am looking at conditioning to stimuli and there in the time taken to perform a certain task. The IV for this data is Conditioning periods ranging from 1-34 periods and the DV is the t

[R] SSD vs RAM upgrade

2015-09-14 Thread Kulas, John T.
I have several lab computers that frequently lag/crash with R apparently due to low RAM (they're all 8 GB) I put in a request to up the RAM to 32 GB on a few, but my tech support is suggesting an SSD harddrive upgrade instead of the increased RAM. Any suggestions on the better approach (SSD har

[R] R script on Rstudio server

2014-04-07 Thread T Bal
Hi, I want to install Rstudio server. The reason for that is that I want to run R script on this server. In this R script I am loading (working with) very large data with size 1000 Mb. When I run this R script I get memory error. If I run this script on Rstudio server, will I not have this problem?

[R] GC overhead limit exceeded

2014-03-28 Thread T Bal
Hi, After loading my data in R I get the error: Error in .jcall("com/github/egonw/rrdf/RJenaHelper", "Lcom/hp/hpl/jena/rdf/model/Model;", : java.lang.OutOfMemoryError: GC overhead limit exceeded How can I solve it? [[alternative HTML version deleted]]

Re: [R] Assign numbers in R

2014-03-12 Thread T Bal
r[i]=r[i-1]+1; > } > else { > r[i] = r[i-1]; > } > } > > Although I am sure there are better solutions! > > HTH > daniel > > > Feladó: r-help-boun...@r-project.org [r-help-boun...@r-project.org] ; > meghat

[R] Assign numbers in R

2014-03-12 Thread T Bal
Hi, I have the following numbers: d <- c(8,7,5,5,3,3,2,1,1,1) I want to convert these into the following numbers: r: 1,2,3,3,4,4,5,6,6,6 So if two numbers are different increment it if they are same then assign the same number: r <- NULL for (i in 1:length(d)) { if (d[i] != d[i+1]) { r[i]

Re: [R] accessing an object with a variable ?

2014-01-18 Thread Marius &#x27;t Hart
Does this help you? http://stackoverflow.com/questions/3971844/access-variable-value-where-the-name-of-variable-is-stored-in-a-string-in-r On 14-01-18 04:21 PM, ce wrote: I want access and object , its name is in an variable : require(xts) data(sample_matrix) head(sample_matrix)

Re: [R] accessing an object with a variable ?

2014-01-18 Thread Marius &#x27;t Hart
Does this help you? http://stackoverflow.com/questions/3971844/access-variable-value-where-the-name-of-variable-is-stored-in-a-string-in-r On Sat, 18 Jan 2014, ce wrote: I want access and object , its name is in an variable : require(xts) data(sample_matrix) head(sample_matrix)

Re: [R] *** caught segfault *** :: a common problem in 3.0.2

2014-01-18 Thread Christopher T Gregg
not allowed to. > > Or did you specify the type of all of your data to be of the right ones? > > The segfault message at least say so. > >> *** caught segfault *** >> address 0x2464943a08, cause 'memory not mapped' >> >> Traceback: >>

[R] *** caught segfault *** :: a common problem in 3.0.2

2014-01-17 Thread Christopher T Gregg
much for any suggestions to overcome this problem. best wishes, Chris Here is the error: *** caught segfault *** address 0x2464943a08, cause 'memory not mapped' Traceback: 1: .Call("gyroscope", ncol(Y), nrow(Y), t(Y), as.integer(as.numeric(l) - 1), as.character(

[R] Turning a string into a real vector

2013-09-23 Thread t...@shatalmic.com
I have the following string input: input <- "ACC,1.1,2.2,3.3,4.4\nACC,2.2,3,4,5\nADN,3.3,4,5\nACC,4.4,5.5,6.6,7.7\nADN,5.5,6,7\n" Note that \n is a real line feed in the data and the numbers are all made up and might be other values. The key is that the first number is a float, the ACC packets ar

Re: [R] Turning a string into a real vector

2013-09-23 Thread t...@shatalmic.com
Thank you. I was doing a strsplit and forgot to include it in my post. What was confusing me is that the result doesn't look like a vector. I guess it actually is. I will try writing it out and see if I get what I want from it. Thanks! -- View this message in context: http://r.789695.n4.nabble

[R] How do I parse text?

2013-09-06 Thread Robertson, Henry T.
I have a data frame with a character field of the form "ACUTE URI NOS", "OPEN WOUND OF FOREHEAD", "CROUP", "STREP SORE THROAT", How can I get counts of all the words and their co-occurences? I've spent a long time searching on google, but it just takes me on a wild goose chase of dozens o

[R] How do I parse text?

2013-09-06 Thread Robertson, Henry T.
I have a data frame with a character field of the form "ACUTE URI NOS", "OPEN WOUND OF FOREHEAD", "CROUP", "STREP SORE THROAT", How can I get counts of all the words and their co-occurences? I've spent a long time searching on google, but it just takes me on a wild goose chase of dozens o

[R] BRugs: error when compiling model

2013-08-05 Thread Nash, Charles T C
Using: R version 3.0.1 (2013-05-16) -- "Good Sport" Platform: x86_64-w64-mingw32/x64 (64-bit) OpenBUGS version 3.2.2 rev 1063 BRugs version 0.8-1 Hi there, When using the modelCompile() function in BRugs package I get the following error: Error in handleRes(res) : NA In addition: Warning mess

Re: [R] Legal issue help

2013-06-25 Thread Dr. T. Imam
Hi, Thank you very much for your replies. Regards, Dr. T. Imam On Sun, Jun 23, 2013 at 10:24 PM, Prof Brian Ripley wrote: > On 23/06/2013 12:59, Uwe Ligges wrote: > >> >> >> On 23.06.2013 01:50, Dr. T. Imam wrote: >> >>> Hi, >>> >>> I a

[R] Legal issue help

2013-06-22 Thread Dr. T. Imam
of the packages.. I am just wondering are there any legal requirements (in respect to copyright/permission of use issue) involved for such commercial use?. Thank you. Regards, Dr. T. Imam [[alternative HTML version deleted]] __ R-help@r

Re: [R] Very basic statistics in R

2013-05-06 Thread Marius &#x27;t Hart
Dear Xavier, Jeffs answer was to point out two things to you: 1: How to find these functions on your own. 2: These functions are definitely available in R Good luck, Marius On Mon, 6 May 2013, Xavier Prudent wrote: Dear Jeff, Thanks for your fast answer, I could for sure implement the 2-line

[R] Empirica Copula

2013-05-03 Thread T P Kharel
Dear users I am reposting this and hope it will be accepted this time. I am using copula package to fit my bivariate data and simulation. As explained in package documentation we can use our own data distribution to feed on copula as long as we have d, p and q (pdf, cdf and quantile) functions are

[R] (no subject)

2013-05-02 Thread T P Kharel
I have posted a R copula question yesterday but it is not accepted yet. How long does it take? I am waiting if some one can help me on my Copula package related question. Thanks [[alternative HTML version deleted]] __ R-help@r-project.org mailin

Re: [R] Help with functions as arguments

2013-02-12 Thread Jan T Kim
6POCa8HrX7H4 > UBsPfwSEkOfyIEwq5drKjXF853nUNRVtd0cPA+mpo+5y/qIkGTiehMRlEGwcBBg7 > 6uNA8wpTuJI49tdY7rkVEIEGH34atwvBA1kwFYh1UfBzzIg+oRikHm1ZJ4UeJCM= > =h9ju > -END PGP SIGNATURE- > > __ > R-help@r-project.org mai

[R] Read many cvs files

2013-01-03 Thread Durant, James T. (ATSDR/DCHI/SSB)
in: library(plyr) myfiles <- c("file1.csv", "file2.csv") mydata <- dlply(myfiles, .progress="text") HTH James James T. Durant, MSPH CIH Environmental Health Scientist US Agency for Toxic Substances and Disease Registry Atlanta, GA 30341 770-488-0668

[R] multi dimensional optim problem

2012-12-18 Thread Lu, James T
); } log.posterior=function(b1) { -log.like(b1)+1/2*t(as.vector(b1))%*%diag(as.vector(V))%*%as.vector(b1) } a=optim(b_0,log.posterior,method="CG",hessian=TRUE) return(a); } When I run posterior.mode1(y,X,b1,b2,b1) I get the following error Error in 1:nrow(b1) : argument of length 0 An

Re: [R] Writing escaped unicode

2012-12-11 Thread Jan T Kim
""); should work with the Ruby client you try to talk to. Obviously, this bloats the string rather more than necessary (particularly if most of the characters are in the ASCII range), but if the volume you're piping into the client is small, this ma

[R] Labelling x axis in plot function

2012-12-04 Thread T Bal
Hi, In the plot function I want to label x axis as the numbers between 1 and 12 (so 1, 2, 3, 4, 5, ..., 12). How should I do it? The range of x values are different than this range. Thanks! Kind regards, T. Bal [[alternative HTML version deleted

[R] question about sum of (column) elements in R

2012-12-04 Thread T Bal
would be: 0 12 1 40 2 64 3 111 etc. Thank you. Kind regards, T. Bal [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting

Re: [R] svyplot and svysmooth with hexbin

2012-10-18 Thread Durant, James T. (ATSDR/DCHI/SSB)
Good suggestion - I tried it - it does not work (line appears too high with the data I am working with). VR James James T. Durant, MSPH CIH Environmental Health Scientist US Agency for Toxic Substances and Disease Registry Atlanta, GA 30341 770-488-0668 From: Anthony Damico [mailto:ajdam

[R] svyplot and svysmooth with hexbin

2012-10-18 Thread Durant, James T. (ATSDR/DCHI/SSB)
um, fpc=~fpc1+fpc2, data=apiclus2) svyplot(api00~api99, dclus2) s1 <-svysmooth(api00~api99, dclus2) lines(s1) #works svyplot(api00~api99, dclus2, style="grayhex") lines(s1) #does not work (line either appears in the wrong position in RGui or crashes RStudio). VR James

Re: [R] pass by reference

2012-08-14 Thread Jan T Kim
2 cents. > > > -- > > Alexandre Aguiar, MD SCT > SPS Consultoria > > -- > Sent from my tablet. Please, excuse my brevity. > Enviado do tablet. Por favor, perdoe a brevidade. > Publi?? de le tablet. S'il vous pla??t pardonnez la bri??vet??. > Ver??ffentlich

Re: [R] Best Programming Practices regarding data frames

2012-08-02 Thread Jan T Kim
g guide http://www.R-project.org/posting-guide.html > > and provide commented, minimal, self-contained, reproducible code. > > __ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the

Re: [R] significant difference between Gompertz hazard parameters?

2012-07-07 Thread T-Bone
e.end","dead"))) ## age-structure of the cemetery pop1_Gomp <- function(x,deaths=pop1) { a3=x[1] b3=x[2] shift<-15 nrow<-NROW(deaths) S.t<-function(t)

[R] Plotting linear fit

2012-06-22 Thread Van Patten, Isaac T
I am trying to plot the linear fit by id of the following data (test.l): id year incidents 1001 0 1011 1 102121 103127 1041 3 105112 1002 5 1012 5 102219 103210 1042

[R] question about sign test

2012-05-20 Thread T Bal
) e.g. rbinom? Thank you very much. kind regards, T. Bal [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-g

[R] question about creating data frame

2012-05-15 Thread T Bal
. ... 151 Physics 0 etc. How should I do it? So this data frame will consist from 198 rows. Thank you very much. kind regards, T. Bal [[alternative HTML version deleted]] _

[R] question about creating data frame

2012-05-15 Thread T Bal
ics 0 etc. How should I do it? So this data frame will consist from 198 rows. Thank you very much. kind regards, T. Bal [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://st

[R] please help!

2012-05-08 Thread T Bal
4.2 0 1 2.3 1 1 Please help me, thanks! kind regards, T. Bal [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide

[R] please help!

2012-05-08 Thread T Bal
use glm, but how should I put these variables in glm)? Do I need also other functions, other than glm? Please help me. Thanks! kind regards, T. Bal [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch

[R] latex, Hmisc with MikTeX 2.8 produced "n&missing&unique" output

2012-05-04 Thread Durant, James T. (ATSDR/DCHI/SSB)
output manually in my temp folder. I have the geometry.sty and the ctable.sty loaded per the documentation in Hmisc... any ideas? VR James James T. Durant, MSPH CIH Emergency Response Coordinator US Agency for Toxic Substances and Disease Registry Atlanta, GA 3034

Re: [R] Singleton pattern

2012-03-16 Thread Jan T. Kim
_ > > R-help@r-project.org mailing list > > https://stat.ethz.ch/mailman/listinfo/r-help > > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > > and provide commented, minimal, self-contained, reproducible code. > >

Re: [R] stepwise selection for conditional logistic regression

2012-02-21 Thread Subha P. T.
Hi David My data set has about 20 significant variables and  step function with logistic regression is working fine( in R-commander). I tried to get conditional logistic by introducing the stratum variable and clogit. The clogit is not converging but is giving the summary of the model. When step

  1   2   3   4   >