Displaying 20 results from an estimated 20000 matches similar to: ".rda vs. .RData"
2012 Apr 24
2
load only one object from a .RData file
Hi list,
Is there a way to load one specific object from a .RData file which contains multiple data objects?? Thanks,
...Tao
2011 Jan 20
1
Question on RData and Rhistory extentions
Hi,
It seems simple but I could not find the solution on the R site.
I can't save properly ".RData" and ".Rhistory" in Windows 7 folders. I get
files with no extension.
Thanks in advance for your help.
JP
Jean-Philippe Puyravaud
9A Frederic Osanam Street
Colas Nagar
Puducherry 605001
E-mail: <mailto:jp.puyravaud@gmail.com>
2012 Dec 20
3
Problem loading .r file
Hello all,
I was trying to load a .r file using source() and load() functions.
Although I could be able to load the codes (mainly few user defined
functions) written in that .r. file correctly, however getting
following error:
> source("D:/Book Code.r")
Error in sys.call(sys.parent()) : node stack overflow
> load("D:/Book Code.r")
Error: bad restore file magic number
2012 Feb 19
2
changing names with different character sets
Dear R People:
I'm trying to replicate something that I saw on an R blog.
The first step is to load in the .rda file, which is fine.
However, some of the names of the columns in the data frame have
special characters, accents, and such.
How do I get around this on a basic keyboard, please?
Thanks,
Erin
--
Erin Hodgess
Associate Professor
Department of Computer and Mathematical Sciences
2012 May 03
6
Cannot read or write to file in Linux Ubuntu
I am the proud owner of a new laptop since my old one died the other day.
Currently I have a dual-boot Windows 7 Home and Ubuntu 12.04 . I'll leave the Windows problems for another post.
I know practically nothing about Linux so I am probably doing something stupid but ... at the moment I cannot seem read or write files in Ubuntu. I am not having any problem saving other documents to the
2010 Oct 29
7
date calculation
Hi list,
Could someone explain to me why the following result is not a integer?
> difftime(strptime("24NOV2004", format="%d%b%Y"), strptime("13MAY2004",
>format="%d%b%Y"), units="days")
Time difference of 195.0417 days
I'm using R2.12.0 on WinXP.
Thanks!
...Tao
2011 Sep 02
1
Platform of image
Dear R users,
When I Save Workspace... and then reopen it, my platform switches
from 64-bit to 32-bit, i.e. the Gui switches between these:
R version 2.13.1 (2011-07-08)
Copyright (C) 2011 The R Foundation for Statistical Computing
ISBN 3-900051-07-0
Platform: x86_64-pc-mingw32/x64 (64-bit)
R version 2.13.1 (2011-07-08)
Copyright (C) 2011 The R
2011 Aug 14
1
FYI : XML 3.4.2 still breaks odfWeave 0.7.17
Dear list,
perusing the GMane archive shows that the issue with XML 3.4.x still bugs
odfWeave users.
I just checked that the newer XML 3.4.2 version still give the same
problem. Using it to weave a bit of documentation written with LibreOffice
3.3.3 (current in Debian testing) leads me to a 192 Kb, 590 pages
document, whereas reinstalling XML 3.2.0 gives me a 4 pages, 24Kb file
(not
2011 Feb 08
3
text file problem-Help needed
Hello!
I have just uninstalled the R 2.4.1 that i was using and installed the latest version (R 2.12.1).
In order to read a text file, i was copying the text file to C/Program Files/R/R 2.4.1, and the previous version was able to read it from there.
I did the same think for the new version (copy text file to C/Program Files/R/R 2.12.1) and i tried to open it:
data <-
2012 Feb 21
4
barplot with both color and shading
Hi list,
I want to draw a bar plot with color indicating one grouping and different shading on top of the color indicating another grouping.? How should I proceed?
Thanks!
...Tao
2012 Nov 07
4
save/load and package namespaces
Could someone explain to me what namespaces are loaded/saved when objects
are saved?
Specifically, I'm using this:
save(list = ls(all.names = TRUE, envir = envir), file = name, envir =
envir)
to save out everything from an environment.
Later, loading it on another machine, I'm surprised to see the load failing
for being unable to load certain packages. Could anyone help me understand
2012 Nov 29
3
what's this character?
Hi list,
I've encounter this problem (see below).? I know it's particularly R-related and it's easy to get by but it still bothers me a lot.?
It looks the last character of "N.C. " is a space to me, but it's clearly not.? Can someone tell me a way to figure out what character is in the last position.
Thanks!
Tao
> levels(dat$flag)[3]
[1] "N.C.?"
>
2013 Feb 07
1
compare objects in two different workspaces
Hi list,
Is there a easy way to compare objects in two different workspace files (i.e. .RData files) in R?? I can use some generic file compare softwares (e.g. BeyondCompare) to binary comparison, but when it says they're different you can't tell where the difference are from.
Thanks!
Tao
2013 Feb 12
7
Is there a neat R trick for this?
Hello all,
given two vectors X and Y I'd like to receive a vector Z which
contains, for each element of X, the index of the corresponding
element in Y (or NA if that element isn't in Y).
Example:
x <- c(4,5,6)
y <- c(10,1,5,12,4,13,14)
z <- findIndexIn(x, y)
z
[1] 5 3 NA
1st element of z is 5, because the 1st element of x is at the 5th position in y
2nd element of z is 3,
2013 Oct 12
1
lmerTest
Hi,
I'm trying to user lmer function from lmerTest package because, if I
understood correectly, it allows to make better inference than lmer method
from lme4 package. However, whatever I do I keep getting this error:
Error in lme4::lFormula(formula = mark ~ ssCount + sTime+ : rank of X =
1660 < ncol(X) = 1895
any ideas what could be a problem?
thanks,
Srecko
[[alternative HTML
2013 Oct 10
1
Rcpp and mclapply
Dear all,
I have an R script that uses Rcpp, and I have been trying to parallelize
it using mclapply (I tried with the multicore and the parallel library)
Sometimes (not always, interestingly), the CPU use for each core drops,
usually so that the total over all cores reaches 100%, i.e., as fast as if
using just one single core fully. I tried my code directly from within
emacs, and also using a
2012 Nov 11
2
Cropping a matrix by rows
Hello r-help,
I've been banging my head against the computer in an attempt to learn how
to divide my matrix into segments by rows. I want to be able to return each
segment as a newly named object. I've tried looking at the apply functions
and creating a for loop but brain no work. Here's the basic starting
objects that I believe would be needed to separate the matrix.
mat <-
2011 Nov 25
3
counting values with some conditions in a simulation
Dear R users,
I am running simulations (1000), and in my simulation I am looking at
specific sums. For example, if the sum is >=4 then count this, if say <3,
then don't count, if the sum=3, then generate a random number from uniform
distribution, if this number is say less than 0.5, then count this sum, if
greater than 0.5, then don't count. I am having trouble with introducing
this
2012 Jan 11
3
64bit R under 32bit winxp
Hi all:
My OS is 32bit winxp,but I wanna install 64bit R2.14.1.
>From the following website,it says "You can also go back and add 64-bit components to a 32-bit install, or vice versa"
http://cran.r-project.org/bin/windows/rw-FAQ.html#Can-both-32_002d-and-64_002dbit-R-be-installed-on-the-same-machine_003f
Does it mean that I can install and run 64bit R2.14.1 under 32bit
2012 Oct 15
2
warning message
Hi list,
Can somebody explain why there are these warning messages?? I just don't get it.? I'm using R 2.15.1 on WinXP.
Thanks!
Tao
> x
[1] -2.143510 -1.157450 -1.315581? 1.033562 -1.225440 -1.179909
>? ifelse(x>0, log2(x), -log2(-x))
[1] -1.099975 -0.210950 -0.395700? 0.047625 -0.293300 -0.238675
Warning messages:
1: In ifelse(x > 0, log2(x), -log2(-x)) : NaNs produced