Displaying 20 results from an estimated 6000 matches similar to: "gsub and regex to tidy comma-limited values"
2004 Oct 18
2
答复: 答复: R plot problems
Yes! You are right ! It is perpendicular to the axis.
Thank you very much!
Could I choose the angle ,such as 45 degree?
Best Regards!
Ivy Li
YMS in Production & Testing
Semiconductor Manufactory International(ShangHai) Corporation
#18 ZhangJiang Road, PuDong New Area, Shanghai, China
Tel: 021-5080-2000 *11754
Email: Ivy_Li at smics.com
-----orig---
Hi Ivy,
How about
x <-
2004 Oct 18
3
答复: R plot problems
Thank you for your help!
I gave you an example, you could run it in R . Maybe you will understand my meaning clearly.
x <- data.frame(main.name="AAA", x.name=rep(c("Apply","Watermelon","Lemon","Banana",
2009 Mar 24
2
Legend containing maths symbol and values of variables
I need to have the maths symbol for >= in the legend, and to
substitute threshold variable with its value. Somehow, various
attempts weren't successful. Please help.
threshold <- 0.5
plot(NA, xlab="", ylab="", main="", axes=F, xlim=c(0,1), ylim=c(0,1),
xaxs="i", yaxs="i")
legend(x=0, y=1, fill=c("orange", "white",
2009 Mar 24
3
Summarizing each row into a frequency table
I have a matrix containing -1, 0, 1, however certain rows will not
have all 3 numbers. I have written some codes to compute the frequency
table of how many -1s, 0s, 1s per row, but it is very ugly and not
efficient if there are more than 3 numbers. Please suggest.
m <- rbind(sample(0:1, replace=T, 10), sample(-1:1, replace=T, 10))
m.table <- t(apply(m, 1, function(x) c(sum(x==-1, na.rm=T),
2009 Feb 22
2
How to reshape this data frame from long to wide ?
I tried cast and melt in reshape package, but still can't convert this data
frame m
m
[,1] [,2]
[1,] "A" "1"
[2,] "A" "2"
[3,] "B" "3"
to this form.
m1
[,1] [,2]
[1,] "A" "B"
[2,] "1" "3"
[3,] "2" NA
Please help.
[[alternative HTML version deleted]]
2009 Feb 22
2
How to parse text file into a table?
I am given a text file of records to be converted into a table format.
I have searched related topics or packages, but can't find any similar
cases. Please help.
Sample record is given below. Take note the last element doesn't have
a semi colon.
###---------Start of record----------------------
Name : John
Height: 170cm
Weight : 70kg
Age: 30
Status: Married
Children: 2
Employment
2016 Feb 09
1
Utility to zero unused blocks on disk
On 2/9/2016 12:42 AM, g wrote:
> On 02/08/16 23:39, Digimer wrote:
> >
> >I need ice cream to feel better.;)
> >
> .
> Baskin-Robbins 32 flavors + special of month.
After seeing Aaron Neville tonight (wow, what a show, 3rd row center
seats in a small theater, we were 15' from the stage), we stopped at The
Penny Ice Creamery, and I had a small cone of Meyers Lemon
2009 Apr 22
1
Subsetting a vector of numerics such that standard deviation is less than 0.5 ?
> set.seed(999)
> abs(rnorm(20))
[1] 0.28174016 1.31255963 0.79518398 0.27007049 0.27730642 0.56602374
1.87865826 1.26679114 0.96774968 1.12100936 1.32546371 0.13397739
0.93874945
[14] 0.17253810 0.95765045 1.36268625 0.06833513 0.10065765 0.90134475
2.07435711
> v <- abs(rnorm(20))
> v
[1] 1.2285633 0.6430443 0.3597629 0.2940356 1.1252685 0.6422657
1.1067376 0.8848404 1.5540951
2009 Feb 22
2
Convert a list to matrix
I would like to convert a list to matrix. This can be easily achieved via
do.call. The only problem is each element of the list has different length,
which causes the recycling of values. How can I have NA instead of recycled
values ?
m <- list()
m[["A"]] <- 1
m[["B"]] <- 2:3
do.call(rbind, m)
[,1] [,2]
A 1 1
B 2 3
[[alternative HTML version deleted]]
2004 Nov 01
3
Reading word by word in a dataset
Hello All,
I'd like to read first words in lines into a new file.
If I have a data file the following, how can I get the
first words: apple, banana, strawberry?
i1-apple 10$ New_York
i2-banana 5$ London
i3-strawberry 7$ Japan
Is there any similar question already posted to the
list? I am a bit new to R, having a few months of
experience now.
Cheers,
John
2009 Mar 23
1
Capitalizing first letter of word or phrase
I managed to find toupper() which translates all letters to uppercase.
Is there a function to capitalize only the first letter of word or
phrase ?
Thanks
2009 Apr 08
1
Colour each letter of a text string in a plot
I am inserting a DNA sequence into a plot, and hope to colourize each
of the four nucleotide of the DNA sequence with a unique colour i.e.,
A ("red"), C ("green"), G ("blue", and T ("yellow"). I use the
following codes, but the DNA sequence only shows as "red"
DNA <- "ACGT"
plot(1, xlim = c(0,1), ylim = c(0,1), axes=F,
2010 Sep 02
3
[LLVMdev] Compile dll on Mingw
Hello, NAKAMURA Takumi
As you said, I check out the head from svn trunk.
I build the source code as the following steps:
$./configure --enable-shared
$ make
After 1 hour, the building procedure is stopped and appear the following
error message:
c:/strawberry/c/bin/../lib/gcc/i686-w64-mingw32/4.4.3/../../../../i686-w64-mingw
32/bin/ld.exe:
2009 Feb 28
2
Review my upgrade plan from 2.8.0 to 2.8.1
Hi,
On my laptop, R is installed on windows XP SP2 at D:\Program
Files\R\R-2.8.0, and all add-on packages are installed at D:\Program
Files\R\R-2.8.0.libs. In addition, I have created two environment
enviroment to ease upgrading and installation of packages. Packages
installed is a mix of those from CRAN, Bioconductor and local zips.
D:\My Document\My Desktop>echo %R_HOME%
D:/Program
2010 Sep 02
0
[LLVMdev] Compile dll on Mingw
Good evening, Yuan
Excuse me, I gave up Debug build earlier due to my poor hosts.
I will improve able to build Debug ;)
You may build with --enable-optimized=yes
(or, make ENABLE_OPTIMIZED=1)
btw, DLL builder has implemented since Aug.
It might be easier to port DLL stuff to 2.6 :) Do you try?
...Takumi
2010年9月2日 17:16:25 UTC+9 yuan zheng <tsinghuayuan86 at gmail.com>:
> Hello,
2012 Dec 17
1
Problems with building R from sources
Hello all,
I'm trying to build R 32bit from source in a Windows 64 machine. I have
followed the steps in "R Installation and Adiministration" (
http://cran.r-project.org/doc/manuals/R-admin.html#Getting-the-source-files)
or at least I think I did everything described. I am not sure if I have
installed the libjpeg, libtiff and libpng files though. I have upzipped
them in the
2008 Sep 24
1
FW: My Contact Details in B'lore
Srinivas sastry contact details
________________________________
From: Srinivas_Manda at sta.nsw.gov.au
[mailto:Srinivas_Manda at sta.nsw.gov.au]
Sent: Wednesday, 24 September 2008 11:44 AM
To: Harry Sukumar
Subject: My Contact Details in B'lore
Home: +90-80-26681118
Mob: +91-9986032562
Regards,
Srinivas Manda
Graduate Engineer
Fleet Systems
State Transit Authority
Lvl 1,
2008 Mar 25
2
[LLVMdev] Adding SQLite3 to llvm test-suite
Evan Cheng wrote:
> Hi Edwin,
>
Hi Evan,
> It works fine for me. Thanks!
>
> We prefer a flat directory structure. Is it possible for you to
> separate it out to sqlite3 and lemon rather than having them as sub-
> directories under SQLite?
Ok.
The new package is here:
http://edwintorok.googlepages.com/sqlite_lemon_llvmtest.tar.gz
Anything else I should change?
>
2012 Jan 10
3
unir en .dbf luego de aplicar read.xls a varios archivos
Estimados:
Tengo un directorio con varios archivos Excel quiero importarlos todos
y grabarlos en un único archivo .dbf.
Haciendolo uno por uno lo logro de la siguiente manera (solo tomo 2 archivos):
archivos <- list.files(pattern = 'xls')
a1 <- read.xls(archivos[1],
perl="C:\\strawberry\\perl\\bin\\perl.exe",skip=12,dec=",",header=F,as.is=T)
a2 <-
2009 Jan 16
2
Missing file to run Rcmd batch on Windows
Hi,
I'm trying to run an R script using Rcmd Batch from the command line on a
Windows Vista machine. I am using R version 2.8.1.
I installed the batch files 4-3 found at
http://cran.r-project.org/contrib/extra/batchfiles/ and added them to my
path.
I also had to install the latest version of perl (it's Strawberry perl if
that makes a difference) and have added this to my path.
Now when