Re: [R] Merge several datasets into one

2016-06-30 Thread Lists
Lily Li wrote : I think you are going to have to give us some more detail. What commands did you execute? what are the names of the .csv files in your directory? Can you read one of them as asingle read.csv? > Hi R users, > > I'd like to ask that how to merge several datasets into one in R? I

Re: [R] Metafor - rma.mv function - variance components

2015-04-20 Thread Lists
Carlijn Wibbelink wrote : Dear Carlijn I think that if you set sigma2 to a vector of length 2 it will be possible. > Hi all, > > I have a question about metafor and the rma.mv function. I have fitted a > multivariate model (effect sizes are nested within studies) and I've found two > variances:

Re: [R] R "write" strange behavior in huge file

2014-09-17 Thread Stefan Evert (Mailing Lists)
You probably told R to write out the file as a single long line with fields separated alternately by 380 TABs and one newline � that�s what the ncol argument does (write is just a small wrapper around cat()). cat() doesn�t print lines that are longer than 2 GiB, so it will insert an extra \n af

[R] Disabling shell access through system() possible?

2012-02-20 Thread lists
Hi! I'm deploying R behind a web-app on a linux-server and I don't want to grant the users shell access through the system() function for security reasons. Is there any safe way to deny a user access to the function? I tried a) alter the function in the R-Sources before compiling them. Doesn't

Re: [R] using a dictionary in R

2011-10-19 Thread p . pagel-lists
On Wed, Oct 19, 2011 at 11:06:21AM +0200, Eran Eidinger wrote: > Hi all, > > Is there a way to create a "dictionary" in R, such that it has > pairs? > Something to the effect of: > x=dictionary(c("Hi","Why","water") , c(1,5,4)) > x["Why"]=5 You can do that with named elements of a vector: > foo

[R] Pass By Value Questions

2010-08-19 Thread lists
I understand R is a "Pass-By-Value" language. I have a few practical questions, however. I'm dealing with a "large" dataset (~1GB) and so my understanding of the nuances of memory usage in R is becoming important. In an example such as: > d <- read.csv("file.csv"); > n <- apply(d, 1, sum); must "

Re: [R] help with manipulating data frames (survey analysis)

2008-06-18 Thread Marvin Lists
ote: > S Poetry might help you, though it is not exactly > what you are describing. But the price is right. > > Patrick Burns > [EMAIL PROTECTED] > +44 (0)20 8525 0696 > http://www.burns-stat.com > (home of S Poetry and "A Guide for the Unwilling S User") >

Re: [R] help with manipulating data frames (survey analysis)

2008-06-18 Thread Marvin Lists
various operations on data frames are achieved for practical results. Thanks! Marvin On Wed, Jun 18, 2008 at 11:45 AM, stephen sefick <[EMAIL PROTECTED]> wrote: > an introduction to R > > On Wed, Jun 18, 2008 at 2:11 PM, Marvin Lists <[EMAIL PROTECTED]> > wrote: > &g

[R] help with manipulating data frames (survey analysis)

2008-06-18 Thread Marvin Lists
Dear all, Can anyone recommend a good book or an online tutorial for using data frames in R? I want to do statistical analysis on some survey data and I can specify what I would like to do very easily in algorithmic terms. However, being a n00b to R I am struggling with getting R to execute what

[R] splitting data frame based on a criteria

2008-06-03 Thread Marvin Lists
Hi, I have a data frame that I want to split into two based on the values of a variable in it. The variable Y has numeric values ranging between 0 through 70. I want to plot the frequencies of another variable X in two different cases: - When Y = 0 and - When Y > 0 How does one go about doing thi