search for: izahn

Displaying 20 results from an estimated 43 matches for "izahn".

Did you mean: zahn
2012 Feb 15
7
ggplot rank stack bar automatically.
Hi, all, I am currently trying to learn this example. http://learnr.wordpress.com/2009/03/17/ggplot2-barplots/ I created the stack bar easily. If I would like to rank the stack bar from the highest on the right, shortest on the left and eventually I could show the data "1991-00" on the left and "1823-30" on the right, how could I do that? Apart from this, I find
2007 Oct 25
2
Novice programing question
...is means. I only have one variable, yet the code seems to be based on the covariance between x and y. What is y? Sorry for such a stupid question. I am just trying to figure out how R does things, and I can't seem to get my head around it. Thank you for your patience. -Ista Zahn http://izahn.homedns.org
2011 Aug 22
3
automatic file input
Dear all, I have 100 files which are used as input.and I have to input the name of my files again and again.the name of the files are 1.out, 2.out......100.out. I want to know if there is anything like perl so that i can use something like this- for($f = 1; $f <= 100; $f++) { $file = $f.".out"; I have tried this thing in R but it does not work.Can somebody please help me.
2008 Dec 12
7
character count
Dear list, I have a variable that consists of typed responses. I wish to compute a variable equal to the number of characters in the original variable. For example: > x <- c("convert this to 32 because it has 32 characters", "this one has 22 characters", "12 characters") [Some magic function here] > x [1] 32 22 12 Any ideas?
2017 May 09
2
source(), parse(), and foreign UTF-8 characters
...t by Ista Zahn [4], a StackOverflow search [5]. Best regards Kirill [1] http://utf8everywhere.org/#conclusions [2] https://developer.r-project.org/Encodings_and_R.html [3] https://cran.r-project.org/doc/manuals/r-devel/R-ints.html#Encodings-for-CHARSXPs [3] http://people.fas.harvard.edu/~izahn/posts/reading-data-with-non-native-encoding-in-r/ [4] http://stackoverflow.com/search?tab=votes&q=%5br%5d%20encoding%20windows%20is%3aquestion # Use one of the following: id <- "Gl\u00fcck" id <- "\u5e78\u798f" id <- "\u0441\u0447\u0430\u0441\u0442\u044c\u...
2011 Feb 11
6
linear models with factors
i am trying to fit a linear model with both continuous covariates and factors. When fitted with the intercept term the first level of the factor is treated by R as intercept and the estimate of the effects of remaining levels(say i th level) are given as true estimate of i th level - estimate of 1st level.can any please help me? thanks in advance..... -- View this message in context:
2011 Feb 04
4
aggregate function - na.action
Can someone please tell me what is up with na.action in aggregate? My (somewhat) reproducible example: (I say somewhat because some lines wouldn't run in a separate session, more below) set.seed(100) dat=data.frame( x1=sample(c(NA,'m','f'), 100, replace=TRUE), x2=sample(c(NA, 1:10), 100, replace=TRUE), x3=sample(c(NA,letters[1:5]), 100, replace=TRUE),
2009 Oct 23
1
inspect s4 methods
Hi everyone, I'm sure this has been asked before, but I could not find the right search terms to find it. If I want to see what summarizing a model fit with lm() does, I can write "summary.lm". But what if I want to see what summarizing a model fit with lmer() (lme4 package) does? showMethods(summary) Function: summary (package base) object="ANY"
2010 Jan 25
1
reshape package cast() function
Hi all, I think I'm cracking up. Please help me understand why I'm getting different results with m.test and m.test2 in the example below. > library(reshape) Loading required package: plyr > > m.test <- data.frame(id = factor(rep(1:10, 2)), variable=rep(c("var1","var2"),10), value=rnorm(20)) > cast(m.test, ...~variable, value="value") ## cast
2011 Feb 11
2
extracting p-values from the Manova function (car library)
hi, i am not able to extract the p-values from the Manova function in the car library. I need to use this function in a high-throughput setting and somehow need the p-values produced. Any ideas? Best regards Bettina Kulle Andreassen -- Bettina Kulle Andreassen University of Oslo Department of Biostatistics and Institute for Epi-Gen (Faculty Division Ahus) tel: +47 22851193 +47 67963923
2011 Jul 28
0
R: Re: Problem with anova.lmRob() "robust" package
I'm sorry, maybe the question was bad posed. Ista has well described my problem. Thanks Massimo >----Messaggio originale---- >Da: izahn at psych.rochester.edu >Data: 28/07/2011 17.52 >A: "David Winsemius"<dwinsemius at comcast.net> >Cc: "m.fenati at libero.it"<m.fenati at libero.it>, <r-help at r-project.org> >Ogg: Re: [R] Problem with anova.lmRob() &quot;robust&quot; packag...
2008 Nov 28
3
Contrast SS
Hi all, Hopefully this is an easy question and I've overlooked something simple. I want to present specific contrasts in an ANOVA table. I can of course get the significance tests with summary.lm, but my adviser wants the results in ANOVA format. Here is a minimal example: > x <- factor(c(rep("condition.1", 5), rep("condition.2", 5), rep("condition.3", 5)))
2009 Aug 25
2
how to pass user input to a function?
Hi everyone, I'm building a website (http://yourpsyche.org) using Jeffrey Horner's awesome Rapache module. I want to take user input, and pass it to an R script. At first I was simply using if else statements, but after a while I had so many nested if else's in my code that my head was spinning. So then I started using cat() and source() to write temporary files and read them back in
2011 Feb 21
2
Equivalent of log file in R?
Hi everyone, Is there a way to make R save the workspace output (just the results, not the objects themselves) as you go? I'm running analysis that takes a long time to run and I want to be able to interrupt it without losing all the output to date. Is there an alternative to putting "save.image()" commands after every couple lines of code? Best, Tatyana
2011 Mar 11
4
Any existing functions for reading and extracting data from path names?
Hi helpeRs, I have inherited a set of data files that use the file system as a sort of poor man's database, i.e., the data files are nested in directories that indicate which city they come from. For example: dir.create("deleteme") for(i in paste("deleteme", c("New York", "Los Angeles"), sep="/")) { dir.create(i) for(j in
2009 Oct 25
1
A naive question about permutation tests in the coin package
Dear R helpers, I am trying to understand how to use the independence_test function in the coin package. I think I suffer from a misunderstanding about what the package does. Either that or I do not understand how to use it properly. Specifically, I cannot understand if I can test independence of arbitrary statistics. Take the following example: set.seed(10) d <- data.frame(y = c(rnorm(10,
2011 Aug 16
2
merge(join) problem
I have two datasets: A with columns Open and Name (and many others, irrelevant to the merge) B with columns Time and Name (and many others, irrelevant to the merge) I want the dataset AB with all these columns Open from A - a difftime (time of day) Time from B - a difftime (time of day) Name (same in A & B) - a factor, does NOT index rows, i.e., there are _many_ rows in both A & B with
2011 Mar 09
2
R console Mac
Hi there, I recently switched to Mac and I wonder if there is any way to get the R console to autocomplete names of list objects or slots of objects. The command line version allows to type e.g. list$ and two times the tab button and then comes up with the names of the list objects. Same for slots of e.g. Eset objects like eset. Unfortunately this does not work in the Mac R console. Is there a
2011 Jul 26
2
Accessing the index of factor in by() function
Hello, Here are three vectors to give context to my question below: *id <- c(1,1,1,1,1,2,2,2,3,3,3)) month <- c(1, 1, 2, 3, 6, 2, 3, 6, 1, 3, 5) value <- c(10, 12, 11, 14, 16, 12, 10, 8, 14, 11, 15)* and I want to plot "value" over "month" separately for each "id". Before I can do that, I need to section both month and value, based on ID. I create a
2017 May 09
0
source(), parse(), and foreign UTF-8 characters
...s > > Kirill > > > > [1] http://utf8everywhere.org/#conclusions > > [2] https://developer.r-project.org/Encodings_and_R.html > > [3] > https://cran.r-project.org/doc/manuals/r-devel/R-ints.html#Encodings-for-CHARSXPs > > [3] > http://people.fas.harvard.edu/~izahn/posts/reading-data-with-non-native-encoding-in-r/ > > [4] > http://stackoverflow.com/search?tab=votes&q=%5br%5d%20encoding%20windows%20is%3aquestion > > > > # Use one of the following: > id <- "Gl\u00fcck" > id <- "\u5e78\u798f" > id <-...