Hi Dr Polanski,
I would recommend you do this in excel seeing as you know how to work with
excel. You can use excel to put different parts of a cell into another cell.
For example if cell A1 is 12*23 34*45
And you want "12" in a separate cell (say cell A2) go to cell A2 and type:
=LEFT(A1,2
It is good to know R is up to the task and I have to agree with Ista and
Jeff that if you are more comfortable in R use it. By way of comparison
the python code would look something like what is below. You would need to
tweak the regular rexpression (re.match(...) to fit your needs but if you
are
I agree, R will be fine for this. Not being as expert with regex as
Jeff I would tend to do this in a few steps, something like
library(XLConnect)
DF <- readWorksheetFromFile( "exampX.xlsx", sheet="examp" )
library(stringi)
## insert a marker between the text and the numbers
txt <- stri_replace_al
Bill/Ravi:
I believe the problem is that the factor is automatically created when
a data frame is created by read.table(). By default, the levels are
lexicographically ordered. The following reproduces the problem and
gives a solution.
>library(lattice)
> z <- data.frame(y = 1:9, x = rep(c("pre"
I think R is quite capable of doing this. You would have to learn a
comparable number of fiddly bits to accomplish this in R, Python or Perl.
That is not to say that learning Perl or Python is a bad idea... but in
terms of "shortest path" I think they are of comparable complexity. All
three la
Are you sure the factors of T are in the order you think they are? (Are you
sure you are using the expected version of T.) Use print(levels(T)) to
make
sure.
I tried
timeCats <- c("Presurgery", "Day 30", "Day 60", "Day 180", "Day 365")
d <- data.frame(T = factor(rep(timeCats, 11:15), lev
David and Peter, I want to give a *very* belated thanks for your responses.
They were enlightening. I ultimately used the wilcox_test function from the
coin library.
Cheers,
Brad
W. Bradley Knox, PhD
http://bradknox.net
bradk...@mit.edu
On Wed, Sep 3, 2014 at 4:20 PM, peter
Hi,
I have a fairly elementary problem that I am unable to figure out. I have a
continuous variable, Y, repeatedly measured at multiple times, T. The variable
T is however is coded as a factor variable having these levels: c("Presurgery",
"Day 30", "Day 60", "Day 180", "Day 365").
When I plot
Try asap utilities (Home and Student edition),
http://www.asap-utilities.com/index.php. When installed it will look
like this in Excel,
Select Columns & Rows and then #18.
If that is not helpful, then DigDB, http://www.digdb.com/, but this one
requires a subscription. It will also split colum
Since neither of the objects named in the error message, dates and
spi.plot, show up in your script, it's pretty much impossible to guess.
You will probably find that if you do
length(dates)
nrow(spi.plot)
you will get different numbers. Perhaps 30 for one of them and 52559 for
the other. (T
Does it have to be pure R? Imagemagick provides command-line tools to do
that, and can be called from within R using system().
Sarah
On Wednesday, January 21, 2015, Vera Thiemig <
vera.thie...@ext.jrc.ec.europa.eu> wrote:
> Dear all,
>
>
>
> I would like to reduce the bit depth of a png file fro
Dr. Polanski, I would recommend something else. Given the messy nature of
your data I would suggest using a language like Python or Perl to extract
it to an appropriate format. Python has good regular expression support
and unicode support. If you can save your data as a csv file or even text
li
Hi all!
Sorry to bother you, I am trying to learn some R via coursera courses and other
internet sources yet haven’t managed to go far
And now I need to do some, I hope, not too difficult things, which I think R
can do, yet have no idea how to make it do so
I have a big set of data (empirical)
On 21/01/2015 10:18 AM, Paromita Guha wrote:
Hi all,
I have a dataset with more than 16800 rows and 2000 columns. I have been
trying to run some econometric estimation and regressions as well as some
statistical procedures on the dataset and R keeps giving me errors.
That's only 33 million ent
> -Original Message-
> From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of
> Paromita Guha
> Sent: Wednesday, January 21, 2015 7:19 AM
> To: r-help@r-project.org
> Subject: [R] Need help with BIG Data
>
> Hi all,
>
> I have a dataset with more than 16800 rows and 2000 columns.
I am trying to run a simple one-dimensional Bayesian IRT-model on a 9
(respondents)*43(items) dataset, but I want to specify separate normal
priors for my item-parameters.
With sample data, I run
data(SupremeCourt)
priors<-matrix(NA,ncol=43,nrow=2)
priors[1,]<-0
priors[2,]<-seq(1,43,1)
posterior3
There is a section in the High-Performance Computing (HPC) CRAN Task View
on "Large memory and out-of-memory data" (
http://cran.r-project.org/web/views/HighPerformanceComputing.html) that
should probably be the first place to start.
On Wed, Jan 21, 2015 at 8:18 AM, Paromita Guha wrote:
> Hi all
Hi everyone,
I am trying to obtain predictions from a smooth of vectors. I have
successfully modeled the smooth vectors, using the following:
test=gam(outcome~s(matb,by=mat,k=4))
summary(test)
plot(test)
Both matb and mat are matrices, each containing 7 columns.
I am unsure of how to set up the
Hi all,
I have a dataset with more than 16800 rows and 2000 columns. I have been
trying to run some econometric estimation and regressions as well as some
statistical procedures on the dataset and R keeps giving me errors.
I tried attaching the data and I was unable to do so.
Could anyone pleas
Dear all,
I would like to reduce the bit depth of a png file from originally 24 to 8
(with the main intention to decrease the file size).
With the ordinary png(.) command it seems to be not possible. So, I created
first the png file and then re-wrote it with writePNG of the png package
(htt
Hi,
Kindly help me out on this error from running SPI package. I am trying to
run SPI package with 30 years rainfall data but I get this error:
Error in data.frame(dates = dates, spi.plot[, 1:ncolumn]) :
arguments imply differing number of rows: 30, 52559
script
require("raster")
requ
Hi,
Kindly help me out on this error from running SPI package. I am trying to
run SPI package with 30 years rainfall data but I get this error:
Error in data.frame(dates = dates, spi.plot[, 1:ncolumn]) :
arguments imply differing number of rows: 30, 52559
script
require("raster")
requ
Javad,
You question is a little too broad to be answered definitively. Also, this
is not a code writing service. You should make a meaningful attempt and we
are here to help when you get stuck.
1. If you want to know if you can do neural nets, the answer is yes. The
three packages most commonl
*RMS Short Course 2015*
Frank E. Harrell, Jr., Ph.D., Professor and Chair
Department of Biostatistics, Vanderbilt University School of Medicine
*March 3, 4, 5 & 6, 2015* With Optional R Workshop March 2
9:00am - 4:00pm
Student Life Center Board of Trust Room
Vanderbilt University
Nashville Tenness
Thanks
Regards,
Lalitha K.
Associate Software Engineer
917411291011
From: Jeff Newmiller
Sent: 21 January 2015 21:34
To: Lalitha Kristipati; R-help@r-project.org
Subject: Re: [R] New to R
This is not really a question about R... it is a question abou
Hi Petr,
your solution works also perfectly, thanks a lot! Again, I have learned new
things :)
(Sorry for problems with the dput...)
Best wishes,
Zuzana
On 21 January 2015 at 11:57, PIKAL Petr wrote:
> Hi
>
> I am not sure if I catch it correctly but from your example state has
> preferen
Hi
I am not sure if I catch it correctly but from your example state has
preference over state new except in the case where state is 0.
I would change state_bef 0 to NA and use na.locf function from zoo package.
test$state_bef[test$state_bef=="0"] <- NA
test$state_bef <- na.locf(test$state_bef,
Hi Jim,
your code works just perfectly, it is exactly what I was looking for, thank
you very much!!! I'm glad to learn something new, I haven't seen the use of
"drow in 1:(dim(all)[1])" before.
I made the code a bit shorter, excluding the use of "stat_bef" column,
which I created just for my inte
Cross-posted here:
http://stackoverflow.com/questions/28039426/could-not-find-function-observeevent-in-shiny
Cross-posting is considered to be impolite.
Regards,
Pascal
On Wed, Jan 21, 2015 at 1:20 PM, Ramkishore Swaminathan
wrote:
> Hi fellow R community users,
>
> I am using the shiny server
29 matches
Mail list logo