Displaying 20 results from an estimated 23 matches for "johannesraja".
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)?
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 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
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 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:
$
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
2010 Apr 29
1
data.table error
I'm trying to learn data.table package but I get a following annoying
error message:
> install.packages("data.table")
trying URL 'http://www.freestatistics.org/cran/bin/macosx/universal/contrib/2.10/data.table_1.2.tgz'
Content type 'application/x-gzip' length 66823 bytes (65 Kb)
opened URL
==================================================
downloaded 65 Kb
The
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 Sep 12
1
How to visualize paired t-test results?
I would like to know if you have any suggestions how to visualize the
results from a paired t-test (see the example data below). I tried to
produce plots that show the mean and CI's from the original data and the
estimate of the difference between means and the confidence intervals (see
below) from the t-test. I really don't know what would be the best way to
graphically display the
2011 Oct 18
1
How to read data sequentially into R (line by line)?
I have a data set like this in one .txt file (cols separated by !):
APE!KKU!684!
APE!VAL!!
APE!UASU!!
APE!PLA!1!
APE!E!10!
APE!TPVA!17122009!
APE!STAP!1!
GG!KK!KK!
APE!KKU!684!
APE!VAL!!
APE!UASU!!
APE!PLA!1!
APE!E!10!
APE!TPVA!17122009!
APE!STAP!1!
GG!KK!KK!
APE!KKU!684!
APE!VAL!!
APE!UASU!!
APE!PLA!1!
APE!E!10!
APE!TPVA!17122009!
APE!STAP!1!
GG!KK!KK!
it contains over 14 000 000 records. Now
2009 Oct 20
2
Problems importing Unix SAS .ssd04 file to R (Win)
Hello,
I'm trying to import a SAS file made using SAS on Unix. Currently I'm
using SAS on Windows and I'm trying to import that .ssd04 file to R.
The file name of the file is testfile.ssd04 and it is located in
'M:\sasuser'. I'm using Windows XP and R 2.91. Basically what I'm
doing is
############ r code ##############
> library(foreign)
> sashome <-
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
2012 Jan 18
4
R-Help
I am trying to create a frequency distribution and I am a bit confused.
Here are the commands I have entered:
> data <- read.csv(file="40609_sortedfinal.csv",head=TRUE,sep=",")
> NumberOfActionsByStatus = data$STATUS
> NumberOfActionsByUser = data$ETS_LOGIN
> NumberOfBidOffer = data$BID_OFFER
> NumberOfActionsByUser.freq = table(NumberOfActionsByUser)
>
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,
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
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
/\
/ \