Displaying 20 results from an estimated 900 matches similar to: "Viewing a data object"
2006 Aug 25
5
Quickie : unload library
Dear list,
I know it must be obvious and I did my homework. (In fact I've
RSiteSearched with keyword "remove AND library" but got timed
out.(why?)....)
How do I unload a library? I don't mean getting ride of it permanently
but just to unload it for the time being.
A related problem : I have some libraries loaded at startup in .First()
which I have in .Rprofile. Now, I exited R
2006 Jul 07
3
Converting data frame to zoo
Dear list,
I know this is really basic question but I just couldn't get anything
to work. (I did a R site search with keywords "zoo" and "data frame" but
the server timed out on me.)
I have a time series which has the following (typical) format,
DATE Open High Low Close
Volume
01-JAN-2006 5.25 5.25
2007 Apr 24
4
Size of an object in workspace
Hi folks,
Is there a function to show the size of an R object? eg. in Kbytes?
Couple months ago Bendix Carstensen posted this marvelous little function lls(), which shows all objects in the current workspace by mode, class and 'size'. This is a wonderful enhancement to the build-in ls() already and I now have it sourced in my Rprofile.site at startup.
The only drawback is,
2006 Aug 11
3
An apply and rep question
Hi list,
I'm sure the explanation must be laughably simple to the experts out
there, but I just could figure it out. I have a simple data frame that
looks like,
>head(da.off)
DDate OffP
1 2005-01-01 41.23
2 2005-01-02 44.86
3 2005-01-03 44.86
4 2005-01-04 43.01
5 2005-01-05 45.47
6 2005-01-06 48.62
where the first column DDate currently is character, and OffP is
numeric.
I want
2010 Jun 16
4
questions on some operators in R
Hi all,
I have two questions. Can some one give some help?
The first question is regarding the pair of operators "&" and "&&". What
is the
difference between the two?
The second question is regarding "<-" and "=". Usually we use
"<-" as the assignment operator. I saw some people use "=". Is there
any
2012 Feb 03
2
Having trouble controlling plot() output (e.g., color)
I expect that there's something glaringly obvious that I'm overlooking,
as I'm justr getting back involved in using R after a several-month
hiatus (from R). So I welcome clues.
When I invoke plot(), merely specifying a data.frame with 2 columns,
specify the plot type ("type") of "p" ("points"), and that I want the
point to be green ('col =
2010 Dec 23
2
problem installing R on ubuntu
Following the official instructions to install R on ubuntu 10.04, I issued this command on the prompt,
sudo apt-get install r-base
Here is the error msg,
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that
2006 Mar 30
1
Passing values to a Partial
Hi,
I cannot seem to find out how to pass in a value to a partial. Can
anyone help me?
What I am doing(in the code below) is calling a function in my
controller called setobject. This function just redraws the partial. I
want to be able to change the value @objectname, redraw my partial and
have it be able to use that value. The first the page is drawn it works,
but when i call setobject it
2006 Aug 10
2
day, month, year functions
Hi list,
I'm trying to turn a date into something productive. (Not what you may be thinking....)
I want three functions so I could take a "date" object and get the day of week, month, and year from it.
xx <- as.Date("2006-01-05")
month(xx) equal 1
day(xx) equal 5
year(xx) equal 2006
I'm aware of the weekdays() and months() functions in the base package. But
2010 Jun 08
2
type conversion with apply or not
Folks, i thought it should be straightforward but after a few hours poking around, I decided it's best to post my question on this list.
I have a data frame consisting of a (large) number of date columns, which are read in from a csv file as character string. I want to convert them to Date type. Following is an example, where the first column is of integer type, while the rest are type
2007 Aug 21
1
small issue with densityplot
Hi folks,
This is really minor but to someone not familiar with the various tentacles of the lmer package it could be really annoying. I was trying to plot the posterior density of the fixed effect parameters of a lmer model,
> hr.mcmc = mcmcsamp(hr.lmer, n=50000)
> densityplot(hr.mcmc, plot.points=F)
There is this error,
"Error in densityplot(hr.mcmc, plot.points = F) :
no
2007 Sep 22
1
rsync not running on IA64
I have built rsync on IA64 using Intel's 'icc' compiler and can run the
rsync executable interactively but when attempting to run under
'crontab' I get the following error:
+ /home/horace/mccssmb2/src/rsync-2.6.9/rsync -z --partial -v --progress
--recursive --stats --times --links
--exclude-from=/project/horace/mcc101/.rsync-EXCLUDE
--timeout=1200 /project/horace/mcc101
2008 Dec 12
2
Extracting the name of an object into a character string and vice versa
I am still struggling to map a character string to an object name and
vice versa in R.
I thought the as.name() function might work, but observe the following
behaviour ...
> attach(warpbreaks)
> levels(tension)
[1] "L" "M" "H"
> levels(as.name("tension"))
NULL
> objectname<-as.name("tension")
> objectname
tension
>
2010 Aug 18
4
Using objectname in function
Is there anyway I can convert a vectors objectname to a string to be used in
fx:
Monkey<-c(0,0,0,1,1,1)
Wax<-c(1,0,1,0,1,0)
f<-function(x,y){ table(x,y) }
f(Monkey,Wax)
so that the printout is not
y
x 0 1
0 1 2
1 2 1
but
Wax
Monkey 0 1
0 1 2
1 2 1
--
View this message in context:
2012 Jul 28
1
using save() to work with objects that exceed memory capacity
Context: I'm relatively new to R and am working with very large datasets.
General problem: If working on a dataset requires that I produce more than
two objects of roughly the size of the dataset, R quickly uses up its
available memory and slows to a virtual halt.
My tentative solution: To save and remove objects as they're created, and
load them when I need them. To do this I'm
2010 Sep 16
2
question about converting a matrix to a dataframe
First I have a matrix called stocks1:
> class(stocks1)
[1] "matrix"
Here are the first 5 rows of the last 4 columns:
> stocks1[1:5,2:5]
[,1] [,2] [,3] [,4]
[1,] 80.73 31.95 25.4 25.69
[2,] 83.66 31.95 27.12 25.2
[3,] 83.27 32.93 28.74 26.29
[4,] 83.9 34.07 29.77 26.6
[5,] 82.74 35.18 30.24 27.41
Now, why can't I convert this into a dataframe?
2010 Jul 29
1
Crash report: projection pursuit & predict
Folks,
The projection pursuit regression function in the base R seems to crash when the optimization level is set to zero, i.e. the initial ridge terms are accepted without refitting. I encountered this problem in an out-of-sample prediction exercise using predict. But further investigation suggests the issue is with the ppr fit and predict just sppeds up the crash. The other optlevels seem to be
2007 Jul 27
3
getting the name of variables passed to a function
Folks,
I've entered into an R programming territory I'm not very familiar with, thus this probably very elementary question concerning the mechanic of a function call.
I want to know from within a function the name of the variables I pass down. The function makes use of the "..." to allow for multiple unknown arguments,
myfun = function(...) { do something }
In the body I
2007 Aug 29
3
OT: distribution of a pathological random variate
Folks,
I wonder if anything could be said about the distribution of a random variate x, where
x = N(0,1)/N(0,1)
Obviously x is pathological because it could be 0/0. If we exclude this point, so the set is {x/(0/0)}, does x have a well defined distribution? or does it exist a distribution that approximates x.
(The case could be generalized of course to N(mu1, sigma1)/N(mu2, sigma2) and one
2011 Feb 24
6
Cannot connect to the internet
I cannot connect to the INTERNET via my stand alone computer or my
wireless laptop with the /etc/shorewall/interface setting I have.
What Interface setting will allow me to connect to the Internet?
Please see attached document for more details.
------------------------------------------------------------------------------
Free Software Download: Index, Search & Analyze Logs and other IT