Displaying 20 results from an estimated 50 matches for "rara".
Did you mean:
para
2010 Nov 08
7
How to rbind list of vectors with unequal vector lengths?
Hi,
How to rbind these vectors from a list?:
> l <- list(a = c(1, 2), b = c(1, 2, 3))
> l
$a
[1] 1 2
$b
[1] 1 2 3
> do.call(rbind, l)
[,1] [,2] [,3]
a 1 2 1
b 1 2 3
Warning message:
In function (..., deparse.level = 1) :
number of columns of result is not a multiple of vector length (arg 1)
>
-J
2013 Sep 14
1
Rara data corruption with --sparse
Hi,
In fileio.c, function write_sparse() there is a bug that can lead
to corrupt copies if the write() call only completes partially.
for (l1 = 0; l1 < len && buf[l1] == 0; l1++) {}
for (l2 = 0; l2 < len-l1 && buf[len-(l2+1)] == 0; l2++) {}
sparse_seek += l1;
if (l1 == len)
return len;
if (sparse_seek)
2012 Aug 20
7
What makes R different from other programming languages?
My intention is to give a presentation about R programming language
for software developers. I would like to ask, what are the things that
make R different from other programming languages? What are the
specific cases where Java/C#/Python developer might say "Wow, that was
neat!"? What are the things that are easy in R, but very difficult in
other programming languages (like Java)?
2011 May 04
3
Regexp question
I have a string like this
st <- "SELECT COUNT(empid), COUNT(mgrid), COUNT(empname),
COUNT(salary), FROM Employees"
How can I remove the last comma before the FROM statement?
-J
2009 Sep 30
3
AsciiDoc and R
I would like to learn AsciiDoc. Is there any good examples how to use
AsciiDoc with R? I know that there is packages called ascii to do
this, but it would be nice to see some examples how AsciiDoc works
with R. Is there an AsciiDoc distribution for Max OS X?
-Johannes
2016 Jul 18
2
Pregunta sobre boxplots
Colegas:
Tengo una pregunta rara, y ofrezco mis disculpas si es una tonteria.
Estoy tratando de hacer unos graficos con datos recolectados cada 24
horas, con varias replicas por cada periodo de tiempo. La mejor
representacion que he encontrado es hacer boxplots haciendo el tiempo una
variable categorica. Sin embargo, me gustaria...
2016 Sep 30
2
Sacar el número de vez que ocurre algo
...ia en que segundo se alcanza el valor máximo, es decir, qu em ede la siguiente respuesta:
a 4 40
b 2 38
c 3 63
Para ello he creado el siguiente codigo:
maximo<-tapply(datos$Valor,datos$Tiempo,function(x){c(grep(max(datos$Valor),datos$Valor),max(x)})
Pero me devuelve cosas raras.
Alguna idea??
gracias!!!
[[alternative HTML version deleted]]
2010 Nov 17
2
Regexp question
I have a vector like this:
a <- c("thisIsName", "thisIsAlsoName", "andThisName")
How to break this into pieces and produce a vector with unique parts:
this
Is
Name
Also
and
This
-J
2010 Mar 30
2
How to recode variables using base R
Hi,
Is there an efficient way recoding variables in a data.frame using
base R? My purpose is to create
new variables and attach them into old data.frame. The basic idea is
shown below, but how to create recoding for A, B and C and assing them
into new variables?
df <- data.frame(A = c(1:5),
B = c(3,6,2,8,10),
C = c(0,15,5,9,12))
df$A[df$A <= 3] <- "x"
df$A[df$A > 3 &
2009 Oct 20
2
Problems importing Unix SAS .ssd04 file to R (Win)
...#####
> library(foreign)
> sashome <- "C:/Program Files/SAS Institute/SAS/V8"
> folder_for_datafiles <- "M:/sasuser"
> read.ssd(folder_for_datafiles, "testfile", sascmd=file.path(sashome, "sas.exe"))
SAS failed. SAS program at
C:\DOCUME~1\jrara\LOCALS~1\Temp\RtmpAAxO3X\file41bb5af1.sas
The log file will be file41bb5af1.log in the current directory
NULL
Warning message:
In read.ssd(folder_for_datafiles, "testfile", sascmd = file.path(sashome, :
SAS return code was 2
>
##################################
This temporary SAS f...
2013 Jul 26
1
variación en los resultados de k medias (Alfredo Alvarez)
...lp/2007-March/128671.html
Lo he comprobado en muchas ejecuciones y es así. Otra posibilidad que se
menciona también en las consultas que he buscado (
https://www.google.es/search?q=kmeans+not+give+same+output+different+runs)
es pasarle los centroides al algoritmo, pero esto no siempre -mejor dicho,
raras veces- es factible.
Otra cosa es el algoritmo kmeans que elijas, y aquí lanzo también una
pregunta por si alguien lo conoce: probando el kmeans estándar y el
bigkmeans de biganalytics (creedme que es una pequeña maravilla que divide
el tiempo de ejecución por 2 ó 3 al menos, y permite manejar obj...
2009 Oct 09
1
How to get "last status change", ctime on Windows?
Hi,
file.info is producing data.frame with ctime variable. Help file says
that on Unix this is 'last status change' and on Windows 'creation
time'. Is there a way to get 'last status change' on Windows using
some R function?
Thanks,
Johannes
2009 Dec 01
1
Stripchart: way to get different colour for each group
Hi,
Is there a way to get different colour based on group when plotting stripchart?
mydata <- data.frame(val1 = c(1.1, 3.2, 4.1, 2.5, 6.2, 5.3, 4.5, 2.2,
4.7, 2.7), val2 = c(4.2, 5.3, 3.4, 2.6, 5.3, 6.2, 7.7, 4.8, 3.4, 2.1),
group = rep(0:1, 5))
mydata.stack <- stack(mydata, select=-group)
stripchart(values ~ ind,
data=mydata.stack,
vertical=T,
at=c(1.25,
2010 Jan 27
1
How to attach chart to excel file?
Hi,
How can I attach chart/plot to a excel file? I would like to create a
plot in R eg.
plot(1)
and save it into a Excel file, eg. test.xls in a same working directory.
Regrads,
-J
2010 Jan 29
1
How to convert timestamps?
I have timestamps from mysql database:
> dput(tstamp)
c(1225221868L, 1225221906L, 1225221906L, 1225230997L, 1225231000L,
1225231003L, 1225231152L, 1225231348L, 1225231351L, 1225231400L
)
How to convert these into normal dates?
Thanks,
jrara
2009 Sep 19
1
How to avoid copy-paste when copying code from this list?
Hi,
How do you people avoid copy-pasting and manual editing of the code
posted in this list? I mean that if some one post a solution for an
answer like this:
> a <- 1:10
> a
[1] 1 2 3 4 5 6 7 8 9 10
> a[1:5]
[1] 1 2 3 4 5
>
I have to copy-paste it to e.g. Tinn-R and remove "> " part of the
line to try it in my R. When you keep doing this it gets quite
2009 Sep 28
1
Sweave, TEXINPUTS problem
Hi,
I'm trying to use Sweave in my .tex-documents using
\usepackage{Sweave}
notation. I have this line in my .bash_profile
export TEXINPUT=.:/Users/jrara/Library/Frameworks/R.framework/Resources/share/texmf:$TEXINPUTS
When trying to typeset this .tex document, I get an error message saying
ERROR: LaTeX Error: File `Sweave.sty' not found.
I tried to google this problem but could not find a solution.
-Johannes
> sessionInfo()
R version 2.9...
2010 Mar 12
3
How to format dates (with no century)?
Hi,
I have dates in this kind of format (day, month, year):
> dput(head(dates, 10))
c("6.4.7", "29.12.98", "19.10.91", "20.6.92", "2.9.3", "23.6.3",
"13.7.93", "23.3.7", "26.6.95", "15.2.10")
So, as you can see, there is no century. How can I change this
character data into dates? Any help
2010 Aug 16
2
How to make flowchart in R?
I have a large dataset and I would like to make some kind of flowchart
from this dataset. The idea is to show rowcounts from data subsets:
data1
rows= 100000
|
/ \
/ \
males females,
rows=500000 rows=500000
/\
/ \
2010 Oct 03
1
Package for converting R datasets into SQL Server (create table and insert statements)?
Hi,
R contains many good datasets which would be valuable in other
platforms as well. My intention is to use R datasets on SQL Server as
a sample tables. Is there a package that would do automatic conversion
from the dataset "schema" into a SQL Server CREATE TABLE statement
(and INSERT INTO statements)?
For example.
> str(cars)
'data.frame': 50 obs. of 2 variables:
$