Displaying 20 results from an estimated 2000 matches similar to: "R crashes with large vectors"
2017 Sep 16
2
require help
You can just use the same code that I provided before but now use your
dataset. Like this
df <- read.csv(file="data2.csv",header=TRUE)
dates <- as.Date(paste(df$year,"-01-01",sep=""))
myXts <- xts(df,order.by=dates)
head(myXts)
#The last command "head(myXts)" shows you the first few rows of the xts
object
year cnsm incm wlth
2017 Sep 16
0
require help
oky.. thank you very much to all of you
On Sat, Sep 16, 2017 at 2:06 PM, Eric Berger <ericjberger at gmail.com> wrote:
> You can just use the same code that I provided before but now use your
> dataset. Like this
>
> df <- read.csv(file="data2.csv",header=TRUE)
> dates <- as.Date(paste(df$year,"-01-01",sep=""))
> myXts <-
2017 Sep 16
0
require help
> On 15 Sep 2017, at 11:38, yadav neog <yadavneog at gmail.com> wrote:
>
> hello to all. I am working on macroeconomic data series of India, which in
> a yearly basis. I am unable to convert my data frame into time series.
> kindly help me.
> also using zoo and xts packages. but they take only monthly observations.
>
> 'data.frame': 30 obs. of 4 variables:
2012 May 29
2
Converting to XTS loses data.frame structure
Hello,
I noticed something odd when working with data frames and xts objects.
If I read in a CSV file, R creates a nice data.frame. This works well.
If I then convert to an XTS object, I see that all the values in the data are now quoted. My data is a mix of numeric and character. This is usually seen when converting a data.frame to a matrix, as R will treat all the data as the same class.
2017 Sep 15
7
require help
hello to all. I am working on macroeconomic data series of India, which in
a yearly basis. I am unable to convert my data frame into time series.
kindly help me.
also using zoo and xts packages. but they take only monthly observations.
'data.frame': 30 obs. of 4 variables:
$ year: int 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 ...
$ cnsm: num 174 175 175 172 173 ...
$ incm:
2017 Sep 22
2
require help
Assuming the input data.frame, DF, is of the form shown reproducibly
in the Note below, to convert the series to zoo or ts:
library(zoo)
# convert to zoo
z <- read.zoo(DF)
# convert to ts
as.ts(z) #
Note:
DF <- structure(list(year = c(1980, 1981, 1982, 1983, 1984), cnsm = c(174,
175, 175, 172, 173), incm = c(53.4, 53.7, 53.5, 53.2, 53.3),
with = c(60.3, 60.5, 60.2, 60.1, 60.7)),
2010 Mar 16
1
C# DLL Library
Good afternoon everybody,
I am sorry, this question might look trivial to some of you, but I read
quite a lot of stuff about package creation and I would like a bit of you
advices.
I would like to develop a core library which I will be using both from R and
from C#.
I read that it was possible to import DLL to R.
The thing is, I am not sure that the DLL created with C# will be compatible.
I
2010 Feb 19
3
Date label lost while inverting y axis.
Good morning,
I am currently displaying a time series with the time on the Y axis, and the
values on the X axis.
The problem is that I wanted to reverse the Y axis (that is, to have the
latest date the closest to the X axis).
So I looked for a way to do this on this mailing list and I found a
response: inverting the ylim parameter of the plot.
I did it, the data are displayed correctly, but now
2015 Nov 04
1
setOldClass("xts")
Hello,
I apologize that I am cross posting here after getting no answer from
my initial
question on stack overflow
<http://stackoverflow.com/questions/33492601/r-setoldclass-only-if-needed>.
I should certainly have posted it first here..
I am using 3 packages:
- xts
- quantmod
- 'myPackage'
quantmod is creating a union class by doing:
setOldClass("xts");
2010 Apr 08
1
how to manipulate object in specific environment?
Hi
I want to simplify my problem into a prototype, how to write a function to
get all the object in your current environment, e.g. .GlobalEnv, and print
their mode?
For example, if I have object a,b,c... in my environment,
a=1;b='test';c=matrix(0,3,3).....
I want to write a function myfun(), when I run myfun(), this retrieve all
the objects in my environment automatically and print
2012 Jan 21
3
semi-transparency not supported in devel R? "alpha" cannot be specified in qplot()
Hi dear all,
In my laptop(ubuntu 11.10 64bit), I maintained a released R (2.14) and a
developmental R, I can specify qplot(..., alpha = ) in R 2.14 , but when I
try to use transparency in developmental R, I got a warning message and the
plot is clearly not I want.
minimal example:
> qplot(data = mtcars, x = mpg, y = cyl, alpha = cyl)
Warning message:
In grid.Call.graphics(L_points, x$x, x$y,
2012 Jan 21
3
semi-transparency not supported in devel R? "alpha" cannot be specified in qplot()
Hi dear all,
In my laptop(ubuntu 11.10 64bit), I maintained a released R (2.14) and a
developmental R, I can specify qplot(..., alpha = ) in R 2.14 , but when I
try to use transparency in developmental R, I got a warning message and the
plot is clearly not I want.
minimal example:
> qplot(data = mtcars, x = mpg, y = cyl, alpha = cyl)
Warning message:
In grid.Call.graphics(L_points, x$x, x$y,
2010 Apr 27
2
R for ubuntu 10.04?
Hi dear all
I am currently using Ubuntu 9.10 (karmic) and R 2.10, I can find a R release
that support "karmic" in cran under ubuntu directory, I plan to update my
laptop to Ubuntu 10.04 after April 30, since I have to use some new features
or new version in it, e.g. QT 4.6, I don't know if there is going to be a R
release that will support this newly released Ubuntu?
Thanks in
2011 Nov 22
1
Bezier curve in R?
Hi dear all,
I am wondering if there is a function existing in R that did the quadratic
bezier curve interpolation? I hope to generate a bezier curve based on
three sets of points: two end of the line and a control point.
Thanks in advance.
Tengfei
--
Tengfei Yin
MCDB PhD student
1620 Howe Hall, 2274,
Iowa State University
Ames, IA,50011-2274
[[alternative HTML version deleted]]
2010 Apr 12
4
R GUI
I am really new with R Graphical user interfacefunctions. I am developing a
software package to calculate pKa (biochemistry) but I want to make it look
aesthetically pleasing and make it user friendly. I have heard that R has
some GUI (Graphical user interface) and you can do some really cool stuff
out there. What are the limitations and what are some resources for help. I
have found a couple of
2010 Apr 19
2
Select single column, preserve name?
Hi, list-
?? I've got a large list of multi-column data and I'd like to filter
it according to a threshold, such as, "show me the values that are
above 0.4 for each line."
For instance, if the line of data were:
> line
v1 v2 v3 v4 v5 v6 v7 v8 v9
1 -0.32 0.66 -0.35 -0.82 0.38 0.66 -0.02 -0.11 -0.64
I can do this
> line[,line >= 0.4]
2010 Apr 29
2
by funtion
Hello,
I have a data.frame:
name col1 col2 col3 col4
AA 23 54 0.999 0.78
BB 123 5 1 0.99
AA 203 98 0.79 0.99
I want to get mean value data.frame in terms of name:
name col1 col2 col3 col4
AA 113.0000 76.0000 0.8945 0.8850
BB 123.00 5.00 1.00 0.99
I tried to use by function:
>aa<-by(test[,2:5], feature, mean)
2010 May 04
1
installing a package in linux
I recently started using ubuntu 9.10 and I am using gedit editor and R
plugin for writing R code. To install any package I need to do:
$ install.packages()
//window pop-up for mirror selection
//then another window pop up for package selection.
After this as long as I am not exiting, the function of the newly installed
packages are available.
After I exit (i use to put 'no' in 'save
2012 Apr 23
2
Overlay Gene Expression on SNP (copy number) data
Hello,
Can anyone please suggest any packages in R that can be used to overlay gene expression data on SNP (affymetrix) copy number ?
Thanks,
Ekta
Senior Research Associate
Bioinformatics Department
Jubilant Biosys Pvt Ltd,
#96, Industrial Suburb, 2nd Stage
Yeshwantpur, Bangalore 560 022
Ph No : +91-80-66628346
The information contained in this electronic message and in any attachments to this
2010 Apr 27
1
R for Ubuntu 10.04?
Hi dear all
I am currently using Ubuntu 9.10 (karmic) and R 2.10, I can find a R release
that support "karmic" in cran under ubuntu directory, I plan to update my
laptop to Ubuntu 10.04 after April 30, since I have to use some new features
or new version in it, e.g. QT 4.6, I don't know if there is going to be a R
release that will support this newly released Ubuntu?
Thanks
Best