Displaying 20 results from an estimated 30000 matches similar to: "how to go to a line in R"
2009 Jun 22
2
what's the R command to make the following?
Hi,
I have a simple question, suppose I have the date "05/16/2008", what would
be the command to get the month, day and year?
Thanks,
-Jack
[[alternative HTML version deleted]]
2010 Mar 12
3
how to plot only the upper triangle using the pairs function?
Hi,
I am trying to use function pairs to plot the scatterplot, but I only want
to keep the upper triangle, what's the argument to do this?
Thanks,
-Jack
[[alternative HTML version deleted]]
2011 Aug 17
2
question regarding gregexpr and read.table
Hi,
I have a silly question regarding the usage of two commands: read.table and
gregexpr:
For read.table, if I read a matrix and set header = T, I found that all the
dash ("-") becomes dots (".")
A = read.table("Matrix.txt", sep = "\t", header = F)
A[1,1]
# "A-B-C-D".
A = read.table("Matrix.txt", sep = "\t", header = T)
2009 Nov 10
1
how to suppress the output from stepAIC?
Hi,
I am now running a cross-validation using coxph coupled with stepAIC for
model selection, is there anyway to suppress the output? It's too much.
-Jack
[[alternative HTML version deleted]]
2011 Aug 17
1
question regarding headers with space in the names
Hi,
After I read an xlsx file into the work space:
A <- read.xlsx("B.xls", header = T, check.names = F)
There are several headers with the names like:
colnames(A) [1:4]
# [1] "A 1" "B"
[3] "C 2" "D"
I can get the content of column 2 and column 4 easily by
A$B or A$D
However, I can not type
2008 Dec 09
1
Can elastic net do binary classification?
Hi, List
The elastic net package (by Hastie and Zou at Stanford) is used to do
regularization and variable selection, it can also do regression. I am
wondering if it can perform binary classification (discrete outcome).
Anybody having similar experience?
Many thanks,
-Jack
[[alternative HTML version deleted]]
2008 Jan 10
1
question on how to extract values from atomic vector
Dear List,
I have an atomic vector named "Results"
Results
[1] 1 1 1
attr(,"prob")
[1] 0.6666667 1.0000000 1.0000000
Levels: 0 1
when I type
attributes(Results)
$levels
[1] "0" "1"
$class
[1] "factor"
$prob
[1] 0.6666667 1.0000000 1.0000000
However, when I type
Results$prob
It has the following warning message:
NULL
Warning message:
In
2008 Jan 19
1
how to use different variable to store values with different length in a loop
Hi, List
I am trying to use variables named A1, A2, ..., A100 to store some values,
each variable could store some values with different length, how can I
achieve this?
Thanks,
Jack
[[alternative HTML version deleted]]
2010 Jul 14
1
question about SVM in e1071
Hi,
I have a question about the parameter C (cost) in svm function in e1071. I
thought larger C is prone to overfitting than smaller C, and hence leads to
more support vectors. However, using the Wisconsin breast cancer example on
the link:
http://planatscher.net/svmtut/svmtut.html
I found that the largest cost have fewest support vectors, which is contrary
to what I think. please see the scripts
2004 May 01
1
RWinEdt, R.profile and version 1.9.0
Hi,
I have just upgraded from the 1.8.1 to the 1.9.0 version of R, and have some trouble to run RWinEdt from the .Rprofile file (in the
user folder). The script is:
library(MASS)
library(lattice)
cat("Load editor?(y/n default = y): ")
nf <- as.character(readLines(n = 1))
if ((nf=="y")|(nf=="Y")|(nf=="")) {library(RWinEdt)}
rm(nf)
When run at start,
2005 Sep 21
5
error when loading rwinedt
the error msg is:
> local({pkg <- select.list(sort(.packages(all.available = TRUE)))
+ if(nchar(pkg)) library(pkg, character.only=TRUE)})
Error in if (RWinEdtVersion) RWinEdtVersion <- scan(file.path(InstallRoot, :
argument is of length zero
Error: .onAttach failed in 'attachNamespace'
Error: package/namespace load failed for 'RWinEdt'
> version
_
2007 Oct 31
2
R WinEdt on Windows vista
Hi!
I was trying to install the RWinEdt library on a Windows Vista machine which had R 2.6.0, WinEdt 5.4 and the RWinEdt1.7.8.zip file in the library folder under the ...\R\2.6.0 directory. I am able to install fine form the local zip but I can't launch winedt from within R for some reason.
> utils:::menuInstallLocal()
package 'RWinEdt' successfully unpacked and MD5 sums checked
2006 Mar 10
6
Linux editor like WinEdt?
Hi to all,
I initiate in R - Linux and I've some problems to find an editor with R
interface as like RWinEdt for WinEdt.
Anyone know one?
Thanks in advance for your kind cooperation.
Best regards
Atenciosamente
Ana Patricia Martins
-------------------------------------------
Serviço Métodos Estatísticos
Departamento de Metodologia Estatística
Telef: 218 426 100 - Ext: 3210
2008 Dec 31
1
Instalación de WinEdt para R
Buenas tardes a todos:
Primero que nada un saludo y desearles un feliz 2009. Escribo para que me
asesoren con la instalación de un editor de R, estube siguiendo los pasos de
un manual
1. Instalar R
2. Instalar WinEdt 5 (V. 5.2 o superior)
3. Instalar *SWinRegistry *(disponible en
http://www.omegahat.org/SWinRegistry): *Packages
! Install package(s) from local zip ¯les...
*
4. Instalar
2009 Nov 08
1
Windows 7 editor - I can't make RWinEdt work
Good morning
I just got a new computer with Windows 7. R works fine, but the editor I am used to using "RWinEdt" does not. I did find one blog post on how to get RWinEdt to work in Windows 7, but I could not get those instructions to work either.
Is there a patch for RWinEdt?
If not, is there another good R editor that works under Windows 7?
I tried RSiteSearch with various
2011 Jul 18
2
Doesnt' winedt 6 version work as Rwinedt?
Dear All,
I've tried install Rwinedt using my Winedt 6.
I cannot see R tab in Rwinedt even though I followed the instruction.
(Installed RWinEdt and called the library)
Version 6 doesn't work? If not, if would you recommend an R editor for
window user?(Except for Emacs)
Thanks,
[[alternative HTML version deleted]]
2011 Jun 29
1
RWinEdt
I have a problem using RWinEdt 1.8.2 in Windows 7 Professional (64 bit).
System/software info:
R version 2.13.0 (2011-04-13)
Copyright (C) 2011 The R Foundation for Statistical Computing
ISBN 3-900051-07-0
Platform: x86_64-pc-mingw32/x64 (64-bit)
WinEdt Build: 20071003 (v. 5.5)
After installing the R package and attempting to load I get:
> library(RWinEdt)
Warning message:
In
2006 Sep 04
1
RGui problem in Windows XP with demo() and help()
I just installed R-2.3.1pat under Windows XP as well as the associated
RWinEdt. If I start RGui from its shortcut (but do _not_ also start
RWinEdt) and then try to execute demo() or help(), I get a RWinEdt
pop-up error window with message:
File "D:\WP\WinEdtData\WinEdt\D:/WP/WinEdtData/WinEdt/R.ini" does not
exist!
Qualifier -e/-E does not specify an existing file!
First
2003 Oct 15
2
R-WinEdt, 1.8, deprecating warning
When I load R-WinEdt (>library(RWinEdt), I get the warning:
Warning message:
multi-argument returns are deprecated in: return(InstallRoot,
RWinEdtInstalled)
I have upgraded to R 1. 8 on Windows, by copying non-base libraries into
the 1.8 library folder and updating the help.
I also reinstalled R-WinEdt from the zip file as detailed in RWinEdt
ReadMe file using the recommend (A)
2010 May 22
1
RWinEdt
I have installed RWinEdt but when I try to load it, I get the message :
Error in normalizePath(path) :
path[1]="C:\Users\yves\AppData\Roaming\WinEdt/R.ini": The specified file cannot be found.
I have the problem with R 2.11.0 and R 2.10.1, since I have re-installed WinEdt.
Yves
[[alternative HTML version deleted]]