Displaying 20 results from an estimated 3000 matches similar to: "set working directory to current source directory"
2012 Jan 11
3
Command completion of the R binary / Ubuntu
Dear Deepayan and dear list,
I notice a small inconsistency with the command completion of the R CMD
check. --no-latex is deprecated sincs R 2.12.0 and defunct since 2.13.0
but the command line completion still suggests it:
cb at cbdesktop:~/r-devel$ bin/R CMD check --no-<here I hit tab>
--no-clean --no-examples --no-latex --no-vignettes
--no-codoc --no-install
2012 Jan 11
3
Command completion of the R binary / Ubuntu
Dear Deepayan and dear list,
I notice a small inconsistency with the command completion of the R CMD
check. --no-latex is deprecated sincs R 2.12.0 and defunct since 2.13.0
but the command line completion still suggests it:
cb at cbdesktop:~/r-devel$ bin/R CMD check --no-<here I hit tab>
--no-clean --no-examples --no-latex --no-vignettes
--no-codoc --no-install
2013 Apr 23
2
Needed: Beta Testers and Summer Camp Students
Greetings.
I'm teaching linear regression this semester and that means I write
more functions for my regression support package "rockchalk". I'm at
a point now were some fresh eyes would help, so if you are a student
in a course on regression, please consider looking over my package
overview document here:
http://pj.freefaculty.org/R/rockchalk.pdf
That tells how you can grab
2011 Jun 09
1
Data package questions
In process of creating data package from an existing one.
The current package has both raw data files and the associated
RData objects created from them. Currently, the data subdirectory
is 1.5Mb and the extdata is 5.4Mb.
Never having created a data package before, how is this best
done? Should the data package contain only the raw data, or
the RData objects too (tightly coupled)? If the later,
2013 Feb 12
1
Contribution
Hi,
I am Parthasarathy G , from IIT Maras ( India ). I am currently in third
year of the undergraduate course.
I would like to contribute to the R project. Can anyone guide me regarding
this?
Thanking you,
Parthasarathy
[[alternative HTML version deleted]]
2011 Oct 13
1
Package snow: is there any way to check if a cluster is "acticve"
Is there a 'proper' way of checking if cluster is active. For example, I create a cluster called .PBcluster
> str(.PBcluster)
List of 4
$ :List of 3
..$ con :Classes 'sockconn', 'connection' atomic [1:1] 3
.. .. ..- attr(*, "conn_id")=<externalptr>
..$ host: chr "localhost"
..$ rank: int 1
..- attr(*, "class")= chr
2013 Mar 06
1
Transpose a big data file and write to a new file
Dear all:
I have a big data file of 60000 columns and 60000 rows like that:
AA AC AA AA .......AT
CC CC CT CT.......TC
..........................
.........................
I want to transpose it and the output is a new like that
AA CC ............
AC CC............
AA CT.............
AA CT.........
....................
....................
AT TC.............
The keypoint is I can't read
2012 Mar 28
2
--as-cran / BuildVignettes: false
I have packages where I know CRAN and other test platforms do not have
all the resources to build the vignettes, for example, access to
databases. Previously I think putting
BuildVignettes: false
in the DESCRIPTION file resolved this, by preventing CRAN checks from
attempting to run the vignette code. (If it was not this, then there was
some other magic I don't understand.)
Now, when
2011 May 18
3
Help with 2-D plot of k-mean clustering analysis
Hi, all
I would like to use R to perform k-means clustering on my data which
included 33 samples measured with ~1000 variables. I have already used
kmeans package for this analysis, and showed that there are 4 clusters in my
data. However, it's really difficult to plot this cluster in 2-D format
since the "huge" number of variables. One possible way is to project the
2013 Mar 18
2
OrgMassSpecR peak area issue
Hello!
I am having an issue with the OrgMassSpecR package. I run my HPLC using a
DAD detector. My raw data is exported form chemstation as a csv file. I
then upload the csv into Rstudio no problem. Using the DrawChromatogram
function, I get a nice chromatogram, and my retention time, peak area, and
apex intensity values are given as well.
The problem comes with the peak area value given. The
2012 Apr 02
2
R datasets ownership(copyright) and license
Dear R Developers,
Recently filed (and dismissed ;) ) law suit by Astrolabe against tz
database developers caused a lot of media-press and discussions and
created some kind of precedence in the USA [3]. But also it imho showed
that similar attacks might happen in the future, and possibly against
data sets which are not that obviously "factual" thus after all might
fall under copyright
2011 May 04
1
Outlier removal by Principal Component Analysis : error message
Hi,
I am currently analysis Raman spectroscopic data with the hyperSpec package.
I consulted the documentation on this package and I found an example
work-flow dedicated to Raman spectroscopy (see the address :
http://hyperspec.r-forge.r-project.org/chondro.pdf)
I am currently trying to remove outliers thanks to PCA just as they did in
the documentation, but I get a message error I can't
2012 Jan 12
3
remoting ESS/R with tramp
Tom Roche Thu, 12 Jan 2012 11:56:25 -0500
>>> * I have access to the cluster [where I want to run R] configured
>>> [in .ssh/config] such that I can `ssh t` from commandline.
>>> 1 I can open an R file on the cluster with
>>> `C-x C-f /t:/home/me/onlyOrigDN2.r`
>>> from my laptop, and note the following
>>> *Messages*
>>> >
2013 Jun 26
3
match rows of R
Hi all,
What would be an efficient way to match rows of a matrix to a vector?
ex:
m<-matrix(1:9, nrow=3)
m [,1] [,2] [,3]
[1,] 1 4 7
[2,] 2 5 8
[3,] 3 6 9
#################################
which(m==c(2,5,8)) # I want this to return 2
######################
Thanks,
Sachin
[[alternative HTML version deleted]]
2012 Aug 13
4
if else elseif for data frames
Hi all,
It seems like I cannot use normal 'if' for data frames. What would be the
best way to do the following.
if data$col1='high'
data$col2='H'
else if data$col1='Neutral'
data$col2='N'
else if data$col='low'
data$col2='L'
else
#chuch a warning?
Note that col2 was not an existing column and was newly assigned for this
2013 Sep 13
2
xtable use plus minus
I am using a similar dataset to the following:
a= c("Fruits", "Adam","errorA", "steve", "errorS",
"apples", 17.1,2.22, 3.2,1.1,
"oranges", 3.1,2.55, 18.1,3.2 )
a_table=data.matrix(t(matrix(a,nrow=5)))
I would like to plus minus every second column starting from errorA (using
xtable/ hmisc)
example output (ignoring
2012 Aug 14
4
pass by reference
Hi all,
I want to do the following:
data<-data.frame(col1=c(1,2,3,4,5))
getcol2<-function(data){
data$col2[data$col1<=2]="L"
}
getcol2(data)
Unfortunately in the above col2 does not appear in the final data. So how
would you pass this by reference such that you would get it back?
Thanks,
Sachin
[[alternative HTML version deleted]]
2011 May 26
4
predictive accuracy
I am trying to develop a prognostic model using logistic regression. I
built a full , approximate models with the use of penalization - design
package. Also, I tried Chi-square criteria, step-down techniques. Used
BS for model validation.
The main purpose is to develop a predictive model for future patient
population. One of the strong predictor pertains to the study design
and would not
2013 May 02
3
Divide matrix columns by different numbers
Hi all,
I have a feeling the most efficient way to do the following is to use
apply, but I'm still wrapping my head around the function.
k=matrix(1:6,nrow=3)
div=1:2
Questions is how do I get R to divide the first column by 1 (div[1]) and
the second column by 2 (div[2])
k/div treats k as a vector and does the following (not what I want)
>k/div
[,1] [,2]
[1,] 1 2
[2,]
2013 Apr 18
3
Using different function (parameters) with apply
Hi All,
I have the following problem (read the commented bit below):
a<-matrix(1:9,nrow=3)
a
[,1] [,2] [,3]
[1,] 1 4 7
[2,] 2 5 8
[3,] 3 6 9
div<-1:3
apply(a,2,function(x)x/div) ##want to divide each column by div-
instead each row is divided##
[,1] [,2] [,3]
[1,] 1 4.0 7
[2,] 1 2.5 4
[3,] 1 2.0 3