Displaying 20 results from an estimated 50000 matches similar to: "Simple question, name of the variable as string."
2010 Jun 30
2
string question
Hi,
How can I get double quotes embedded in the string?
Example:
--------------
str1 <- '"xyz"'
## desired output
# abc"xyz"
qr2 <- paste('abc',str1,sep='')
print(qr2)
-----------------
Actual output:
> [1] "abc\"str\""
I also tried putting an escape sequence before the quote, but couldn't get the
string that I
2012 May 30
3
Separate Array Variable Content
Hi,
I am new in R,
i have a matrix like this
MyMatrix <-
*ABC PQR XYZ*
10 20 30
40 50 60
70 80 90
And, i have an array containing some conditions like this,
MyArray <- c("*ABC*>50","*PQR*<50","*ABC*<30 &* XYZ*<40")
"ABC>50"
"PQR<50"
"ABC<30 & XYZ<40"
2015 Nov 05
2
constant string as an assembly operand
Hi Tom,
Thanks.
It should be always ABC.
What should be the iops? just (ins i8imm:$val)? what would be the
placeholder for a constant string in "ins"?
On Thu, Nov 5, 2015 at 4:33 PM, Tom Stellard <tom at stellard.net> wrote:
> On Thu, Nov 05, 2015 at 03:20:45PM +0100, Sky Flyer via llvm-dev wrote:
> > Hello all,
> >
> > how can one can describe a constant
2015 Nov 05
2
constant string as an assembly operand
Hello all,
how can one can describe a constant string as an operand in the assembly
instruction?
for example imagine this instruction:
xyz 14 ABC
where "xyz" is the operator, 14 is an immediate value, and because of
assembly dialect, there should be a constant string with the value of ABC
follow the immediate value. How is this possible?
What should be the dat describing the
2012 Jul 18
2
How to have original (name) order after melt and cast command
Dear R helpers,
I have a data.frame as given below -
dat1 = data.frame(date = as.Date(c("3/30/12","3/29/12","3/28/12","3/27/12","3/26/12",
"3/23/12","3/22/12","3/21/12","3/20/12", "3/30/12","3/29/12","3/28/12","3/27/12",
2011 Dec 04
3
Group several variables and apply a function to the group
Dear R-experts,
I am struggling with the following problem, and I am looking for advice
from more experienced R-users: I have a data frame with 2 identifying
variables (comn and mi), and an output variable (x). comn is a variable for
a company and mi is a variable for a month.
comn<-c("abc", "abc", "abc", "abc", "abc", "abc",
2009 Sep 17
2
What is the best way to get a subset of a data.frame?
Hi,
I want to construct a data.frame 'y' by using x$x and x$y. I think
that there might be better ways to do it (because, for example, we can
use a_matrix[3:5,] to extract certain rows, where 'a_matrix' is a
matrix). Can somebody let know what the best way is?
> a=data.frame(x=1:10,y=rep("abc",10),z=rep("xyz",10))
> a
x y z
1 1 abc xyz
2 2
2011 Mar 28
1
Ordering data.frame based on class
Dear R helpers
Suppose I have a data.frame as given below -
my_dat = data.frame(class = c("XYZ", "XYZ", "XYZ", "XYZ", "XYZ","ABC", "ABC", "ABC", "ABC", "ABC" ), var1 = c(20, 14, 89, 81, 17, 44, 36, 41, 11, 36), var2 = c(1001, 250, 456, 740, 380, 641, 111, 209, 830, 920))
> my_dat
class
2008 Mar 20
3
Break up a data frame
Hi R users,
I have a dataframe in the below format
xyz 01/03/2007 15.25 USD
xyz 01/04/2007 15.32 USD
xyz 01/02/2008 23.22 USD
abc 01/03/2007 45.2 EUR
abc 01/04/2007 45.00 EUR
2006 Jun 11
2
seemingly simple read.table question
I have a file that I thought would be fairly simple to read in using read.table but I am having problems ( as usual ).
each line of the file is of the form ( just 20 lines or so )
financials XXX, YYY, ZZZ
automobiles RTR, ABC, TGH
so the first field in the line is the industry and the other fields
( seperated by commas ) in the line are stock identifiers of stocks
in that industry. note that
2010 Feb 03
2
How to change output 'csv' file
Dear R helpers
After executing the R code, where the last few lines of the code are something like given below.
## Part of my R code
n = 20
........
.........
final_output = data.frame(Numbers = numbers, ABC = data1, XYZ = data2, PQR = data3)
write.csv(data.frame(Scenario = paste("Sc_", 1:n, sep = ""), final_output'), 'result.csv', row.names
2012 Jan 20
4
extract fixed width fields from a string
Hi,
I have a data frame with one column containing string of the form "ABC...|XYZ..."
where ABC etc are fields of 6 alphanumeric characters each
and XYZ etc are fields of 8 alphanumeric characters each;
"|" is a mandatory separator;
I do not know in advance how many fields of each kind will each row contain.
I need to extract these fields from the string.
=== How do I do that?
2011 Mar 29
3
Reversing order of vector
Dear R helpers
Suppose I have a vector as
vect1 = as.character(c("ABC", "XYZ", "LMN", "DEF"))
> vect1
[1] "ABC" "XYZ" "LMN" "DEF"
I want to reverse the order of this vector as
vect2 = c("DEF", "LMN", "XYZ", "ABC")
Kindly guide
Regards
Vincy
[[alternative HTML
2010 Aug 25
3
frequency, count rows, data for heat map
Hi all,
I have read posts of heat map creation but I am one step prior --
Here is what I am trying to do and wonder if you have any tips?
We are trying to map sequence reads from tumors to viral genomes.
Example input file :
111 abc
111 sdf
111 xyz
1079 abc
1079 xyz
1079 xyz
5576 abc
5576 sdf
5576 sdf
How may xyz's are there for 1079 and 111? How many abc's, etc?
2008 May 05
7
extract and assign xml values to variable
hi,
how can we assign an xml element value to some variable in
controller? e.g. if we have
<order>
<id>1</id>
<name>abc</name>
<location>xyz</location>
</order>
and if we want value of name i.e. ''abc'' to be assigned in a variable
declared in a controller, say order_controller, like this- temp = "value
of xml element
2013 Jul 09
1
Sending carbon copy mails from R
Hi,
I am using sendmailR package to send mails from R. I am not able to make
carbon copy work properly. If I specify multiple recipients in to field,
then they all receive individual emails and not carbon copies
My sample code is
require(sendmailR)
header <- list(cc="b.mali@abc.com")
to <-
2010 Oct 27
1
multiple text or string searches
Dear all,
how can i search multiple text or string patterns in a text file.
i have written the following script but it is for only single searches at a
time.
how can i get multiple searches e.g
"xyz","abc","pqr".....at a time and can save the results to an out file.
script::
x<- "abc"
z<-NULL;for (i in 1:1235){{if
2017 Jun 22
2
two domain members, different groupIDs
Am 2017-06-22 um 10:44 schrieb Rowland Penny via samba:
>> Can I fix that without breaking things?
>
> If your users have files stored on the domain members, probably not.
I understand that this just creates the need to run some
chown/chgrp-commands after correcting smb.conf and restarting samba?
> Your 'idmap config' block on ALL Unix domain members needs to be
>
2020 Oct 29
2
dovecot quota-warning detection mail
Gedalya-san
You are currently logged in without a domain name.
Currently, "abc-xyz-unyo-sekkei" users have been converted to
"abc-xyz-unyo at example.co.jp".
(There is no "sekkei" in the address.)
Or just add "@example.co.jp"?
When it comes to "abc-xyz-unyo-sekkei at example.co.jp"
I can't send a mail.
Thank you.
morikawa
-----Original
2012 Jul 10
2
Count of elements in coulmns of a matrix
Could you please tell me what is the function or method to get count of
elements in all the columns in a matrix ?
for eg :-
ABC XYZ PQR
------ ----- ------
2 3 4
4 5
5 4 3
2
Result will be like
ABC XYZ PQR
------ ----- ------
2 4 3
Could you please help me