[R] How to auto generate “anchor links “ and directory path to text search function

2020-08-11 Thread Vikram Reddy
I have a tokenized txt document with 'div' tags and 'id' to it : library(quanteda) library(htmltools) library(tidyverse) text <- But how do you do? I see I have frightened you—sit... ” It was in July, 1805, and the speaker.. With

Re: [R] Extracting unique entries by a column

2015-04-14 Thread Vikram Chhatre
uot; by Kernighan and Plauger: > > 10.0 times 0.1 is hardly ever 1.0. > > > - > David L Carlson > Department of Anthropology > Texas A&M University > College Station, TX 77840-4352 > > > -Original Message- > From: R-

[R] Extracting unique entries by a column

2015-04-14 Thread Vikram Chhatre
hecked: >identical(df[1,3], df[2,3]) FALSE How is 0.2967297 different from 0.2967297? I am puzzled. Thanks for any insight. Vikram [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more,

Re: [R] changing column labels for data frames inside a list

2015-03-30 Thread Vikram Chhatre
e last evaluated expression is returned. > > > > > > mylist <- list( > > + data.frame(a = runif(10), b = runif(10)), > > + data.frame(c = runif(10), d = runif(10)), > > + data.frame(e = runif(10), f = runif(10))) > > > mylist2 <- lapply(mylist,

[R] changing column labels for data frames inside a list

2015-03-30 Thread Vikram Chhatre
> summary(mygenfreqt) Length Class Mode dat1.str 59220 -none- numeric dat2.str 59220 -none- numeric dat3.str 59220 -none- numeric > head(mylist[[1]]) 1 2 3 4 5 6 7 8 91011 12 L0001.1 0.60 0.500 0.325 0.675 0.600 0.500 0.500

[R] density in hist does not come as 1

2014-05-19 Thread vikram ranga
be check$counts/length(a) #[1] 0.57317 0.35366 0.04878 0.02439 sum(check$counts/length(a)) #[1] 1 What am I going wrong here? Thank you for your time! Regards, Vikram. sessionInfo() R version 3.1.0 (2014-04-10) Platform: i386-w64-mingw32/i386 (32-bit) locale: [1] LC_COLLATE=English_India.1

Re: [R] ggplot barplot error

2014-05-15 Thread Vikram Bahure
al dates rather than the given dates, > and perhaps to change the date format since the year is common, here > is one way to do it: > > #--- > # Convert to Date format so that we can plot by actual date > DF$Date <- as.Date(as.character(DF$Date)) > > # Need scales package

[R] ggplot barplot error

2014-05-15 Thread Vikram Bahure
ity", "Equity", "Equity",* * "Equity", "Debt", "Debt", "Debt", "Debt", "Debt",* * "Debt", "Debt")* *data <- cbind(Date,Flows,Category)* *## GGplot* *ggplot

Re: [R] Assignment Week 1

2014-01-14 Thread vikram ranga
Hi Dorcas Nduati, Better place to discuss and ask for help about home work is discussion forum of that site. It is one of recommendations is that: you should not post your homework on Rhelp or stackOverflow. On Wed, Jan 15, 2014 at 12:56 PM, arun wrote: > Hi,May be this helps: > set.seed(26)

Re: [R] replace "" to NA.

2014-01-06 Thread vikram ranga
problems. Thanks again! On Mon, Jan 6, 2014 at 8:27 PM, arun wrote: > Hi, > Try: > > > test[test=="" & !is.na(test)] <- NA > A.K. > > > > > On Monday, January 6, 2014 7:51 AM, vikram ranga wrote: > Dear All, > > I am bit stuck to a pro

[R] replace "" to NA.

2014-01-06 Thread vikram ranga
Dear All, I am bit stuck to a problem of replacing "" to NA. I have big data set but here is the toy example:- test<-data.frame( test1=c("","Hi","Hello"), test2=c("Hi","","Bye"), test3=c("Hello","","")) If the data as in above, I could change all "" to NA by this code:- for(i in 1:3){ for(j in

Re: [R] Handle Gps coordinates

2013-11-12 Thread vikram ranga
Hi, You would like to have a look at library(maptools) & library(rgeos) they have amazingly lot of function for such analysis. You can also read GPS data directly in R using maptools. This question is more suitable for r-sig-geo list. On Tue, Nov 12, 2013 at 11:20 PM, Greg Snow <538...@gmail.co

Re: [R] test wilcoxon sur R help!

2013-10-24 Thread vikram ranga
Hi, Check out this function:- pairwise.wilcox.test {package=stats}. example(pairwise.wilcox.test) On Fri, Oct 25, 2013 at 2:15 AM, Rui Barradas wrote: > Hello, > > There's a bug in your function, it should be 'dat', not 'dat1'. In the line > marked, below. > > fun1 <- function(dat){ > m

[R] Fwd: how to retain dimnames while exporting from excel into r

2013-09-12 Thread vikram ranga
-- Forwarded message -- From: vikram ranga Date: Thu, Sep 12, 2013 at 1:02 PM Subject: Re: [R] how to retain dimnames while exporting from excel into r To: Charles Thuo On Thu, Sep 12, 2013 at 12:45 PM, Charles Thuo wrote: > v<- read.csv(file="sales.csv",h

[R] Blur and not readable text, using geom_text in ggplot

2013-09-01 Thread Vikram Bahure
2 2 2 2 2 2 2 2 2 2 ...* * $ text.top : chr "Size (INR bln): 287" "Size (INR bln): 287" "Size (INR bln): 287" "Size (INR bln): 287" ...* * $ text.bottom: chr "Extreme (%): 5.74" "Extreme (%): 5.74" "Extreme (%): 5.74&

Re: [R] Converting character to numeric: Error: (list) object cannot be coerced to type 'double'

2012-12-07 Thread Vikram Bahure
; > Hope this helps, > Rui Barradas > Em 07-12-2012 14:23, Vikram Bahure escreveu: > >> 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

[R] Converting character to numeric: Error: (list) object cannot be coerced to type 'double'

2012-12-07 Thread Vikram Bahure
01A01036: chr "1482181740.00" "1482181740.00" "1482181740.00" "1482181740.00" ...* *> f1 <- as.numeric(f)* *Error: (list) object cannot be coerced to type 'double'* *-----* * * Thanks in

[R] Yahoo/Google quotes symbols

2012-06-12 Thread Vikram Bahure
Vikram [[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-guide.html and provide commented, minimal, self

Re: [R] changing font to italic for one entry in legend()

2012-06-07 Thread Vikram Chhatre
Thanks Paul. That worked beautifully. V On Thu, Jun 7, 2012 at 7:46 PM, Paul Murrell wrote: > Hi > > > On 8/06/2012 12:27 p.m., Vikram Chhatre wrote: >> >> Hello, >> >> I need to change the font for one of the items (C. elegans) in my >> leg

[R] changing font to italic for one entry in legend()

2012-06-07 Thread Vikram Chhatre
Hello, I need to change the font for one of the items (C. elegans) in my legend to italic. Can someone suggest how to accomplish this? legend('bottomright', bty='n', c('C. elegans range', 'Study area'), cex=0.8, fill=c('light gray', 'white'), border=c('black','black')) I tried using lab.font=c(

[R] Resampling question

2012-05-10 Thread Vikram Chhatre
Hello - I have a population of 100 individuals that I would like to bootstrap 10 times, every time removing 5 *different* individuals. So far, I have done the following: pop <- read.table('mypop.txt', header=FALSE) replicate(10, sample(pop, 95, replace=FALSE)) I have not actually gone through

[R] subset daily to monthly in a zoo or xts

2012-04-23 Thread Vikram Bahure
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. Rega

Re: [R] axis labels not showing

2012-04-08 Thread Vikram Chhatre
Indeed. Changing margins brought back the axis labels. Thank you. What I would really like to do is stack these plots atop each other so they share the common x-axis. Is there a way to do it with ggplot2? Vikram On Sun, Apr 8, 2012 at 1:33 PM, ilai wrote: > On Sun, Apr 8, 2012 at 11:40

[R] axis labels not showing

2012-04-08 Thread Vikram Chhatre
Hello - I want to generate stacked plots with par(mfrow)) function. However, my axis labels aren't showing. My script is here: http://pastebin.com/yXXeMQgb The plot is here: http://www.crypticlineage.net/rdisc/strplot.pdf Thank you for your time. V

[R] Remove space from string

2012-01-13 Thread Vikram Bahure
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 [[a

[R] boot.ci: [Error: cannot allocate vector of size 1.5 Gb]

2011-12-19 Thread Vikram Bahure
;bca"))* *Error: cannot allocate vector of size 1.5 Gb* * * It would be very helpful to get some insight on this. Regards Vikram [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listin

[R] Boot: Confidence Interval

2011-12-19 Thread Vikram Bahure
Vikram [[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-guide.html and provide commented, minimal, self-contained

[R] matching using "which"

2011-12-08 Thread Vikram Bahure
would be very helpful to have some insight. * * *> b <- which(colnames(data)%in%c("X.","X"))* *> b* *integer(0)* *> b>0* *logical(0)* *>b<- data[,-b] # does not work properly* * * Regards Vikram [[alternative HTML version deleted]] __

[R] Plotting a zoo object: lines and barplot

2011-11-28 Thread Vikram Bahure
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]] __ R-help@r-p

[R] Superimpose two graphs

2011-11-27 Thread Vikram Bahure
:2, screen = 1)* *par(new= TRUE)* *barplot(RS.active, axes = FALSE)* *dev.off()* * * Regards Vikram [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the post

[R] system.time

2011-11-27 Thread Vikram Bahure
Dear R users. I wanted to know, how do we read the output of system.time. It would be helpful if you could let me know what are user system and elapsed. Regards Vikram [[alternative HTML version deleted]] __ R-help@r-project.org mailing list

[R] Exclude NA while summing

2011-11-17 Thread Vikram Bahure
m not able to sum up the values. *row.sums.m <- apply(dummy.curr.res.m,1,sum)* It would be helpful if I get some input on this. Regards Vikram [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.et

[R] Test Case for Package

2011-10-19 Thread Vikram Bahure
line is library(mypackage). It would be helpful if I could get some input on this. Regards Vikram [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting

[R] Code behind the Function

2011-10-18 Thread Vikram Bahure
Hi, I am a new user in R. I wanted to study the code for some R commands. For example, as I was studying PCA analysis there is a command in R, as "princomp". Normally if we type the command we get the code behind the function, but I am not able to get for this one. *> princomp function (x, ...)

Re: [R] Converting factor into date

2011-10-10 Thread Vikram Bahure
Hi, I am getting my results from the following: *z$Date<-as.Date(as.character(z$Date),format="%d/%m/%y")* instead of: z$Date<-as.Date(as.character(z$Date,format="%d/%m/%y")) Thanks again. Regards Vikram On Mon, Oct 10, 2011 at 4:08 PM, Jeff Newmiller wrote: >

[R] Converting factor into date

2011-10-10 Thread Vikram Bahure
the following: z has Date as a column. *z<- read.csv("data", header = TRUE, sep = "\t") z$Date<- as.Date(z$Date, format = "%d/%m/%y/") *But during this operation I loose all my dates and I get NA's instead of it. It would be helpful to have your inputs. R

[R] Disabling Auto-complete

2011-09-26 Thread Vikram Bahure
$unit==1) + cat("All is well") + } > b<-list(unit1=1 ) > testfunction(b) All is well> __ If it is a auto complete problem, it would be nice if you could let me know how to disable it, else you could throw some light on the what the problem is exactly.

[R] Testing packages

2011-09-23 Thread Vikram Bahure
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 H

[R] Strucchange gbreakpoints

2011-09-21 Thread Vikram Bahure
can access the breakpoints by: res[[1]] I wish to access breakpoints dates but still struggling. I hope get some help. Thanks in advance. Regards Vikram [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.e

[R] Statmath-R-Forge: Request denied

2011-09-21 Thread Vikram Bahure
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

Re: [R] Strucchange generating breakpoints

2011-09-16 Thread Vikram Bahure
"]] >> >> Though without data and a reproducible example I can't guarantee this is >> what you are looking for. More generally, you should look at ?Extract to >> see >> how to get values from R objects. Whatever getting started with R material >> you (sh

Re: [R] estimating Fstats in strucchange

2011-09-14 Thread Vikram Bahure
uments but > rather indices of the object being passed in. This is the source of your > problem: the documentation also suggests that if you pass from a two-value > vector it will work with it as a time series. That might be what you are > looking for as well. > > Hope this helps

[R] Changelog maintenance

2011-09-14 Thread Vikram Bahure
ersion behind in the commit history. How do I solve this? Regards Vikram [[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-projec

[R] Strucchange generating breakpoints

2011-09-14 Thread Vikram Bahure
1960 1969 1975 1983 1994 2003 --- It would be helpful if you can throw some light on how to access the data stored in the breakpoints result instead of manually accessing it. Regards Vikram Bahure [[alternative HTML v

[R] estimating Fstats in strucchange

2011-09-13 Thread Vikram Bahure
a = a3) : inadmissable change points: 'from' is larger than 'to' In addition: Warning message: In Fstats(ecm.model, from = 1953, to = 1955, data = a3) : 'to' changed (was too large) Regards Vikram [[alternative HTML version deleted]] ___

[R] choosing selective data with permutations

2011-08-10 Thread Vikram Chhatre
) itself is not to be permuted, rather the selection of individuals. I am guessing this is probably trivial to do. But I would appreciate any advice on this matter. Thank you. Vikram __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman

[R] Reg : Using R in Web

2011-03-12 Thread Vikram
Hi everyone . I would like to integrate R with Microsoft Silverlight . I would like to know whether we can connect R through any other software . If possible how ? Could anyone help me with this Thanks -- Regards, Vikram Selvaraju Graduate Student The University of Texas at Dallas