similar to: matching using "which"

Displaying 20 results from an estimated 30000 matches similar to: "matching using "which""

2012 Dec 07
2
Converting character to numeric: Error: (list) object cannot be coerced to type 'double'
Dear R users, I am facing a pretty a unusual problem while converting character to numeric. Any input would be appreciated. Below is the code and error faced: --------------------------------------- *> str(cmie.dts)* *'data.frame': 4397 obs. of 1 variable:* * $ INE001A01036: chr "1482181740.000000" "1482181740.000000" "1482181740.000000"
2011 Sep 14
1
Strucchange generating breakpoints
Hi, I am new to R. I am using strucchange to get the breakpoints in time series dataset. So the problem I am facing is: I want to link the result generated by the breakpoints to further analysis (for eg. generating volatility for each group). The result is in following form: --------------------------------------- > res <- gbreakpoints(GDP.new ~ 1,data=a,h=2,breaks=6) > res
2011 Sep 21
1
Statmath-R-Forge: Request denied
Dear All, I want to subscribe for Statmath-R-Forge mailing list. But I am getting the following reply and I am unable to subscribe. Any insight on this would be appreciated. Regards Vikram Bahure __________ Your request to the Statmath-R-Forge mailing list Subscription request has been rejected by the list moderator. The moderator gave the following reason for rejecting your request:
2012 Apr 23
2
subset daily to monthly in a zoo or xts
Dear R users, I want to subset a daily zoo series according to its month, find % of "NA" in each month. I am finding it difficult to subset the daily dataset into monthly for the given operation.I am planning to do this for a huge dataset. Thanks in advance. Regards Vikram [[alternative HTML version deleted]]
2013 Sep 01
1
Blur and not readable text, using geom_text in ggplot
Dear R Users, I am new to ggplot. I am using geom_text to inscribe values on my ggplot but it is giving me values which are unreadable and blur. Please let me know if there is any way out. ----------------- Code ----------------- *es <- es3 + geom_text(data=tmp.cor, aes(x=2, y=min(infer.df$value),* * label=text.bottom), colour="black",* *
2012 Jan 13
2
Remove space from string
Dear R users, I have some trivial query. I have a string, I want to remove space from the string. For eg. Input: a <- " Remove space " Output required: "Removespace" I tried using str_trim but only removes end spaces. library(stringr). Regards Vikram [[alternative HTML version deleted]]
2011 Sep 13
1
estimating Fstats in strucchange
Hi, I am new to R. It would be kind if I could get some help on this. I am using R to estimate Fstats but I am getting following error. a3 is annual GDP data from 1951 to 2010. > fs<- Fstats(ecm.model, from=1954, to = 1975,data=a3) Error in Fstats(ecm.model, from = 1954, to = 1975, data = a3) : inadmissable change points: 'from' is larger than 'to' In addition: Warning
2011 Oct 10
1
Converting factor into date
Dear R users, I have an elementary query. I have a dataset which is taken from text file with the help of read.csv command but when I generate the data in R file it converts the Dates into factor.So for the above problem, I use as.Date to convert the Dates from factor form to date format using the following: z has Date as a column. *z<- read.csv("data", header = TRUE, sep =
2011 Nov 17
1
Exclude NA while summing
Dear R users, I am new to R and have some query. I am having a dataset with binary output 0's and ones. But along with it it has NA's too. I want to sum all the rows and get the sum total for each column. But whenever there is a NA in an row the sum of the row is returned as NA so I am not able to sum up the values. *row.sums.m <- apply(dummy.curr.res.m,1,sum)* It would be helpful
2012 Jun 12
1
Yahoo/Google quotes symbols
Dear R users, I was working on get.hist.quote to download data, but for this I need to know yahoo quotes (for stocks) from the beginning. Is there any simple way to get all symbols for particular market or I have to go on the website and get the quotes. Thanks for your help in advance. Regards Vikram [[alternative HTML version deleted]]
2011 Nov 28
1
Plotting a zoo object: lines and barplot
Dear R users, I have 3 columns in a zoo object. I want to plot all of them in one screen but I want the first two to be in "lines" format and 3rd one to be barplot. Regards Vikram [[alternative HTML version deleted]]
2011 Dec 20
1
boot.ci: [Error: cannot allocate vector of size 1.5 Gb]
Dear R users, I am getting following error while using boot.ci. I have int.inc function with 20000 values. I am generating CI for the sample estimate. *> med <- function(x,i) median(x[i])* *> b1 <- boot(int.inc,med,2)* *> ci.out <- boot.ci(b1,conf = c(0.95),type = c("bca"))* *Error: cannot allocate vector of size 1.5 Gb* * * It would be very helpful to get some
2013 Mar 18
1
try/tryCatch
Hi All, I have tried every fix on my try or tryCatch that I have found on the internet, but so far have not been able to get my R code to continue with the "for loop" after the lmer model results in an error. Here is two attemps of my code, the input is a 3D array file, but really any function would do.... metatrialstry<-function(mydata){ a<-matrix(data=NA, nrow=dim(mydata)[3],
2011 Dec 19
1
Boot: Confidence Interval
Dear R users, I have a very simple query. I am using bootstrap (library(boot)). I want to access the std. error in the results and further generate confidence interval(CI) for n no. of samples which will give me n values for std. error and CI. * * b1 ORDINARY NONPARAMETRIC BOOTSTRAP Call: boot(data = int.inc, statistic = med, R = 1000) Bootstrap Statistics : original bias std. error
2011 Sep 21
1
Strucchange gbreakpoints
Hi, I am a new user to R. I am using strucchange to generate breakpoints: -------------------------------------------------------------------------------------- > res <- gbreakpoints(GDP.new ~ 1,data=a,h=2,breaks=5) > print(res) Optimal 6-segment partition for `lm' fit: Call: gbreakpoints(formula = GDP.new ~ 1, data = a, h = 2, breaks = 5) Breakpoints at observation number:
2011 Nov 28
1
Superimpose two graphs
Dear R users, I want to superimpose two graphs as well as ensure that they should have same scale with same x & y axis. I am using following command but it does not ensure same scale. *pdf(file = "../RESULTS/RS1.simulated.pdf", width = 10, height =6)* *plot(Reserves.RS, col = 1:2, screen = 1)* *par(new= TRUE)* *barplot(RS.active, axes = FALSE)* *dev.off()* * * Regards Vikram
2011 Sep 23
1
Testing packages
Dear R users, It would be really helpful if I got to know the names of the packages which use the following for testing: >pkg-Ex. Rout.save files (examples of testing) If possible some testing links: to see how testing is done. Thanks in advance. Regards Vikram [[alternative HTML version deleted]]
2011 Sep 26
1
Disabling Auto-complete
Hi, I am a new user to R. I am having the following problem while using R: The defined function is having following a$unit as input but if I define a$unit1 then still I am getting the output which is not desired. __________________________ *Function:* testfunction<-function(a){ stopifnot(a$unit==1) cat("All is well") } b<-list(unit1=1 ) testfunction(b)
2011 Oct 19
1
Test Case for Package
Hi, I had a query for writing a test case for a package. If we are testing a function then do we need to call that function for testing; library(mypackage)? Is that any circular logic any way. For eg. if I create a package mypackage, can I have a file mypackagetest in the tests directory whose line is library(mypackage). It would be helpful if I could get some input on this. Regards Vikram
2012 May 22
1
Naming dimnames in an array using the results of an expression
dear all i'm struggling with naming in an array diag.data is one of a series of 2x2 diagnostic testing arrays, with 'Outcome' columns (true/false) and 'Test' rows (High-risk, Low-risk), drawn from a larger list object of 'results' i can hard-code the names of the array using dimnames; diag.data<-array(c(19,2,125,50),c(2,2)) #example to run - actually comes out