Displaying 20 results from an estimated 10000 matches similar to: "Replacing dates with consecutive observations"
2011 Jun 20
3
importing a file
I haven't used R in a couple of years, and now am trying something as
simple as importing a csv file and am running into problems right away.
*
mydata <- read.csv (Wordata1.csv, sep="")
Error in read.table(file = file, header = header, sep = sep, quote = quote,
:
object 'Wordata1.csv' not found
*I've tried in both as as read.csv and read.table and still get the
2008 Nov 17
2
looking for matches
My question is probably pretty basic, but since I'm really new to R, here it
goes ....
I have two separate data frames that include class names and various other
information on classes. I'm trying to create a match based on class names
and if a match exists to create a third data frame with the class name.
I was hoping to accomplish this with sapply, but I can't figure out if I can
2011 Jun 21
5
converting character to numeric
I'm trying to convert data from character to numeric.
I've imported data as a csv file, I'm assuming that the import is a
database - are all the columns in a database considered "vectors" and that
they can be operated on individually
Therefore I've tried the following
mydata <- as.numeric(mydata$apples)
when i then look at mydata again the named column is still
2009 Feb 19
2
colored maps again
I'm trying to create a colored map that would show the number of students
per state.
My data frame consists of two columns - state and count.
I'm using the following code
library(maps)
map("usa")
library(plotrix)
state.col<-color.scale(gre$count,0,0,c(0,1))
map("state",fill=TRUE,col=state.col)
I'm getting a map, but the values are not being mapped to correct
2009 Mar 31
1
target of assignment expands to non-language object
I'm running the following code
numbers <- 1:50
for (i in 1:50)
assign(paste("model",numbers[i]),i)<-(lm(temp$Overall.Scaled.Score~temp$raw.score))
where I want R to create 50 different models-1:50, but get the following
error message
"target of assignment expands to non-language object". I've tried it with
2009 Feb 17
2
creating a map
I'm trying to create a fairly basic map using R. What i want to get is the
map of the country with circles representing a count of students in each
state.
What I've done so far is as following -
map("state")
symbols(data1$count,circles=log(data1$count)*3,fg=col,bg=col,add=T,inches=F)
this gives me the map of the country, but one that's not populated by my
counts.
Does
2009 Mar 31
1
model selection using ANOVA
I've created a number of models using lm and now want to pick one with the
smallest standard error or the smallest RSS,
I can get a list of RSS using anova function, but is the any way I can then
select one with the smallest RSS from the list?
[[alternative HTML version deleted]]
2009 Mar 04
1
mapping lat and long with maps package
I am trying to overlay a data frame with lat and longitude(which refer to
zip codes) on the map of US that I get by using map ("states").
Is there anyway to do this or do I have to resort to using maptools?
thank you
[[alternative HTML version deleted]]
2011 Sep 27
0
Keep consecutive year observations (remove gap's) in panel data (dataframes). Difficulties in using lag(). Package plm.
Hi everyone.
I have two questions. I’ve found some other questions and answers similar to
these but they didn’t solve my problem.
I’m working with a panel of firm/years observations (see my reproducible
example). I’m using the plm package.
My panel not only is unbalanced but also have some gap’s in years.
#reproducible example
2010 Jul 22
4
Drop firms in unbalanced panel if not more than 5 observations in consecutive years for all variables
Dear R-user,
a few weeks ago I consulted the list-serve with a similar question.
However, my task changed a little but sufficiently to get lost again. So
I would appreciate any help on the following issue.
I use the plm package and work with firm-level data in a panel. I would
like to eliminate all firms that do not fulfill the requirement of
having an observation in every variable used for at
2009 Jul 21
1
is a sequence of dates consecutive, without gaps?
I have a long sequence of dates, about 6 years worth, as one column in a
data frame. How can I test whether the sequence is consecutive, that is,
without gaps?
Thanks.
--Chris
--
Christopher W. Ryan, MD
SUNY Upstate Medical University Clinical Campus at Binghamton
40 Arch Street, Johnson City, NY 13790
cryanatbinghamtondotedu
"If you want to build a ship, don't drum up the men to
2008 Oct 09
1
Biplot connecting consecutive dates (ggplot?)
I would like to connect the dots based on when they occur in time. Is
there an easy way to do this?
thanks
f <- (structure(list(date = structure(c(1L, 2L, 3L, 10L, 11L, 12L,
13L, 14L, 15L, 16L, 17L, 18L, 19L, 4L, 5L, 6L, 7L, 8L, 9L, 2L,
3L, 10L, 13L, 14L, 15L, 16L, 17L, 18L, 19L, 4L, 5L, 6L, 7L, 9L
), .Label = c("1/1/03", "1/1/04", "1/1/06", "10/1/02",
2002 Jan 08
1
Interactive
My Mail StationeryIs it possible to have interactive graphic display in R
just like S-Plus?
______________________
Indrajit SenGupta
Department Of Statistics
St. Xavier's College
Calcutta University
indra_calisto at yahoo.com
indrajitsg at vsnl.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2017 May 30
4
RFC: Replace usage of Alias Set Tracker with MemorySSA in LICM
Hi,
I wanted to give a heads-up that I've been looking into replacing the
AliasSetTracker(AST) with MemorySSA in the Loop Invariant Code Motion
(LICM) pass.
I would love to get feedback on the best way to incrementally push in this
change.
Motivation:
There has been an outstanding issue with using the Alias Set Tracker due to
its expensive construction time (quadratic).
We've had test
2018 Feb 13
2
R Compilation gets stuck on Windows 64
In the file MkRules.local.in, I see the line: USE_ATLAS = NO which I
believe needs to be changed to YES. But how do I specify the BLAS file
*libopenblas_haswell-r0.2.20.a
*and its location?
Regards,
Indrajit
On Tue, Feb 13, 2018 at 6:41 PM, Indrajit Sen Gupta <indrajitsg at gmail.com>
wrote:
> I was able to compile the R from the github by running build-r-devel.bat!
>
> Now need
2018 Feb 13
2
R Compilation gets stuck on Windows 64
On Tue, Feb 13, 2018 at 12:22 PM, Indrajit Sen Gupta
<indrajitsg at gmail.com> wrote:
> Hi Avraham,
>
> I tried with the patched version. The same error message.
>
> gcc -std=gnu99 -m64 -shared -s -mwindows -o R.dll R.def console.o dynload.o
> editor.o embeddedR.o extra.o malloc.o opt.o pager.o preferences.o psignal.o
> rhome.o rt_complete.o rui.o run.o shext.o
2006 May 09
3
Using DBI and RMySQL
Dear All,
I am having a bit of problem using the DBI and RMySQL
package. I have already installed DBI but now I want
to connect to MySQL. So how do I do it. The CRAN
package repository does not have RMySQL windows binary
to install from?
Regards,
Indrajit Sen Gupta
Business Analyst
Mu Sigma Business Solutions Pvt Ltd
#21/1-1, Nawab Towers
Cunningham Road
Bangalore 560 052, India
Tel: +91 80
2019 Aug 28
3
Turning on MemorySSA for loop passes
Hi all,
After a long ride, I'm planning to turn on the use of MemorySSA for loop
passes (D58311 <https://reviews.llvm.org/D58311>) tomorrow (8/29).
Please let me know if you have issues, concerns or feedback on this.
Best,
Alina
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2020 Feb 10
2
RFC: Mark BasicAA as a CFG-only pass.
On 2/10/20 2:35 PM, Alina Sbirlea wrote:
> Hi,
>
> Here's a tentative patch of the changes for this: D74353
> <https://reviews.llvm.org/D74353>.
I suppose that, as expected, it's invalidated less often this way. Given
that it's generally stateless, does this really represent a cost savings?
-Hal
>
> Thank you,
> Alina
>
>
> On Mon, Feb 10,
2018 Feb 09
3
R Compilation gets stuck on Windows 64
Hi Avraham,
What a coincidence, I have been following this post of yours:
https://www.avrahamadler.com/2013/10/24/an-openblas-based-rblas-for-windows-64-step-by-step/
Looks like this post is slightly older than what you have shared
previously. It is strange that you did not get the attachments. I am
pasting the contents of the MkRules.local here: