similar to: where does R search when source()?

Displaying 20 results from an estimated 5000 matches similar to: "where does R search when source()?"

2004 Jun 20
9
A way to list only variables or functions?
I am curious if there is any way to list only variables or functions in current environment, rather than listing all objects? Thanks. -- Daehyok Shin (Peter) Geography Department Univ. of North Carolina-Chapel Hill
2004 Jun 20
9
A way to list only variables or functions?
I am curious if there is any way to list only variables or functions in current environment, rather than listing all objects? Thanks. -- Daehyok Shin (Peter) Geography Department Univ. of North Carolina-Chapel Hill
2004 Jun 07
7
Vectors of years, months, and days to dates?
The interface for dates in R is a little confusing to me. I want to create a vector of Date objects from vectors of years, months, and days. One solution I found is: years <- c(1991, 1992) months <- c(1, 10) days <- c(1, 2) dates <- as.Date(ISOdate(years, months, days)) But, in this solution the ISOdate function converts the vectors into characters, which can cause serious
2004 Apr 12
4
Only referenc copy when calling C routine?
What happens when I pass an array to a dynamically linked C routine? Is only its reference copied when an array is passed and returned? Or, is its whole content copied? In R extension manual, I found the following description. But, I can't know exactly which is true. "There can be up to 65 further arguments giving R objects to be passed to compiled code. Normally these are copied before
2004 Apr 07
3
More user-friendly error message needed.
When I tried the following commands, I got a strange message. > x<-data.frame(y=c(1:10)) > plot(x$z) Error in xy.coords(x, y, xlabel, ylabel, log) : x and y lengths differ "The data frame, x, does not have a field named z." may be better user-friendly message for this kind of common error. Daehyok Shin
2004 Apr 07
3
More user-friendly error message needed.
When I tried the following commands, I got a strange message. > x<-data.frame(y=c(1:10)) > plot(x$z) Error in xy.coords(x, y, xlabel, ylabel, log) : x and y lengths differ "The data frame, x, does not have a field named z." may be better user-friendly message for this kind of common error. Daehyok Shin
2004 Apr 20
1
Can't find memory.size()
I try memory.size function to find out available memory size, but surprisingly R complains it can't find the function. ?memory.size also failed. Is it not in the base library? If so, why can't my R find it? I am using the binary 1.9.0 version for Mandrake 9.1. Thanks in advance. Daehyok Shin Terrestrial Hydrological Ecosystem Modellers Geography Department University of North
2004 Jul 12
0
Where does R search when source() ?
I have found the use of save( ) and attach( ) when supported by a pair of functions written by my colleague John Miyamoto, move( ) and rm.sv( ) quite useful in managing (1) collections of useful homebrew functions, (2) project workspaces, and (3) "packages" under development. An .Rdata file containing these and other handy functions together with a brief supporting document can be
2004 Apr 06
2
A package to read and write NetCDF?
I am looking for a package to read and write NetCDF files. NetCDF package says it can only read, not write. Another package for the standard binary file format? Daehyok Shin
2004 Apr 05
1
Deep copy in R
I am handling spatial data of huge volumes, so sensitive to the silent duplication of data in script programs. In the following R program, exactly when is the vector data deeply copied? Thanks in advance. 1 v <- 1:10000 2 z <- f(v) --------- function f ---------- 3 f <- function(x) { 4 y = x 5 y[10] = 1 6 xf = date.frame(x=x) 7 xf$x[10] = 1 8
2004 Jul 22
2
Files and classes in a package?
While installing my small package, I met a tricky problem. For clarity, let me explain it with the following simplified example. In ~/pkg/R/aclass.R, setClass("aclass", contains="bclass", representation(i="numeric")) In ~/pkg/R/bclass.R, setClass("bclass", representation(j="numeric")) After building a "pkg" package, the file
2006 Jul 01
5
generate bi-variate normal data
Dear all, I would like to generate bi-variate normal data given that the first column of the data is known. for example: I first generate a set of data using the command, x <- rmvnorm(10, c(0, 0), matrix(c(1, 0, 0, 1), 2)) then I would like to sum up the two columns of x: x.sum <- apply(x, 1, sum) now with x.sum I would like to generate another column of data, say y, that makes
2004 Jun 08
1
binary data
What's the preferred way in R for handling samples with binary data (like chemical fingerprints encoded as hexadecimal strings with 0's and 1's indicating the absence or presence of chemical features) in methods such as clustering and MDS. Do you always have to expand the fingerprint data into individual variables (which can be a few hundreds) or can they be used directly as binary
2003 Mar 06
1
tkexit
Sorry, my question is if exists a command tkexit in R, i need a command how exit of tcl for close an aplication. How to use him. Thank
2011 Sep 28
3
Error : bundle install
c:proj/proj1> bundle install Fetching source index for http://rubygems.org/ Could not find sprockets-2.0.0.beta.10 in any of the sources C:proj/proj1> C:proj/proj1>gem install sprockets -v=2.0.0.beta.10 ERROR: Could not find a valid gem ''sprockets'' (= 2.0.0.beta.10) in any reposito ry ERROR: Possible alternatives: sprockets C:proj/proj1>gem install sprockets
2004 Jul 12
2
.Platform addition (was Re: where does R search when source()?)
On Sun, 11 Jul 2004, Gabor Grothendieck wrote: > search.path <- > function(fn, > paths = strsplit(Sys.getenv("PATH"), split = ";")[[1]], > fsep = "\\") { > for(d in paths) { > f <- file.path(d, fn, fsep = fsep) > if (file.exists(f)) > return(f) > } > return(NULL) > } >
2004 Apr 27
3
R hang-up using lm
Dear R-helpers, I have found a slightly annoying problem when trying to plot lines on graphs. I first created my data using tapply, thus:- y1=as.vector(fit1$coef$random$id) x1=tapply(o1,id,median,na.rm=T) x2=tapply(o2,id,median,na.rm=T) #then I plot the data, thus:- plot(x1[x2==0],y[x2==0]) #if I now try to fit the linear regression, R 'hangs up'
2004 Jul 13
1
Problem with Authnication from NT
Hi Samba Guru's... I have a problem connecting from a windows NT workstation to Samba server. It is working fine for Windows XP and Windows 2000. Samba not logging any information about that Windows NT m/c. Here i am giving the smb.conf file. Please try to help me to work it for Win NT also. Here is my Configuration file. Thanks in advance for any help. # Global Parameters [global]
2016 Mar 24
2
[test-suite] r261857 - [cmake] Add support for arbitrary metrics
Let's move this to llvm-dev. I should describe my goals/motivation for the work I have been putting into the llvm-testsuite lately. This is how I see the llvm-test-suite today: - We provide a familiar cmake build system so people have a known environment to tweak compilation flags. - Together with the benchmark executable we build a .test file that describes how to invoke the benchmark and
2010 Jul 20
2
loop through files and create object
Hi R users, I am a newbie and therefore the naive question. Sorry but I was unable to find an answer online. I would like to read 47 data sets (country1.raw, country2.raw, ... country47.raw) and save into a matrix each time (data1, data2, ....data47). for (i in 1:47){ data(?) <- read.csv(file.path("country", i, ".raw", fsep = ""), header = TRUE) } The read.cvs