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
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-
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,
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,
> 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
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
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
ity", "Equity", "Equity",*
* "Equity", "Debt", "Debt", "Debt", "Debt", "Debt",*
* "Debt", "Debt")*
*data <- cbind(Date,Flows,Category)*
*## GGplot*
*ggplot
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)
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
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
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
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
-- 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
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&
;
> 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
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
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
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
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(
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
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
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
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
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
;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
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
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]]
__
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
: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
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
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
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
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, ...)
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:
>
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
$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.
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
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
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
"]]
>>
>> 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
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
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
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
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]]
___
) 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
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
47 matches
Mail list logo