由买买提看人间百态

topics

全部话题 - 话题: rdata
(共0页)
b*****1
发帖数: 99
1
来自主题: Statistics版 - 急问关于.RData文件
你的RData文件是老版本存的,在新版R里打不开。装上你存RData的R就可以打开了。

later
f****7
发帖数: 398
2
来自主题: Statistics版 - 急问关于.RData文件
请教各位牛人,上周存的workspace打不开了,也没把写的function另存下来,不知道
有没有什么方法可以打开那个.RData file把以前的code保存下来。现在打开R就是一条
error message: “Error: ReadItem: unknown type 64, perhaps written by later
version of R”,但是我下了最新版本的R还是同样的问题。在线急等,多谢!!!
c******n
发帖数: 4965
3
来自主题: CS版 - [转载] test.mp
【 以下文字转载自 Linux 讨论区 】
【 原文由 creation 所发表 】
input trash.mp
beginfig(1)
draw begingrf(5in,4in);
rdata("datafile",1);
rdata("datafile",2);
rdata("data2",1);
rdata("data2",2);
matplot("0 1 cg ddash t*");
matplot("2 3 cr ddot tx");
ylabel("blahblah");
xlabel("red is sqrt(x)*1000, green is sqr(x)");
finishgrf; endfig;
end
k****e
发帖数: 126
4
来自主题: Programming版 - 问个超简单的C问题
If a[][] is declared as static storage duration then it will certainly go to
.data segment. If not, the compiler will probably use immediate value
instead.
If you compare the following, (gcc version 4.5.3 -O0)
(1) array a[] has "auto" storage duration.
#include
#include
int foo()
{
int a[] = {3, 4, 5};
return a[2];
}
int main(void)
{
int temp;
temp = foo();
printf("%d", temp);
return 0;
}
Sections:
Idx Name Size VMA LMA File ... 阅读全帖
k****i
发帖数: 101
5
来自主题: Programming版 - 十个包子求助:NodeJS多线程?
// tested, should work :)
(main = () => {
var cluster = require('cluster'),
fs = require('fs')
if (cluster.isMaster) {
(check = () => {
var mand = 'Usage: node thisScript inputDir outputDir ',
opt = '[optional: numberOfWorkerProcesses; default:
numberOfCpuCores]'
if (process.argv.length < 4) {
console.log(mand + opt)
process.exit(1)
}
})();
(schedule = () => {
var ind = process.argv[2],
files = fs... 阅读全帖
s*****n
发帖数: 2174
6
来自主题: Statistics版 - 请问如何写R的macro.
理论上, 当你在一个forlder里面运行R的时候, R会自动调用这个folder下的
.RData文件. 如果你上次退出的时候, 存了workspace, 那么你曾经定义的
函数依然存在.
在Linux下, R的运行目录就是当前目录.
在windows下, 默认是R的安装目录. 你如果退出前保存workspace, 就等于保存了一些
history在默认目录下, 这个等价于你说的config文件. 不同的是, RData好像不是文本
文件, 需要在R里面运行来存储生成.
不过不建议这样, 很容易mess up. 不如显性的写一个my_funciton.txt, 然后把常用的
文件存在里面, 写任何程序之前, 都首先调用这个文件.
Y****a
发帖数: 243
7
来自主题: Statistics版 - R求教
save(A,file='A.RData')
load('A.RData')
A$B
A$C
k****i
发帖数: 101
8
来自主题: Programming版 - 十个包子求助:NodeJS多线程?
var fs = require('fs'),
zlib = require('zlib'),
csv = require('csv'),
P = require('paralleljs'),
ind = process.argv[2] + '/',
outd = process.argv[3] + '/',
files = fs.readdirSync(ind),
p = new P(files),
ins = function(file){return fs.createReadStream(ind+file)},
gnuzip = zlib.createGnuzip(),
parse = csv.parse(),
transform = csv.transform(function(rdata){/*todo*/}),
gzip = zip.createGzip(),
out = function(fil... 阅读全帖
l*******l
发帖数: 204
9
来自主题: Statistics版 - 一个R的问题
library(marray)
filenames <- c("xx","yy")
data<-read.GenePix(filenames)
save(data, “data_raw.RData”)
z**********i
发帖数: 12276
10
来自主题: Statistics版 - 一个R的问题
我试着导入一个文件:GSM170754.gpr
library(marray)
filenames <- c("GSM170754.gpr")
data <-read.GenePix(filenames)
save(data, 'data_raw.RData')
当读入DATA的时候报错:
Reading ... GSM170754.gpr
Error in if (skip > 0) readLines(file, skip) :
missing value where TRUE/FALSE needed
多谢指教!!
s*****n
发帖数: 2174
11
来自主题: Statistics版 - R-Question about attach
you probably saved workspace before, and when you restart R, it loads the
default workspace automatically, which includes the previous definition or
attachment of gender, q1...q4.
What you can do is:
1. find out the default working directory of your R, and then delete the .
RData file. In Windows, it is usually your R installation directory, and in
Unix, it is usually the current directory.
2. You can also do a rm(list=ls()), which erases everything in the memory
and then do a save workspace to
s*******a
发帖数: 705
12
来自主题: Statistics版 - 新手求教:linux下怎么跑R文件?
you really need to know more about computers.
upload your file to the server via ftp/sftp, then login through ssh and run
R
in background. you can use "save.image" function to save your
work space at the end of your program. you can downloaded the saved
".RData" file to your PC and open it in R to check results.
D******n
发帖数: 2836
13
来自主题: Statistics版 - 新手求教:linux下怎么跑R文件?
Since u r using putty i assume u r using windows for local machine, use secu
reFX or sth like that to transfer the xxx.R file to the server.
u have an account on ur server, that means u can write in ur home directory,
u can always go to home directory by "cd ~"
output&>&err is redirection, so that even u close ur putty everything is fin
e, cause it is being run in the background.
for output, just add some line in ur script ,such as, save(yourmatrix,'outpu
t.Rdata');
t****g
发帖数: 715
14
来自主题: Statistics版 - 新手求教:linux下怎么跑R文件?
I am not sure whether it is an error not.
I added these < and (, and press enter
then i have that message.
if i do not press enter again, i get stuck there.
if i press enter, i come back to the command line.
i find err and output in my folder, both empty. but could not find my data
matrix, which i name xxx.RData.
Now I am trying your first command: R CMD BATCH XXX.R. It keeps running. I
get stuck ,and could not come back to the command line. If I close Putty,
would the script continue to run in
t****g
发帖数: 715
15
来自主题: Statistics版 - 新手求教:linux下怎么跑R文件?
Ok, let me summarize what I did under your help. If you have time, could you
have a quick look at it, in case I made a mistake somewhere? Thanks a lot.
My objective: xxx.R, a script in R is saved in my laptop with windows 7. It
takes 10+ days to run, hence I need to use a server with linux and R. The
output of xxx.R is an m by n by p array, which I save as xxx.RData by adding
a line at the end of the script.
My steps:
(1) I installed WinSCP, a tool that I use to exchange files between the
serve
f****7
发帖数: 398
16
来自主题: Statistics版 - 急问关于.RData文件
谢谢回复,可是我的老版本同样打不开的。。。
h*******g
发帖数: 143
17
来自主题: Statistics版 - R 基本问题请教
我有一个 Excel 文件 通过存为 CSV之后, 读入 R 然后存为 RData 文件, 为什么
head()函数 说 Object not found。谢谢。
m*******t
发帖数: 168
18
来自主题: Statistics版 - R 基本问题请教
use ls() to find out the object name. if there is no object exist, there
must be some error for the saved rdata.
(共0页)