similar to: assign object to list

Displaying 20 results from an estimated 3000 matches similar to: "assign object to list"

2006 Feb 14
2
How to handle large dataframes?
Dear all I imported a Stata .dta file with the read.dta-function from the foreign-package. The dataframe's dimensions are > dim(d.apc) [1] 15806 1300 Importing needs up to 15 min and calculations with these data are rather slow (although I subset the data before starting analyses). My questions are: 1. Has someone experiences importing Stata files (alternatives to read.dta) ? 2.
2005 Nov 29
1
Indexing variables within lapply?
Hello I am using R 2.2.0 with Windows XP. I've got a five element list object, each element containing two dataframes of equivalent size. > str(mylist) List of 1 $ data1:List of 2 ..$ data1a :`data.frame': 77 obs. of 63 variables: .. ..$ var1 : num [1:77] 0.41375 0.00056 1.43040 1.43528 0.61730 ... .. ..$ var2 : num [1:77] 1.154 1.686 0.673 0.800 0.760 ... ..
2005 Jul 22
3
problems with submitting an eps-file created in R
Dear all I've got some problems submitting a manuscript, because I can't manage creating the favourable eps-file of a graph created in R. The journal's graphic requirements are as followed: format: eps width: max. 6 inches resolution: min. 1000 dpi supported fonts: Arial, Courier, Helvetica, Symbol, Times, Charcoal, Chicago, Geneva, Georgia, Monaco, Zapf, New York Itried to ways
2007 Jun 22
2
extract index during execution of sapply
Hi there During execution of sapply I want to extract the number of times the function given to supply has been executed. I came up with: mylist <- list(a=3,b=6,c=9) sapply(mylist,function(x)as.numeric(gsub("[^0-9]","",deparse(substitute(x))))) This works fine, but looks quite ugly. I'm sure that there's a more elegant way to do this. Any suggestion? Christian
2009 Aug 26
2
Statistical question about logistic regression simulation
Hi R help list I'm simulating logistic regression data with a specified odds ratio (beta) and have a problem/unexpected behaviour that occurs. The datasets includes a lognormal exposure and diseased and healthy subjects. Here is my loop: ors <- vector() for(i in 1:200){ # First, I create a vector with a lognormally distributed exposure: n <- 10000 # number of study subjects
2010 Feb 24
1
Remove missing observations
Hi everyone I have the following problem: My dataframe has 3 variables: ID, Year and and an outcome variable. The dataframe contains repeated measurements because the subjects filled out a questionnaire every year. The time span covers 2 years. Now I want to check if there is a significant change in the outcome over the 2 years with a paired wilcox.test. The problem: Not every subject
2004 Oct 20
2
common axis label in multiple plot area
Hello A very short question: Using multiple plots with par(mfrow=c(3,3)), how can I get R to indicate one common y- and x-axis label? I tried to use text() in par, but this is then overwritten when I plot the graphs. -- Sebastian Leuzinger Institute of Botany, University of Basel Schönbeinstr. 6 CH-4056 Basel Ph. 0041 (0) 61 267 3511 fax 0041 (0) 61 2673504 email: Sebastian.Leuzinger@unibas.ch
2004 Jan 29
0
Creation of Domain- and PDC-SID in samba
John, I finally decided to go for it and kick off our NT-PDC (UB-SERVER). I want to transfer our domain (UB) to Samba 3.0.1 with OpenLDAP (2.1.23-1) as backend on Debian Woody (this machine's netbios-name in my test environment is UB-KIOSK). I read all documentation I could get a hold on and followed these procedures you suggested, but I am stuck... > * From: John H Terpstra >
2007 Jun 24
2
matlab/gauss code in R
Hi all! I would like to import a matlab or gauss code to R. Could you help me? Bye, Sebasti?n. 2007/6/23, r-help-request en stat.math.ethz.ch <r-help-request en stat.math.ethz.ch>: > Send R-help mailing list submissions to > r-help en stat.math.ethz.ch > > To subscribe or unsubscribe via the World Wide Web, visit >
2005 Jul 28
1
stl()
Hello, anyone got an idea on how to use stl() so that the remainder eventually becomes white noise? i used stl repeatedly but there is autocorrelation in the remainder that i can't get rid of. os: linux suse9.3 ------------------------------------------------ Sebastian Leuzinger Institute of Botany, University of Basel Sch??nbeinstr. 6 CH-4056 Basel ph 0041 (0) 61 2673511 fax 0041 (0)
2012 Apr 29
1
Specifying special poisson maximum likelihood
Hi everyone I am stuck on specifying my own maximum likelihood function for a special poisson model. My poisson model is as follow: O ~ Pois(b*N + b*RR*E) With O = observed cases b = constant (known) N = number of unexposed persons (known) E = number exposed persons (known) RR = relative risk (value is assumed under a scenario, e.g. RR=2.0) I used rpois to simulate the values of O for several
2004 Nov 19
0
Machine accounts disabled when created on the fly
Hi all How can I prevent my Samba PDC from setting the D flag (Disabled) in SambaAcctFlags of all machine accounts created on the fly? smbldap-useradd -w from Idealx which is called by the add machine script directive doesn't do that, so i must be Samba... I use Samba 3.0.7, Debian Sarge, ldapsam Backend (OpenLDAP 2.1.30). Here is my conf: [global] workgroup = UB
2008 Jan 07
4
is there something like or() ?
hi, this may be trivial, but we can't seem to find anything adequate, (although there is a work around with match() ). We are looking for something along the lines of plot(table1[table1$var2==or("a","b","c","d"),"var1"]) would be handy, with the potential or() function leading to what plot(table1[table1$var2=="a" |
2006 Jun 14
4
write data from function into external table
Dear list, My apologies if a solution / explanation to this already exists on the list, but it is difficult to assign it to a certain keyword. test<-c(1:3) testfct <- function(x) {test[1]<-100} test [1] 1 2 3 testfct(1) [1] 1 2 3 Basically, I would like to write data into an external table that the function does not know. Why is this not working / what alternatives exist? Thanks,
2008 Jun 18
4
Editor for Mac OSX
Dear R-list I am (forced) to change from Linux to Mac and am now looking for a new editor for R. I would like one that features a split window (console + editor) as well as syntax highlighting. Can anyone help? Especially the split-window feature does not seem to be easily available in the editors desribed on the R-help site, except Emacs, which I am reluctant to start using. I am on a MacBook Air
2011 Mar 04
2
overleap an iteration within a for-loop when error message produced
Dear R-list member, I'm using the function pmnorm() (-->library(mnormt)) within a for-loop. Certain parameter values leads to an error message: "(In sqrt(diag(S)) : NaNs produced, In sqrt(1/diag(V)) : NaNs produced, In cov2cor(S) : diag(.) had 0 or NA entries; non-finite result is doubtful)" obviously because "NaNs" were produced. Is it possible to tell R that it
2005 Dec 13
2
interruption when pasting code into R under linux
hello, has anyone come across the following rather mysterious problem: when pasting large bits of code (100 and more lines) into the R console with the central mouse button (under linux), only part of the code is pasted, and the text interrupts somewhere arbitrarily. It does not happen when smaller bits are pasted subsequently. I use linux suse 9.3 with the latest version of R
2004 Nov 09
1
Migrating NT4 Domain with Idealx tools
Hi all For several days I've been doing tests for our upcoming migration from an NT domain to Samba PDC with ldapsam. We have ~200 clients, mostly NT4 and some Win2k. We want all of our users eventually switch from Windows to KDE on Linux with thin clients through NX :-) I managed to net rpc vampire all user and machine accounts into LDAP, but then I realized some problems: - The
2007 Aug 08
0
Creating netcdf from table
Hi! I have a table with 3 columns, 2 for long/lat coordinates and 1 for values (radon concentration). I have Tables for every week of the year 2006, always same coordinates but other values, i.e. time series. Now I want to create a NetCDF file for, which is much easier to handle than 52 tables. I tried the following for the first dataset (i.e first week):
2005 Jan 06
1
pdbedit syntax for forcing user to change password
Hi all Maybe a stupid question, but I'm not able to figure this out from the manpage nor from the HOWTOs... How can I force a user to change his password at next logon? I tried: # pdbedit -P "user must logon to change password" -C 0 -u username # pdbedit -u username -P "user must logon to change password" -C 0 # pdbedit -P "user must logon to change password"