Does R have some similar command to SAS IN?
Here is an example in SAS code:
IF variable1 IN (4,5,6,7) THEN variable2 = 1;
That is, if variable1 assumes values from 4 to 7, variable2 is assigned a value of 1.
What is the difference between the way R and SAS execute the merge?
The SAS Merge command returns 205546 rows, and the R returns 207208 rows.
Here's an example.
I'm working with the IBGE file available at: ftp: // ftp. ibge.gov.br/PNS/2013/...
Hello, I am a basic user of SAS and need to create a table in R, but I am well lost in R.
The command given in SAS is
DATA MEDIAS; SET TEMP;
PROC MEANS N MEAN MIN MAX STD;
VAR a1 a2 b1 b2 c1 c2 T R E;
RUN;
In sas it frees me this t...
Does anyone know where to download the ASCII (.sas) files for reading the microdata of the 2010 IBGE Demographic Census?
I know the Anthony Damico just keeps some files on his site (see below how to do the download), but I am looking for th...
Please try to enter dates in the input form of the SAS Enterprise Guide version 7.1, but in any case the result always comes out in numerical form, here is an example of the code:
data work.family;
infile datalines;
input relation $ first_name...
I have a table like this:
List_ID 1 4 7 10
(In total there are 100 numbers)
I want to call them for a macro I've created. I was trying to do it with Scan, but I read that it was only for text variables. It gave me that my variables were...
I am making an if in SAS to declare the value that a variable will receive depending on the condition, however when I say that the variable will receive a string of size up to 3 it returns correctly but indicating that it will receive a string o...
I'm looking for connection solutions, better than ODBC / JDBC, from some econometric software such as SAS, Matlab, STATA, ACL, EViews to my base on Teradata, including In-Database processing solutions.